Skip to content
TheChatArchiveThe Chat Archive
GPT 5.1 Codex Max· openaiHugging Face Frontier Reasoning Traces

Solve the quantum harmonic oscillator using ladder operators. Show the Hamiltonian in…

  1. User

    Solve the quantum harmonic oscillator using ladder operators. Show the Hamiltonian in terms of creation and annihilation operators, derive the ground state energy, and show equally spaced energy levels.

  2. Assistant

    Deriving QHO energy levels using ladder operators

    The quantum harmonic oscillator Hamiltonian is (H = \frac{p^2}{2m} + \frac{1}{2} m \omega^2 x^2). Defining ladder operators as (a = \sqrt{\frac{m\omega}{2\hbar}} x + \frac{i}{\sqrt{2m\hbar\omega}} p) and (a^\dagger = \sqrt{\frac{m\omega}{2\hbar}} x - \frac{i}{\sqrt{2m\hbar\omega}} p), they satisfy ([a, a^\dagger] = 1). Rewriting the Hamiltonian gives (H = \hbar \omega (a^\dagger a + \frac{1}{2})). The ground state (|0\rangle) fulfills (a|0\rangle=0), yielding the wavefunction (\psi_0(x) = (m\omega/(\pi \hbar))^{1/4} e^{-m \omega x^2/(2\hbar)}) and energy (E_0 = \frac{1}{2}\hbar \omega). Successive excited states are constructed by applying (a^\dagger) and have energies (E_n = \hbar \omega (n + \frac{1}{2})) with equally spaced levels differencing by (\hbar \omega). This ladder operator approach explicitly demonstrates the spectrum and the algebraic structure of the quantum harmonic oscillator. For a one–dimensional harmonic oscillator of mass (m) and frequency (\omega) the Hamiltonian is [ H=\frac{p^{2}}{2m}+\frac{1}{2}m\omega^{2}x^{2},, ] with ([x,p]=\mathrm{i}\hbar). The standard way to introduce the ladder operators is to form the dimensionless linear combinations of (x) and (p) [ a=\sqrt{\frac{m\omega}{2\hbar}},x+\frac{\mathrm{i}}{\sqrt{2m\hbar\omega}},p,\qquad a^\dagger=\sqrt{\frac{m\omega}{2\hbar}},x-\frac{\mathrm{i}}{\sqrt{2m\hbar\omega}},p, ] which satisfy the simple commutator ([a,a^\dagger]=1).

    With these definitions the Hamiltonian can be rewritten by completing the square as [ H=\hbar\omega\left(a^\dagger a+\tfrac{1}{2}\right). ]

    The operator (N=a^\dagger a) is called the number operator. If (|n\rangle) is an eigenstate of (N), (N|n\rangle = n|n\rangle), then it is also an eigenstate of (H) with energy [ E_n=\hbar\omega\left(n+\tfrac{1}{2}\right). ]

    The ground state (|0\rangle) is characterised by the fact that it is annihilated by (a), [ a,|0\rangle = 0. ] Acting with (H) on this state shows that its energy is (E_0=\tfrac{1}{2}\hbar\omega). In the (x)–representation (a,\psi_0(x)=0) becomes a first–order differential equation, [ \left(\sqrt{\frac{m\omega}{2\hbar}},x+\frac{\hbar}{\sqrt{2m\hbar\omega}}\frac{\mathrm{d}}{\mathrm{d}x}\right)\psi_0(x)=0, ] whose normalised solution is the familiar Gaussian [ \psi_0(x)=\left(\frac{m\omega}{\pi\hbar}\right)^{1/4}\exp!\left(-\frac{m\omega x^2}{2\hbar}\right). ]

    Higher excited states are obtained by applying the creation operator repeatedly, [ |n\rangle \propto (a^\dagger)^n |0\rangle, ] and each application of (a^\dagger) raises the energy by (\hbar\omega): [ H,a^\dagger|n\rangle = \left(E_n+\hbar\omega\right) a^\dagger|n\rangle. ] This ladder structure gives the equally spaced spectrum (E_n=\hbar\omega(n+\tfrac{1}{2})), (n=0,1,2,\dots).

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.