The Exercise
A gate on one qubit is a unitary operator on its two dimensional state space. Every such gate is a rotation of the qubit about some axis in three dimensions by some angle, multiplied by a phase factor. The exercise is to show this, and to find the phase, the angle and the axis for two particular gates, the Hadamard gate and the phase gate.
The Qubit and Its Gates
A quantum system is a physical system whose state space is a finite dimensional complex Hilbert space.✦ The qubit is the two level quantum system whose state space is , with the computational basis , .✦ A unitary of a quantum system , a closed system evolution of , is an operator on the state space of with .✦
Each gate on this page is the unitary of the qubit that acts on as a complex matrix in the computational basis. The Pauli matrices are (1) and for a real vector in three dimensions the matrix is , with the Pauli vector.
The Hadamard gate and the phase gate are the unitaries of the qubit with matrices (2)
Rotations
The rotation about the axis , a real vector in three dimensions, by a real angle is the unitary of the qubit whose matrix is the matrix exponential (3)✦ For a unit vector it is written . The rotation about the axis is the rotation about , with matrix (4)✦
The Claim
Theorem 1. Let be a unitary of the qubit. There are real numbers and and a real unit vector in three dimensions such that (5)✦
Theorem 2. Let , the unit vector halfway between the and axes. The Hadamard gate satisfies (6)✦
Theorem 3. The phase gate satisfies (7)✦
What Is Checked
The claims are stated over unitaries of the qubit: an arbitrary one, , in (5), the gates and of (2) in (6) and (7), and on the right of each equation the rotations and of (3) and (4).
The library proves that the matrix of each of these gates is unitary, the rotation for every real vector and every angle and for every angle, so that each of them is a unitary of the qubit.