SkarpSkarp

Chapter 6 of 14

The Quantum Harmonic Oscillator and Ladder Operators

Hidden beneath springs and oscillations lies one of the most important quantum systems: the harmonic oscillator, whose discrete energy ladder underpins phonons, photons, and modern quantum technologies.

15 min readen

From Classical Spring to Quantum Oscillator

Classical to Quantum

A mass on a spring with constant `k` and mass `m` has potential `V(x) = 1/2 k x^2`. In quantum mechanics, this becomes the quantum harmonic oscillator, one of the most important models.

Quantum Hamiltonian

In 1D, the harmonic oscillator Hamiltonian is `H = p^2 / (2m) + 1/2 m ω^2 x^2`, where `ω = sqrt(k/m)`. Now `x` and `p` are operators acting on states `|ψ⟩`.

Schrödinger Equation

Stationary states satisfy `H |ψ⟩ = E |ψ⟩`. Instead of solving this as a differential equation, we will use ladder operators to find the allowed energies.

Role of Commutators

Remember: `[x, p] = i ℏ`. This non-commutativity leads directly to discrete energy levels and the concept of zero-point energy in the harmonic oscillator.

Defining Dimensionless Variables and Ladder Operators

Oscillator Length

Define the natural length scale `x0 = sqrt(ℏ / (m ω))`. It sets the typical spread of the ground state wavefunction in position space.

Dimensionless Operators

Use `X = x / x0` and `P = p x0 / ℏ`. These obey `[X, P] = i`, the same algebra as `x` and `p`, but without units.

Defining a and a†

Define the annihilation operator `a = (1/√2) (X + i P)` and the creation operator `a† = (1/√2) (X - i P)`. They are linear combinations of `X` and `P`.

Key Commutation Relation

Using `[X, P] = i`, you can show `[a, a†] = 1`. This simple relation will let us find the full energy spectrum without solving differential equations.

Thought Exercise: Checking [a, a†] = 1

Use your knowledge of commutators to verify `[a, a†] = 1`.

Given

  • `a = (1/√2)(X + iP)`
  • `a† = (1/√2)(X - iP)`
  • `[X, P] = i`

Work through these steps on paper:

  1. Compute `a a†` explicitly:
  • Multiply `(1/√2)(X + iP)` by `(1/√2)(X - iP)`.
  • Carefully expand the product.
  1. Compute `a† a` similarly.
  1. Subtract to find the commutator:
  • `[a, a†] = a a† - a† a`.
  1. Use `[X, P] = i` to simplify any terms like `XP - PX`.

Questions to guide you:

  • Which terms cancel between `a a†` and `a† a`?
  • Where does the number `1` (the identity) come from?

You should find that all operator terms cancel, leaving exactly the identity operator. This is why `[a, a†] = 1` is often called the canonical commutation relation for the oscillator.

Writing the Hamiltonian in Terms of Ladder Operators

Dimensionless Hamiltonian

Using `x = x0 X` and `p = ℏ P / x0`, the harmonic oscillator Hamiltonian becomes `H = (1/2) ℏ ω (P^2 + X^2)`.

X and P via a, a†

From `a = (1/√2)(X + iP)` and `a† = (1/√2)(X - iP)`, you get `X = (1/√2)(a + a†)` and `P = (1/(i√2))(a - a†)`.

Key Identity

With some algebra, `P^2 + X^2 = 2 a† a + 1`. This is why `a` and `a†` are so useful: they simplify `H` dramatically.

Number Operator

Define `N = a† a`. Then the Hamiltonian is `H = ℏ ω (N + 1/2)`. The eigenvalues of `N` will directly give the energy levels.

Quick Check: Hamiltonian in Ladder Form

Test your understanding of the Hamiltonian in terms of ladder operators.

Which expression correctly gives the harmonic oscillator Hamiltonian in terms of the annihilation and creation operators a and a†?

  1. H = ℏ ω (a a† + 1/2)
  2. H = ℏ ω (a† a + 1/2)
  3. H = ℏ ω (a + a†)
  4. H = (1/2) m ω^2 (a + a†)^2
Show Answer

Answer: B) H = ℏ ω (a† a + 1/2)

The correct form is H = ℏ ω (N + 1/2) with N = a† a. Option 1 has a a† instead of a† a; because [a, a†] = 1, a a† = a† a + 1, which would shift all energies incorrectly.

Finding Energy Eigenvalues with Ladder Operators

Number Operator Eigenstates

Assume `N |n⟩ = n |n⟩`. Because `N = a† a` is positive, its eigenvalues satisfy `n ≥ 0`.

Action of a and a†

Using commutators, you find `N (a |n⟩) = (n - 1) a |n⟩` and `N (a† |n⟩) = (n + 1) a† |n⟩`. So `a` lowers and `a†` raises the quantum number.

Ground State Condition

There must be a lowest state |0⟩ such that `a |0⟩ = 0`. Then `⟨0|N|0⟩ = ||a|0⟩||^2 = 0`, so the lowest eigenvalue is `n0 = 0`.

Energy Spectrum

With `N` eigenvalues `n = 0, 1, 2, ...` and `H = ℏ ω (N + 1/2)`, the energies are `E_n = ℏ ω (n + 1/2)`. This is the discrete, equally spaced energy ladder.

Visualizing the Energy Ladder and Zero-Point Energy

Imagine the potential `V(x) = 1/2 m ω^2 x^2` as a smooth U-shaped bowl.

