One of the most important examples in all branches of physics is the harmonic oscillator. The potential has the shape of a parabola with the potential energy of
and the repelling force depends linearly on the deviation from the equilibrium position
This harmonic potential is a first approximation for a bonding and non-bonding interaction of two atoms. The potential energy of a diatomic molecule can be described, for example, by the Morse potential
with the parameters , , and .
Code
# ParametersDe =1.0# Well deptha =1.0# Controls widthre =2.0# Equilibrium distance# Generate r valuesr = np.linspace(1.0, 8.0, 1000)# Morse potentialdef morse(r, De, a, re):return De * (1- np.exp(-a*(r-re)))**2-De# Calculate force constant k at equilibrium for harmonic approximationk =2* De * a**2# Second derivative of Morse potential at r=re# Harmonic approximationdef harmonic(r, k, re):return0.5* k * (r-re)**2+ morse(re, De, a, re)# Plotplt.figure(figsize=get_size(10, 8))plt.plot(r, morse(r, De, a, re), 'k-', label='Morse potential')plt.plot(r, harmonic(r, k, re), 'k--', label='Harmonic potential')plt.xlabel('internuclear distance r')plt.ylabel('potential energy ')plt.legend()plt.ylim(-De,2)plt.show()
Figure 1— Plot of the Morse potential and the harmonic approximation
For small oscillations around the equilibrium position , the Morse potential can be approximated by a harmonic potential, as shown in the figure above. In classical mechanics, this corresponds to a two-body system where we use the reduced mass of the two atoms oscillating around the equilibrium position () under the influence of a restoring force . The system will perform a harmonic oscillation with the frequency
In order to discuss a quantum mechanical harmonic oscillator we start with the Schrödinger equation and the harmonic potential ,
which becomes
with the aid of the relation between the frequency and the curvature of the potential and finally
Harmonic oscillator
While the classical harmonic oscillator discusses the dynamics of a particle in a harmonic potential, the quantum mechanical harmonic oscillator is discussing the stationary states of the particle in the same potential.
To solve the Schrödinger equation, we introduce the dimensionless variable and the dimensionless energy , which are defined as
and reformulate the Schrödinger equation like
To understand the asymptotic behavior of the wave function, let’s consider what happens for very large values of . In this regime, the term in the Schrödinger equation will dominate over the energy term , giving us the simplified equation:
We can try a solution of the form . Inserting this into our simplified equation yields:
For large , we expect the dominant term to be , giving and thus . The negative solution ensures the wave function remains bounded as . Therefore, we can deduce that must behave like in its asymptotic limit. Based on this asymptotic behavior, we can write the general solution as
If we substitute our general solution back into the Schrödinger equation, we find:
This differential equation is known as the Hermite differential equation - you may have encountered similar equations in your math courses. The solutions to this equation are special polynomials called Hermite polynomials, which are indexed by integer values n = 0, 1, 2, 3, etc. These polynomials can be written as:
When we plug these Hermite polynomials back into our equation as , we find a simple relationship between our dimensionless energy C and the polynomial index n:
The first four Hermite polynomials and the according wave functions are listed in the following table.
0
1
2
3
In addition, the normalization factors are indicated which we have to choose in accord with the normalization condition.
We can reformulate the Hermite polynomials through a power series expansion
This series has to be finite, since otherwise will approach for and
cannot be normalized for all . If we now use the formula for the series expansion of in the differential equation and sort by coefficients with equal power of , we obtain the recursive equation
Because the series of has to be finite, we set as the highest power of , which results in . As a consequence and since , we can state
which results in
If we re-substitute and isolate , we obtain
with .
One of the most striking features of the quantum harmonic oscillator is that the energy eigenvalues are not only quantized and equidistant, but also possess a fundamental minimum energy that cannot be zero. This zero-point energy
represents a fundamental quantum mechanical effect with far-reaching consequences in quantum field theory and physical chemistry. It demonstrates that quantum systems cannot be completely at rest, even at absolute zero temperature. Since the quantum number uniquely determines the energy of the oscillation, it is referred to as oscillation quantum number. The oscillating wave function finally reads as
The normalization constant is determined by the normalization condition to be
The quantum mechanical harmonic oscillator shows a non-zero ground state energy, in contrast to a particle in a square potential well. This fundamental difference arises from the uncertainty principle - in the harmonic oscillator potential, a particle completely at rest (p=0) would have a precisely defined position at x=0, violating ΔxΔp ≥ ħ/2. The square well, however, allows the particle to have zero momentum while still being delocalized across the well width, satisfying the uncertainty principle even with zero energy.
Code
def psi_n(x, n): N =1.0/np.sqrt(2**n * math.factorial(n) * np.pi**0.5) H = hermite(n)return N * H(x) * np.exp(-x**2/2)# Parametersx = np.linspace(-8, 8, 1000)# Create potential energy functionV =0.5* x**2# Create figure with two subplotsfig, (ax1, ax2) = plt.subplots(1, 2, figsize=get_size(12, 6))# First subplot - wavefunctionsax1.plot(x, V, 'k--', label='V(x)', alpha=0.3)for n inrange(10): psi = psi_n(x, n) E_n = n +0.5 ax1.axhline(E_n, ls="--") ax1.plot(x, psi*0.5+ E_n, "k-", label=f'n={n}')ax1.set_xlabel('position (x)')ax1.set_ylabel('energy')ax1.set_ylim(-0.5, 10)# Second subplot - magnitude squareax2.plot(x, V, 'k--', label='V(x)', alpha=0.3)for n inrange(10): psi = psi_n(x, n) E_n = n +0.5 ax2.axhline(E_n, ls="--") ax2.plot(x, np.abs(psi)**2+ E_n, "k-", label=f'n={n}')ax2.set_xlabel('position (x)')ax2.set_ylabel('energy')ax2.set_ylim(-0.5, 10)plt.show()
Figure 2— Probability density of the first ten wavefunctions of the quantum harmonic oscillator
In the experiment, vibrational transitions can be observed in the infrared spectrum of molecules. The energy difference between two vibrational levels is given by the energy difference between two quantum states of the harmonic oscillator. The figure below shows the rotational vibrational spectrum of HCl in the gas phase
Figure 3— Rotational side band of the vibrational transition from the ground state to the excited state of HCl in the gas phase.
Correspondence principle
We would like to have a look at the comparison between the classical and quantum mechanical harmonic oscillator. The classical harmonic oscillator is described by the equation of motion
with the solution
The energy of the classical harmonic oscillator is given by
and the maximum energy is . The classical harmonic oscillator oscillates with the frequency and the period . This classical behavior emerges from the quantum mechanical solution in the limit of large quantum numbers (n ≫ 1), where the energy levels become effectively continuous and the probability distribution of finding the particle matches the classical time-averaged position distribution. This is a manifestation of Bohr’s correspondence principle, showing how quantum mechanics reduces to classical mechanics in the appropriate limit.
For the classical harmonic oscillator, the probability to find the particle at the position is given by the time fraction the oscillator spends at this position in an interval . We can calculate this probability by integrating the time the particle needs to cover the distance over the period of the oscillation. The probability to find the particle at the position is given by
where is the time for one full oscillation and is the time interval the particle needs to cover the distance . Given the solution above, the speed of the particle is and the probability to find the particle at the position is given by
With a given quantum number , the amplitude of the classical oscillator must be chosen to match the energy of the quantum state. Since the energy of the quantum state is and the maximum energy of the classical oscillator is , we can equate these:
Using , we can solve for the amplitude:
In our dimensionless units where , this simplifies to . This relationship ensures that the classical motion has the same energy as the quantum state, which is crucial for comparing the classical and quantum probability distributions.
Figure 4— Probability density for n=30 of the quantum harmonic oscillator
The figure above shows the probability density for a high quantum number n = 100 of the quantum harmonic oscillator. The red dashed line represents the classical probability density, which is the time fraction the oscillator spends at a given position x in an interval dx. The black solid line shows the quantum probability density, which is the square of the wave function. For high quantum numbers, the quantum probability density closely matches the classical probability density, demonstrating the correspondence principle.
Cooling of micro-mechnical oscillators
Figure 5— a, False-colour scanning electron micrograph of a spoke-anchored toroidal resonator 31 µm in diameter used for the optomechanical experiments reported in this work. b, Sketch of an optical whispering gallery mode in the microresonator (colours indicate optical phase). c, Simulated displacement (exaggerated for clarity) of the fundamental radial breathing mode of the structure. d, Equivalent optomechanical Fabry–Pérot cavity: quantum-coherent coupling is achieved when the enhanced coupling rate Ωc is comparable to or exceeds the optical and mechanical decoherence rates . Owing to the large asymmetry between mechanical and optical frequencies, the occupancies of the two environments are widely different. ( taken from Quantum-coherent coupling of a mechanical oscillator to an optical cavity mode)
Analogy to Gaussian beam optics
After understanding the quantum harmonic oscillator, we can explore a fascinating analogy in classical optics. The same mathematical structure appears in the description of Gaussian light beams in optical resonators, providing an elegant example of how similar mathematics describes different physical phenomena.
The Paraxial Wave Equation
For a light beam propagating primarily along the z-direction, the electric field must satisfy the paraxial wave equation:
This equation, also known as the paraxial Helmholtz equation, has as its fundamental solution the Gaussian beam in free space. We can separate the rapidly varying phase by writing:
where describes the spatial structure of the beam and varies slowly with .
The solution is a Gaussian beam:
Code
#w0 =1e-6# beam waist radiuswavelength =532e-9# wavelengthk =2*np.pi/wavelength # wave numberz_R = np.pi * w0**2/ wavelength # Rayleigh range# Create coordinate gridz = np.linspace(-2*z_R, 2*z_R, 400)x = np.linspace(-5*w0, 5*w0, 400)Z, X = np.meshgrid(z, x)# Calculate beam widthw = w0 * np.sqrt(1+ (Z/z_R)**2)# Calculate radius of curvatureR = Z * (1+ (z_R/Z)**2)R[Z ==0] = np.inf # Handle division by zero at z=0# Calculate Gouy phasegouy_phase = np.arctan(Z/z_R)# Calculate complete phasephase = k*Z - gouy_phase + k*(X**2)/(2*R)# Calculate complete complex fieldE = (w0/w) * np.exp(-X**2/w**2) * np.exp(1j*phase)# Plot the real part of the field to show wavefrontsplt.figure(figsize=get_size(14, 6))plt.imshow(np.real(E), extent=[z.min()/z_R, z.max()/z_R, x.min()/w0, x.max()/w0], aspect='auto', cmap='seismic')plt.colorbar(label=r'$Re(E)$')plt.xlabel(r'$z/z_R$')plt.ylabel(r'$x/w_0$')plt.show()
Figure 6— Electric Field of a Gaussian Beam in a Parabolic Resonator
Resonator with Parabolic Mirrors
When we consider a resonator with parabolic mirrors, the boundary conditions lead to an equation for that is mathematically equivalent to the Schrödinger equation for a 2D harmonic oscillator:
The correspondence between the two systems becomes clear when we identify:
The propagation distance plays the role of time
The wave number corresponds to
The beam width parameter relates to the oscillator frequency
Hermite-Gaussian Solutions
Just as the quantum harmonic oscillator has solutions involving Hermite polynomials, the optical resonator supports Hermite-Gaussian modes:
These modes form a complete set of solutions, analogous to the energy eigenstates of the quantum oscillator. The physical meaning differs: instead of describing probability distributions, these functions describe the spatial distribution of the electric field.
Code
def hermite_gaussian_2d(x, y, m, n, w0=1.0):"""Generate 2D Hermite-Gaussian mode.""" Hm = hermite(m) Hn = hermite(n)# Normalized coordinates X = np.sqrt(2) * x / w0 Y = np.sqrt(2) * y / w0# Mode calculation mode = (Hm(X) * Hn(Y) * np.exp(-(X**2+ Y**2)/2))return mode**2# Return intensity distribution# Create coordinate gridx = np.linspace(-2, 2, 100)y = np.linspace(-2, 2, 100)X, Y = np.meshgrid(x, y)# Create subplot gridfig, axs = plt.subplots(4, 4, figsize=get_size(12, 12))# Generate modesfor m inrange(4):for n inrange(4): intensity = hermite_gaussian_2d(X, Y, m, n) im = axs[m, n].imshow(intensity, cmap='gray', extent=[-2, 2, -2, 2]) axs[m, n].set_title(f'TEM{m}{n}') axs[m, n].axis('off')plt.tight_layout()plt.show()
Figure 7— Intensity distribution of the first 16 Hermite-Gaussian modes
Physical Interpretation
The analogy provides physical insights in both directions:
The confinement of light by the resonator mirrors creates discrete modes, similar to the quantized energy levels
The beam’s width oscillations correspond to the classical oscillatory motion
Higher-order modes show more complex spatial patterns, just as excited states have more nodes
This mathematical similarity has practical implications in laser physics and helps explain why Gaussian beams are so fundamental in optics, just as the harmonic oscillator is fundamental in quantum mechanics.