A qubit in the equal superposition ∣+⟩=21(∣0⟩+∣1⟩) sits exactly
on the equator of the Bloch sphere, pointing along the +x axis. Phase gates leave the north and
south poles fixed but rotate every equatorial state around the z-axis, moving it to a new point on
the equator.
Phase gates as z-axis rotations
A phase gateP(λ) multiplies the ∣1⟩ amplitude by eiλ while leaving
∣0⟩ unchanged:
P(λ)=(100eiλ).
The three standard phase gates are special cases of P(λ):
| Gate | λ | Effect on ∣+⟩ |
|------|-----------|----------------------|
| T | π/4 | 21(∣0⟩+eiπ/4∣1⟩) — rotated 45° |
| S | π/2 | 21(∣0⟩+i∣1⟩) — rotated 90° to +y axis |
| Z | π | 21(∣0⟩−∣1⟩)=∣−⟩ — rotated 180° to −x axis |
Starting from ∣+⟩ and applying S yields
S∣+⟩=21(100i)(11)=21(1i).
On the Bloch sphere this state points along +y, often written ∣+i⟩ or ∣R⟩.
Keeping track on the Bloch sphere
The Bloch sphere provides a clear picture: any state
cos(θ/2)∣0⟩+eiϕsin(θ/2)∣1⟩ lives at polar angle θ and
azimuthal angle ϕ. For equatorial states (θ=π/2), P(λ) shifts ϕ by
λ:
ϕP(λ)ϕ+λ.
Starting from ∣+⟩ with ϕ=0, applying T gives ϕ=π/4, applying S gives
ϕ=π/2, and applying Z gives ϕ=π, landing at ∣−⟩.
Try it
Prepare ∣+⟩ by applying H to ∣0⟩, then apply the S gate to rotate it 90° to the
+y axis. The grader checks the full state vector.
Run your code to see the quantum state.
After running, the amplitudes should be 21≈0.707 for ∣0⟩ and
2i for ∣1⟩, confirming the 90° equatorial rotation.
Sign in on the full site to ask questions and join the discussion.