Single-qubit gates and rotations
Every operation you can perform on a single qubit, every gate in every quantum algorithm acting on one qubit at a time, is a rotation of the Bloch sphere. Nothing more. The Pauli X gate is a half turn about the x-axis; the Hadamard is a half turn about the diagonal between x and z; the T gate is an eighth of a turn about z. Learn to see gates as rotations and single-qubit circuits become geometry you can do in your head.
On the plate: the Bloch sphere. Apply gates with the buttons in the text and watch the state turn.
The standard gates
The Pauli matrices of Chapter 40 are gates: X flips , Z flips the sign of , Y does both with a factor . The Hadamard turns into . The phase gates and turn about z by 90° and 45°.
Apply: , or . Established
Every gate is a rotation
Any 2 × 2 unitary is, up to a global phase, a rotation by angle about some axis :
The half-angle is the spinor sign of Chapter 39: a rotation gives , invisible as a global phase but visible when the gate is controlled by another qubit. Any rotation can be built from rotations about just z and y, the ZYZ decomposition: . The Hadamard, for example, is up to phase.
Puzzles
Reach the target with as few gates as you can. Choose a target: , , , . Then use the gate buttons in the previous passage, or these: . The plate shows the target as a white dot and tells you when you have arrived. Identities to discover: , , , .
Why these gates
H, S and the two-qubit CNOT generate the Clifford gates, which turn out to be easy to simulate classically (Chapter 108). Adding T, a rotation by an angle that is not a multiple of 90°, makes the set universal: any rotation can be approximated arbitrarily well by sequences of H and T (Chapter 100). In fault-tolerant machines, T gates are the expensive ones, needing “magic states” (Chapter 140), so algorithms are often costed by their T count.
What you now have
The Pauli, Hadamard, S and T gates, every single-qubit gate as a rotation , the half-angle sign, the ZYZ decomposition, gate identities, and why T is special.
· · ·
Three questions to carry with you.
And one to work out. How many T gates in a row equal one Z gate?
Sources: M. A. Nielsen and I. L. Chuang, §4.2. A. Barenco et al., Phys. Rev. A 52, 3457 (1995). Checked by code: HZH = X, HXH = Z, T² = S, T⁴ = Z; H = (phase) R_y(π/2) R_z(π).