Single-qubit gates as rotations of the sphere

X, Y, Z, H, S and T are all fixed rotations. Seeing the axis and angle explains what each gate does.

8 min read · reviewed December 2026

Every gate is a rotation

A gate on one qubit is a 2 by 2 unitary matrix. On the Bloch sphere every such matrix acts as a rotation about some axis by some angle, up to a global phase that does not matter. That is why the sphere is such a good picture for single qubits: a circuit becomes a path of rotations.

The standard gates

The table lists each gate’s axis and angle, and where it sends |0⟩. It is computed by the same code that powers the lab.

Each gate as a rotation of the Bloch vector. “Image of |0⟩” is where the north pole goes.
GateAxisAngleImage of |0⟩
X1.00, 0.00, 0.00π (180°)0.00, 0.00, -1.00
Y0.00, 1.00, 0.00π (180°)0.00, 0.00, -1.00
Z0.00, 0.00, 1.00π (180°)0.00, 0.00, 1.00
H0.71, 0.00, 0.71π (180°)1.00, 0.00, 0.00
S0.00, 0.00, 1.00π/2 (90°)0.00, 0.00, 1.00
S†0.00, 0.00, 1.00−π/2 (-90°)0.00, 0.00, 1.00
T0.00, 0.00, 1.00π/4 (45°)0.00, 0.00, 1.00
T†0.00, 0.00, 1.00−π/4 (-45°)0.00, 0.00, 1.00
√X1.00, 0.00, 0.00π/2 (90°)0.00, -1.00, 0.00

Reading the table

  • The Pauli gates X, Y and Z are half-turns about the x, y and z axes.
  • S and T are quarter and eighth turns about z. They add phase and move the state around the equator.
  • H is a half-turn about the axis between x and z. It swaps the standard basis with the plus/minus basis, which is why it turns phase differences into probability differences.
  • √X is a quarter-turn about x. Many hardware platforms use it as a native gate.

Why T is special

The gates H, S, X, Y and Z only ever move the six named states among themselves: they are the symmetries of the octahedron whose corners are those six points. This group is the Clifford group, and circuits made only of Clifford gates can be simulated efficiently on an ordinary computer (the Gottesman–Knill theorem).

T is a rotation by only 45 degrees, so it sends |+⟩ to a point on the equator that is not one of the six. Adding T to the Clifford gates gives a set that can approximate any single-qubit rotation, and that is why T gates are counted as the main cost in fault-tolerant computing. Try H then T in the lab and look at where the vector lands.

Gates as moves in a puzzle

Because each gate is a rotation, reaching a target state is a puzzle: find the shortest chain of rotations. The challenges tab turns this into a game, and the last guide lists shortest solutions.

Try it

Questions

Why do S and T not change probabilities from |0⟩?

They rotate about z, so |0⟩ stays on the axis. Their effect shows up on states with a component in the x–y plane.

Are there gates that are not rotations?

Every single-qubit unitary is a rotation on the sphere. Measurement is not a unitary gate, and it is not a rotation: it jumps the vector to an axis.

Read next

Sources and further reading

  • F. Bloch, “Nuclear induction” (1946)
  • M. Nielsen and I. Chuang, Quantum Computation and Quantum Information, section 1.2 and chapter 4
  • C. Dawson and M. Nielsen, “The Solovay–Kitaev algorithm” (2005)
  • Dictionary: Bloch sphere

Check the original sources for exact citations.