RX and the X Axis
The Bloch sphere pictures a qubit's state as a point on the surface of a unit sphere. The north pole is , the south pole is , and the equator holds all equal-weight superpositions. Any single-qubit gate is a rotation of this sphere. The gate is the specialised rotation that spins the Bloch vector around the axis by angle .
The matrix
The rotation gate is defined as
The factor of appears because a rotation by angle on the Bloch sphere corresponds to a rotation by in the two-dimensional complex vector space of qubits (the spin- representation).
Substituting special values makes the connection concrete:
- : — no rotation, state unchanged.
- : , , so . Acting on gives , which differs from only by the global phase — physically identical to .
- : rotates the north pole half-way to the equator, landing on the axis of the Bloch sphere.
How it differs from X
The Pauli gate is exactly : it flips with no extra freedom. generalises this: by choosing you can reach any point along the arc from to on the Bloch sphere. This continuous control is what makes rotation gates central to building arbitrary single-qubit operations — any single-qubit unitary can be decomposed into three rotations (the Euler angle decomposition).
Try it
Apply to qubit 0. The grader checks the full state vector, so the amplitudes must match those predicted by the matrix above: .
After running, inspect the State Vector panel: you should see amplitude on the component, confirming the half-turn around the axis.
Sign in on the full site to ask questions and join the discussion.