|q⟩ Bad Qubits

intermediate · Physics · The Harmonic Oscillator: Ladder Operators

The Number Operator

We have the algebra [a,a†]=1[a, a^\dagger] = 1 and the factorization H^=a†a+12\hat{H} = a^\dagger a + \tfrac{1}{2}. The Hermitian combination a†aa^\dagger a appears so often that it earns its own name.

Definition

The number operator is

N^=a†a.\hat{N} = a^\dagger a.

It is Hermitian, since N^†=(a†a)†=a†a=N^\hat{N}^\dagger = (a^\dagger a)^\dagger = a^\dagger a = \hat{N}, so its eigenvalues are real and its eigenstates form an orthonormal basis. In terms of N^\hat{N} the Hamiltonian is simply

H^=ℏω(N^+12),\hat{H} = \hbar\omega\left(\hat{N} + \tfrac{1}{2}\right),

so H^\hat{H} and N^\hat{N} commute and share eigenstates. Diagonalizing the energy reduces to finding the spectrum of N^\hat{N} — a counting problem.

Its eigenvalues are non-negative integers

Label an eigenstate by its eigenvalue: N^∣n⟩=n ∣n⟩\hat{N}|n\rangle = n\,|n\rangle, with ∣n⟩|n\rangle normalized. Two facts pin down what nn can be.

First, n≥0n \ge 0. Take the expectation value:

n=⟨n∣N^∣n⟩=⟨n∣a†a∣n⟩=∥a∣n⟩∥2≥0,n = \langle n|\hat{N}|n\rangle = \langle n|a^\dagger a|n\rangle = \|a|n\rangle\|^2 \ge 0,

because it is the squared norm of the vector a∣n⟩a|n\rangle. So no eigenvalue can be negative.

Second, nn must be an integer. From [N^,a]=−a[\hat{N}, a] = -a and [N^,a†]=+a†[\hat{N}, a^\dagger] = +a^\dagger (derived last lesson) one shows that a∣n⟩a|n\rangle is an eigenstate with eigenvalue n−1n-1 and a†∣n⟩a^\dagger|n\rangle one with eigenvalue n+1n+1. Repeatedly applying aa lowers the eigenvalue in integer steps. If nn were not an integer, this descent would eventually produce a state with negative eigenvalue, contradicting n≥0n \ge 0. The only escape is that the chain terminates: at some point a∣n⟩=0a|n\rangle = 0, which happens precisely when n=0n = 0. Hence the allowed eigenvalues are

n=0,1,2,3,…n = 0, 1, 2, 3, \ldots

The eigenstates ∣n⟩|n\rangle are called number states or Fock states, and nn counts the quanta of excitation in the oscillator.

The eigenvalue is the level index

Putting the two pieces together,

H^∣n⟩=ℏω(n+12)∣n⟩,\hat{H}|n\rangle = \hbar\omega\left(n + \tfrac{1}{2}\right)|n\rangle,

so the integer nn that labels a number state is exactly the level index from the differential- equation solution. The next lessons make the raising/lowering action quantitative and pin down the ground state.

Try it

This is a numerical exercise — your code should return a number. Build N^=a†a\hat{N} = a^\dagger a as a matrix in the number basis and confirm its diagonal entries are 0,1,2,…0, 1, 2, \ldots by returning N00+N11+N22=0+1+2=3N_{00} + N_{11} + N_{22} = 0 + 1 + 2 = 3.

Run your code to see the quantum state.

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