|q⟩ Bad Qubits

intermediate · Physics · The Harmonic Oscillator: Ladder Operators

The Commutator [a, a†]

A single equation governs the entire ladder structure of the oscillator:

 [a,a]=1 .\boxed{\ [a, a^\dagger] = 1\ }.

Every result in this module — the spectrum, the normalization factors, the matrix elements — is a consequence of this one relation together with the Hamiltonian H^=aa+12\hat{H} = a^\dagger a + \tfrac{1}{2}. Let us derive it.

The derivation

Recall a=(x^+ip^)/2a = (\hat{x} + i\hat{p})/\sqrt{2} and a=(x^ip^)/2a^\dagger = (\hat{x} - i\hat{p})/\sqrt{2}. The commutator is bilinear, so

[a,a]=12[x^+ip^, x^ip^].[a, a^\dagger] = \frac{1}{2}\,[\hat{x} + i\hat{p},\ \hat{x} - i\hat{p}].

Expand using linearity. The pure [x^,x^][\hat{x}, \hat{x}] and [p^,p^][\hat{p}, \hat{p}] terms vanish (every operator commutes with itself), leaving only the cross terms:

[x^+ip^, x^ip^]=i[x^,p^]+i[p^,x^]=i[x^,p^]i[x^,p^]=2i[x^,p^],[\hat{x} + i\hat{p},\ \hat{x} - i\hat{p}] = -i[\hat{x}, \hat{p}] + i[\hat{p}, \hat{x}] = -i[\hat{x}, \hat{p}] - i[\hat{x}, \hat{p}] = -2i[\hat{x}, \hat{p}],

where we used the antisymmetry [p^,x^]=[x^,p^][\hat{p}, \hat{x}] = -[\hat{x}, \hat{p}]. Substituting the canonical relation [x^,p^]=i[\hat{x}, \hat{p}] = i,

[a,a]=12(2i)(i)=i2=1.[a, a^\dagger] = \frac{1}{2}\,(-2i)(i) = -i^2 = 1.

So [a,a]=1[a, a^\dagger] = 1, equivalently aa=aa+1a a^\dagger = a^\dagger a + 1. The annihilation operator and the creation operator do not commute; pushing one past the other costs (or refunds) a single unit.

Why this one relation is enough

Compare with the canonical commutator [x^,p^]=i[\hat{x}, \hat{p}] = i\hbar. The ladder algebra is its dimensionless cousin: [a,a]=1[a, a^\dagger] = 1 carries exactly the same physical content (the non-commutativity of position and momentum) but in a form tailored to the oscillator. Because the number operator is N^=aa\hat{N} = a^\dagger a, the relation aa=aa+1a a^\dagger = a^\dagger a + 1 immediately gives

[N^,a]=+a,[N^,a]=a,[\hat{N}, a^\dagger] = +a^\dagger, \qquad [\hat{N}, a] = -a,

which are precisely the statements "aa^\dagger raises the quantum number by one" and "aa lowers it by one" — the subject of the next lessons.

Try it

This is a numerical exercise — your code should return a number. Represent aa and aa^\dagger as matrices in the number basis and confirm that [a,a]=aaaa[a, a^\dagger] = aa^\dagger - a^\dagger a acts as the identity, returning the (1,1)(1,1) diagonal entry (which equals 11).

Run your code to see the quantum state.

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