|q⟩ Bad Qubits

intermediate · Physics · Spin-½ Systems & Pauli Algebra

The Rotation Operator for Spin

Time evolution under a spin Hamiltonian, and any single-qubit gate, is a rotation of the spin state. The operator that rotates a spin by angle θ\theta about a unit axis n^\hat{n} is the exponential of the corresponding spin component.

Deriving the rotation operator

Evolution generated by n^S=2n^σ\hat{n}\cdot\mathbf{S} = \tfrac{\hbar}{2}\,\hat{n}\cdot\boldsymbol{\sigma} produces

Rn^(θ)=exp ⁣(iθ2n^σ).R_{\hat{n}}(\theta) = \exp\!\left(-\,i\,\frac{\theta}{2}\,\hat{n}\cdot\boldsymbol{\sigma}\right).

Because (n^σ)2=I(\hat{n}\cdot\boldsymbol{\sigma})^2 = I, the exponential series splits into even and odd parts that resum into cosine and sine — just as eix=cosx+isinxe^{ix} = \cos x + i\sin x, but with the matrix n^σ\hat{n}\cdot\boldsymbol{\sigma} in place of the unit:

Rn^(θ)=cosθ2I    isinθ2(n^σ).R_{\hat{n}}(\theta) = \cos\frac{\theta}{2}\,I \;-\; i\sin\frac{\theta}{2}\,(\hat{n}\cdot\boldsymbol{\sigma}).

The half-angle θ/2\theta/2 reappears: rotating physical space by θ\theta rotates the state by θ/2\theta/2.

The three axis rotations

Specializing to the coordinate axes gives the familiar qubit rotation gates:

RX(θ)=cosθ2Iisinθ2σx,RY(θ)=cosθ2Iisinθ2σy,RZ(θ)=cosθ2Iisinθ2σz.R_X(\theta) = \cos\tfrac{\theta}{2}I - i\sin\tfrac{\theta}{2}\sigma_x, \quad R_Y(\theta) = \cos\tfrac{\theta}{2}I - i\sin\tfrac{\theta}{2}\sigma_y, \quad R_Z(\theta) = \cos\tfrac{\theta}{2}I - i\sin\tfrac{\theta}{2}\sigma_z.

In particular RZ(θ)=diag ⁣(eiθ/2,e+iθ/2)R_Z(\theta) = \operatorname{diag}\!\bigl(e^{-i\theta/2}, e^{+i\theta/2}\bigr), which winds the relative phase between 0|0\rangle and 1|1\rangle — precisely the Larmor precession of the previous lessons.

The 4π identity

Setting θ=2π\theta = 2\pi gives

Rn^(2π)=cosπIisinπ(n^σ)=I.R_{\hat{n}}(2\pi) = \cos\pi\,I - i\sin\pi\,(\hat{n}\cdot\boldsymbol{\sigma}) = -I.

A full 2π2\pi rotation does not return a spin-½ to itself — it multiplies the state by 1-1. Only a 4π4\pi rotation gives Rn^(4π)=+IR_{\hat{n}}(4\pi) = +I. This sign is real and measurable in neutron interferometry, and it is the geometric heart of the spinor nature of spin-½.

Try it

Prepare +x|{+x}\rangle with a Hadamard, then rotate about the zz-axis by θ=π/2\theta = \pi/2 using RZ(θ)R_Z(\theta). The Bloch arrow should swing from +x+x to +y+y.

Run your code to see the quantum state.

Sign in on the full site to ask questions and join the discussion.