Now picture horizontal lines across this bowl, each line representing an energy level:

  • The lowest line is not at the bottom of the bowl. It sits at height `E0 = (1/2) ℏ ω`.
  • Above it are equally spaced lines: `E1`, `E2`, `E3`, ... each separated by `ℏ ω`.

Think through these prompts:

  1. Zero-point energy
  • Why can the ground state not have `E = 0`?
  • Hint: If `E = 0`, both kinetic and potential energy would have to be exactly zero. What would that imply for the uncertainties in `x` and `p`?
  1. Uncertainty and spreading
  • In the ground state, the particle's wavefunction is spread out in `x`.
  • How does this connect to the Heisenberg uncertainty principle from the previous module?
  1. Ladder picture
  • Think of `a†` as "climbing up" one rung of the energy ladder.
  • Think of `a` as "stepping down" one rung.

Reflect:

  • How does this ladder picture differ from a classical oscillator, where any energy is allowed?
  • In what situations in nature might only certain vibrational energies be allowed?

Real-World Connections: Photons, Phonons, and Circuits

Photons in a Cavity

A single electromagnetic mode is a harmonic oscillator with `H = ℏ ω (a† a + 1/2)`. Here `a†` and `a` create and annihilate photons; `|0⟩` is the vacuum with energy `(1/2) ℏ ω`.

Phonons in a Crystal

Small vibrations of atoms in a solid can be modeled as harmonic oscillators. Their quanta are phonons. Again, `a†` adds one phonon, `a` removes one.

Superconducting Circuits

Microwave resonators in superconducting quantum circuits behave as harmonic oscillators. Ladder operators describe microwave photons stored in the circuit, central to many qubit platforms (as of 2026).

Molecular Vibrations

Chemical bond vibrations near equilibrium are approximately harmonic. Infrared spectroscopy probes transitions between levels spaced by `ℏ ω`, revealing molecular structure.

Numerical Illustration: Energy Levels and Wavefunctions

You can visualize the harmonic oscillator numerically. The following Python example (using NumPy and SciPy) constructs the position-space Hamiltonian on a grid, diagonalizes it, and compares the lowest energies to `E_n = ℏ ω (n + 1/2)`.

This is not required math for the course, but it can help make the abstract ladder picture concrete.

Run this in a Python environment with `numpy`, `scipy`, and `matplotlib` installed.

Review: Key Terms and Operators

Use these flashcards to review the core concepts of the quantum harmonic oscillator and ladder operators.

Harmonic oscillator potential V(x)
V(x) = 1/2 k x^2 = 1/2 m ω^2 x^2, a quadratic potential describing small oscillations around equilibrium.
Hamiltonian of the 1D harmonic oscillator
H = p^2 / (2m) + 1/2 m ω^2 x^2.
Annihilation operator a
a = (1/√2)(X + iP) in dimensionless form, or a = sqrt(m ω / (2 ℏ)) x + i p / sqrt(2 m ℏ ω). Lowers the energy level by one quantum.
Creation operator a†
a† = (1/√2)(X - iP) in dimensionless form. Raises the energy level by one quantum.
Canonical commutation relation for ladder operators
[a, a†] = 1.
Number operator N
N = a† a. Its eigenvalues n = 0, 1, 2, ... count the quanta (e.g., photons or phonons) in the mode.
Energy eigenvalues of the harmonic oscillator
E_n = ℏ ω (n + 1/2) with n = 0, 1, 2, ....
Zero-point energy
The nonzero ground-state energy E_0 = (1/2) ℏ ω, present even in the vacuum due to quantum fluctuations and the uncertainty principle.
Physical meaning of a† and a in a photon mode
a† creates one photon in that mode (n → n+1), a annihilates one photon (n → n−1).
Connection to quantized fields
In quantum field theory, each field mode is a harmonic oscillator; ladder operators create and annihilate field quanta like photons and phonons.

Key Terms

phonon
A quantized vibrational excitation in a crystal lattice, modeled as a quantum of a harmonic oscillator mode.
photon
The quantum of the electromagnetic field; in a single mode, it corresponds to one excitation of a harmonic oscillator.
vacuum state
The lowest-energy state |0⟩ of a field mode, with no quanta present but still possessing zero-point energy.
quantized field
A field whose modes are treated as quantum harmonic oscillators, with excitations described by ladder operators.
ladder operators
The annihilation operator a and creation operator a†, which lower and raise the energy eigenstate index of the harmonic oscillator.
zero-point energy
The nonzero minimum energy E0 = (1/2) ℏ ω of a quantum harmonic oscillator, present even in the ground state.
harmonic oscillator
A system with a restoring force proportional to displacement, modeled by the potential V(x) = 1/2 m ω^2 x^2.
number operator (N)
The operator N = a† a whose eigenvalues n = 0, 1, 2, ... count the quanta in a harmonic oscillator mode.
oscillator length (x0)
The natural length scale x0 = sqrt(ℏ / (m ω)) that characterizes the spatial extent of the ground state wavefunction.
creation operator (a†)
An operator that raises the quantum number n of a harmonic oscillator state: a† |n⟩ ∝ |n+1⟩.
annihilation operator (a)
An operator that lowers the quantum number n of a harmonic oscillator state: a |n⟩ ∝ |n−1⟩.

Finished reading?

Test your understanding with a custom practice exam on this chapter.

Test yourself