Every gate you’ve met so far is a fixed rotation: rotates by a specific angle, the Paulis rotate by exactly , and rotate by and . There’s no dial. You can’t ask for “half a Hadamard” or “a 37-degree X.”
The rotation gates fix that. There are three of them — one for each axis — and each one takes an angle as a parameter:
They rotate the Bloch-sphere state by angle around the corresponding axis. Change , get a different gate.
The formulas
The matrix forms come from exponentiating the Pauli gates:
Don’t let the exponentials intimidate you. Each one is a 2x2 matrix you could compute by hand. For example:
The thing you should notice is the in the formula. That’s the half-angle convention from Lesson 2.2 of the Bloch sphere — rotations on the Bloch sphere are by angle , but the corresponding rotation of the state vector (which lives in a different space) is by angle .
So is a full rotation on the Bloch sphere (the state should come back to where it started) but the matrix formula gives:
A minus sign! The state vector has picked up a global phase of , which is invisible (it’s a global phase) but still mathematically real. You have to go around twice — — to get back to exactly . This is the famous spin- spinor property, and it’s responsible for a lot of weirdness in quantum mechanics.
Drag the slider
Things to try:
- Pick and drag the angle from to . Watch the state on the Bloch sphere rotate from (north pole) smoothly down to (south pole), passing through the equator point at .
- Switch to and do the same. Same kind of rotation, but now it goes through the equator point instead.
- Switch to , starting from . Drag the angle. The state stays at ! Why?
- Starting from , apply . Where does the state end up? What’s the corresponding Cartesian point on the Bloch sphere?
- Snap to . The gate is now , which should equal (up to a global phase). Check the state — it’s , confirming that .
The last point is the key realization: the discrete gates you met earlier are all special cases of the rotation gates at specific angles.
The connection to Pauli gates
Apart from a global phase of (which doesn’t matter physically), each rotation at angle is the corresponding Pauli. Similarly:
and are also just rotations at smaller angles. Once you have , , as continuous gates, you can recover all the discrete gates as special cases.
Rotation gates are what real hardware runs
On most quantum processors (superconducting, trapped-ion, neutral-atom), you don’t get to just “apply H” or “apply X” directly. The hardware implements gates by pulsing microwaves or lasers at the qubit, and those pulses naturally produce continuous rotations — often is “free” (you just relabel your frame) and or is done with a real pulse.
So when you write circuit.h(q) in Qiskit, the hardware compiler decomposes it into a sequence of rotations and executes those. Rotations are the native language.
What’s next
You now have continuous control over single-qubit rotations. In the next lesson we’ll see that this is enough to reach every single-qubit state and every single-qubit gate — rotation gates are “universal” for one qubit.