The Exercise
The gate and the rotation , which turns the Bloch vector of a qubit by about the axis, are two gates on a single qubit. The exercise is to show that they have the same effect: whatever state the qubit is in, applying leaves it in the same state as applying .✦
A Quantum System
A quantum system is given by its state space, a finite dimensional complex Hilbert space.✦ A state of is a positive operator of unit trace on the state space of .✦ A unitary of is an operator on the state space of with , a closed evolution of the system, under which a state of evolves as (1)
The qubit is the quantum system whose state space is itself, the two dimensional complex Euclidean space, with the computational basis , .✦ A gate on the qubit is a unitary of the qubit, given by its matrix in that basis.
Rotations and the Gate
The Pauli matrices , and are the complex matrices (2) Together they form the Pauli vector . For a real vector in three dimensions, is the complex matrix .✦
The rotation about the axis by a real angle is the matrix exponential (3)✦ written when the axis is a unit vector . About the axis, and , so that (4)✦
The rotation gate is the unitary of the qubit whose matrix in the computational basis is (4).✦ The gate is the unitary of the qubit whose matrix is (5)✦
The Claim
Since is diagonal, so is , and comparing its entries with (5), (6) In the evolution (1) this global phase meets its complex conjugate and cancels.
Theorem 1. Let be a state of the qubit. Then the state of the qubit after the gate equals its state after the rotation gate : (7)✦
What Is Checked
The claim is stated over the states of the qubit and their evolution (1) under two unitaries of the qubit: the gate, with the matrix (5), and the rotation gate , whose matrix (4) is built from the Pauli matrices (2) through the exponential (3).
About these constructions the library proves that the matrices of and of , for every angle , are unitary, and that conjugating a state of any quantum system by a unitary of the system gives a positive operator of unit trace, so that each side of (7) is again a state of the qubit.