The Exercise
A qubit is rotated twice, first by an angle about a unit axis , then by an angle about a unit axis . The two rotations together make a single rotation by an angle about an axis , and the exercise finds it from the two it is made of: the cosine of its half angle and the vector , with , are given in terms of the half angles and the axes of the two rotations. A second part takes equal angles, , with the first axis along the axis, the unit vector .
In the library the first part is an identity between matrices, which expresses the product of the two rotations through and , both defined from the two angles and axes. The second part becomes a statement about those two definitions, and an example shows that one term of cannot carry the sign opposite to the one in the library.
Rotations of a Qubit
The Pauli matrices , and are the complex matrices (1) and is the Pauli vector. For a real vector in three dimensions, the matrix is the complex matrix .✦
The rotation operator about an axis , a real vector in three dimensions, by a real angle is the complex matrix given by the matrix exponential (2)✦ written when the axis is a unit vector .
For real angles and real vectors in three dimensions, write and . The composed cosine of the pairs and is the real number (3) and their composed axis vector is the real vector in three dimensions (4)
The Claim
Theorem 1. Let and be unit vectors and , real angles. Then (5)✦ where is the identity and and are the composed cosine (3) and the composed axis vector (4) of and .
The cross product is the one term of (4) that changes sign when the two pairs trade places. The book’s equation (4.20) prints it with a minus sign, .
Theorem 2. The formula with the printed sign fails for the product in the order of (5): for , and , (6)✦ where , and is the composed cosine of and .
Theorem 3. Let be a real angle and a real vector in three dimensions, and write and . The composed cosine and the composed axis vector of and are (7)✦ (8)✦
What Is Checked
The claim is stated over the rotation operators of (2), built from the matrices and the Pauli matrices (1), and over the composed cosine (3) and the composed axis vector (4).
About these constructions the library proves the composition law (5) and the counterexample (6) to the printed sign. For equal angles with the first axis along it proves the reduced forms (7) and (8).