intermediate · Physics · The Harmonic Oscillator: Ladder Operators
Checkpoint: Ladder Algebra
This checkpoint draws together everything in the module: the ladder operators, their action on
number states, the inversion x^=(a+a†)/2, and the rule for matrix elements.
You will compute an element of x^2 that connects states two rungs apart.
The setup
Squaring the position operator gives four terms,
x^2=21(a2+(a†)2+aa†+a†a).
Group them by how they shift the number eigenvalue:
a2 lowers by 2 (level n→n−2),
(a†)2 raises by 2 (level n→n+2),
aa† and a†a leave the level unchanged.
So x^2 connects ∣n⟩ to ∣n⟩, ∣n±2⟩ — never to odd-shifted states.
This Δn∈{0,±2} structure for x^2 is the squared-operator analogue of the
Δn=±1 rule for x^.
Working out ⟨2|x²|0⟩
Apply x^2 to the ground state. Three of the four terms die or stay put:
a2∣0⟩=0,aa†∣0⟩=∣0⟩,a†a∣0⟩=0,
leaving only the double-raising term, which climbs two rungs:
(a†)2∣0⟩=a†(1∣1⟩)=12∣2⟩=2∣2⟩.
Projecting onto ⟨2∣ kills the level-0 pieces and keeps the coefficient of ∣2⟩:
⟨2∣x^2∣0⟩=21⋅2=21≈0.7071.
Why this matters
Off-diagonal elements of x^2 govern two-quantum processes — for instance second-order
transitions and the anharmonic corrections that split the otherwise-degenerate harmonic line.
Computing them directly from wavefunctions would mean evaluating Gaussian-weighted integrals of
Hermite polynomials; the ladder algebra reduces the whole calculation to tracking which terms raise
or lower by the right amount. That economy is the central lesson of this module.
Try it
This is a numerical exercise — your code should return a number. Build x^=(a+a†)/2,
square it, and return the off-diagonal element ⟨2∣x^2∣0⟩=1/2.
Run your code to see the quantum state.
Sign in on the full site to ask questions and join the discussion.