intermediate · Physics · Time Evolution & the Schrödinger Picture
Spin Precession Revisited
The cleanest physical realisation of qubit time evolution is a spin in a magnetic field. Its dynamics
— Larmor precession — ties together the operator U(t), the rotation gates, and the Bloch
sphere into one picture.
The Hamiltonian of a spin in a field
A magnetic moment μ=γS in a uniform field B=Bz^ has energy
H^=−μ⋅B=−γBS^z. Writing S^z=2ℏσz and
defining the Larmor frequencyωL=−γB (sign conventions vary; we take
ωL>0),
H^=2ℏωLσz.
This is the same Z-type Hamiltonian we have used throughout the module, now with a concrete
physical origin: a real spin in a real magnetic field.
Evolution is a Z-rotation
Exponentiating,
U(t)=e−iH^t/ℏ=e−i(ωLt/2)σz=RZ(ωLt).
Time evolution under the field is exactly the RZ rotation gate with angle θ=ωLt.
The longer you wait, the larger the rotation angle — the spin precesses at a steady rate.
Watching the Bloch vector precess
Start with the spin pointing along +x, i.e. ∣+⟩=21(∣0⟩+∣1⟩).
Applying U(t):
∣ψ(t)⟩=21(e−iωLt/2∣0⟩+e+iωLt/2∣1⟩).
Its Bloch vector is
r(t)=(cosωLt,sinωLt,0),
a unit arrow rotating in the equatorial plane about the field axis z^ at angular frequency
ωL. (The in-plane sense depends on the sign convention for ωL.) The component along
the field, ⟨σz⟩=0, is conserved — exactly as the previous two lessons
predicted, since σz commutes with H^.
Quarter-turn example
For ωLt=π/2 the Bloch vector moves from +x to +y: the state becomes
21(e−iπ/4∣0⟩+e+iπ/4∣1⟩), which (up to global phase) is
21(∣0⟩+i∣1⟩)=∣+i⟩. The probabilities of ∣0⟩ and
∣1⟩ stay at 1/2 throughout — pure precession moves phase, not population.
Try it
Prepare ∣+⟩ with a Hadamard, then precess by a quarter turn with RZ(π/2). The grader
checks the full statevector, which should equal
21(e−iπ/4∣0⟩+e+iπ/4∣1⟩).
Run your code to see the quantum state.
Sign in on the full site to ask questions and join the discussion.