The Exercise
A gate on a single qubit is a unitary operator on the state space of the qubit, that is, a complex matrix with . The exercise asks for a decomposition of an arbitrary such gate into rotations about two fixed axes of the Bloch sphere, and : first a rotation about , then one about , then one about again, with the three angles chosen to fit and an overall phase factor in front.
Pauli Matrices and Rotations
The Pauli matrices , and , the components of the Pauli vector , are the complex matrices (1) with the imaginary unit. For a real vector in three dimensions, the matrix is the complex matrix formed from (1) with the components of as coefficients, (2)✦
For a real vector in three dimensions and a real angle , the rotation is the complex matrix (3)✦ a matrix exponential. For a unit vector this is the rotation operator by about .
The rotation about the axis by an angle is (3) with axis , and the rotation about the axis is the one with axis : (4)
The Claim
Theorem 1. Let be a unitary complex matrix. Then there are real numbers , , and such that (5)✦
What Is Checked
The claim is stated over an arbitrary unitary complex matrix and over the rotations and of (4), which rest on the general rotation (3), on the matrix of (2) and on the Pauli matrices (1). The library states the decomposition (5) about these constructions.