Quantum gates & circuits

Pauli gates and phase rotations

Navigate the Bloch sphere with X, Y, Z, S, T, and continuously variable rotations.

18 minCore

Intuition

X exchanges the basis states. Y also exchanges them but introduces phases. Z preserves both basis labels and multiplies |1⟩ by −1. On the Bloch sphere, each Pauli is equivalent up to global phase to a half-turn about its named axis.

S and T produce smaller rotations about z. Starting at a pole can hide these rotations because poles are eigenstates of Z. Begin on the equator to see the azimuth change.

Learning objectives

  • Predict Pauli action on basis states
  • Relate phase gates to z rotations
  • Compose rotation gates

Interactive exploration

Use the controls to change the state and see its calculated readout. You can return to this experiment as you work through the derivation.

State geometry

Drag or use arrow keys
+x+y|0⟩|1⟩|ψ⟩

Qubit controls

|ψ⟩
60°
35°
90°
|ψ⟩ = (0.866)|0⟩ + (0.410 + 0.287i)|1⟩
P(0)75%
P(1)25%

Mathematical foundation

A Pauli rotation exponentiates the corresponding Pauli matrix. Because a Pauli squared is the identity, the even and odd Taylor terms produce cosine and sine.

RA(α)=e−iαA/2=cos⁡(α/2)I−isin⁡(α/2)AR_A(\alpha)=e^{-i\alpha A/2}=\cos(\alpha/2)I-i\sin(\alpha/2)A

A phase gate equals a z rotation up to a global factor. S uses α = π/2 and T uses α = π/4.

P(α)=diag⁡(1,eiα)=eiα/2RZ(α)P(\alpha)=\operatorname{diag}(1,e^{i\alpha})=e^{i\alpha/2}R_Z(\alpha)

Worked example

Two T gates give S and four give Z. On |+⟩, the first T advances the azimuth by 45°, and S takes it to 90°, pointing along +y.

T2=S,S2=Z,S∣+⟩=∣0⟩+i∣1⟩2T^2=S,\qquad S^2=Z,\qquad S|+\rangle=\frac{|0\rangle+i|1\rangle}{\sqrt2}

Guided experiment

Reset to |0⟩ and apply H, then T twice. Compare with H followed by S. Use Undo to compare the intermediate states.

Go to the controls
Compare with the expected result

Both sequences produce the same final state and different intermediate azimuths.

Understanding check

1. Which state is Y|0⟩?
2. How does RZ change probabilities in the Z basis?

Next steps

Want to keep your results? Start your learning journey

Open Bloch Sphere