The Exercise
On a qubit, the rotation by an angle about the axis is the operator , the exponential of a multiple of the Pauli matrix .✦ The exercise asks for this exponential written out as a matrix, with entries given by the cosine and the sine of half the angle.
Rotations About an Axis
The Pauli matrices , and are the complex matrices (1) with the imaginary unit, and is the Pauli vector.
The matrix of a real vector in three dimensions is the complex matrix (2)✦
The rotation about an axis , any real vector in three dimensions, by a real angle is the complex matrix (3)✦ where is the matrix exponential. For a unit vector it is written .
The rotation about the axis by a real angle is the rotation about the unit vector : (4)✦ Since , this is the operator of the exercise.
The Claim
Theorem 1. For every real angle , the rotation about the axis is the matrix (5)✦
What Is Checked
The claim is stated over the rotation of (4), hence over the general rotation (3), whose exponent is built from the Pauli matrices (1) through the matrix (2) of the axis.
What the library proves about these constructions is the identity (5), which evaluates the matrix exponential (3) at the axis in closed form for every real angle.