Skip to main content
The new Teacher Workspace is here. Your first 3 assignments are free. Try it →

16.2 Quantum partition functions

Updated March 2026Fiveable Content Team
Fiveable

🥵Thermodynamics Unit 16 Review

QR code for Thermodynamics practice questions

16.2 Quantum partition functions

Quantum Partition Functions

Quantum partition functions are the backbone of quantum statistical mechanics. They connect microscopic quantum states to macroscopic thermodynamic properties, letting you calculate quantities like energy, entropy, and pressure for quantum systems.

These functions differ from their classical counterparts by accounting for discrete energy levels and inherently quantum effects like zero-point energy. The distinction matters most at low temperatures and small scales, where the classical approximation breaks down.

Quantum Partition Function Definition

The quantum partition function, denoted ZZ, describes the statistical properties of a quantum system in thermal equilibrium. It's defined as the sum of Boltzmann factors over all possible quantum states:

Z=∑ie−βEiZ = \sum_{i} e^{-\beta E_i}

where β=1kBT\beta = \frac{1}{k_B T}

  • EiE_i is the energy of the ii-th quantum state
  • kBk_B is the Boltzmann constant (1.380649×10−231.380649 \times 10^{-23} J/K)
  • TT is the absolute temperature in Kelvin

Each term e−βEie^{-\beta E_i} in the sum is a Boltzmann factor, which weights each state by how energetically accessible it is at temperature TT. Higher-energy states contribute less to ZZ because their Boltzmann factors are exponentially smaller.

Once you have ZZ, you can find the probability of the system occupying any particular quantum state ii:

Pi=e−βEiZP_i = \frac{e^{-\beta E_i}}{Z}

The partition function in the denominator ensures these probabilities sum to 1. From here, you can compute ensemble averages of any physical quantity (energy, magnetization, etc.) by weighting each state's value by its probability.

Quantum partition function definition, Kinetic Theory | Boundless Physics

Derivation for Quantum Systems

Ideal Gas

For an ideal gas of NN non-interacting, indistinguishable particles, the full partition function is:

Z=1N!(Z1)NZ = \frac{1}{N!} (Z_1)^N

Here's where each piece comes from:

  1. Start with the single-particle partition function Z1Z_1. For a particle in a box of volume VV, the translational energy levels are closely spaced enough that the sum over states can be evaluated to give Z1=VΛ3Z_1 = \frac{V}{\Lambda^3}.
  2. Λ\Lambda is the thermal de Broglie wavelength: Λ=h2πmkBT\Lambda = \frac{h}{\sqrt{2\pi m k_B T}}, where h=6.626×10−34h = 6.626 \times 10^{-34} J·s is Planck's constant and mm is the particle mass. This length scale tells you when quantum effects kick in: when the average interparticle spacing becomes comparable to Λ\Lambda, you can no longer treat particles classically.
  3. Since the NN particles are non-interacting, you might expect Z=(Z1)NZ = (Z_1)^N. But identical quantum particles are indistinguishable, so you divide by N!N! to avoid overcounting permutations of particles among states. This is the same correction Gibbs introduced to resolve the classical mixing paradox.

Quantum Harmonic Oscillator

For a single harmonic oscillator with angular frequency ω\omega, the energy levels are En=ℏω(n+12)E_n = \hbar \omega (n + \frac{1}{2}) for n=0,1,2,…n = 0, 1, 2, \ldots, where ℏ=h2π\hbar = \frac{h}{2\pi}.

  1. Write the partition function as a sum over all quantum numbers: Z=∑n=0∞e−βℏω(n+1/2)Z = \sum_{n=0}^{\infty} e^{-\beta \hbar \omega (n + 1/2)}

  2. Factor out the zero-point energy term: Z=e−βℏω/2∑n=0∞e−βℏω nZ = e^{-\beta \hbar \omega / 2} \sum_{n=0}^{\infty} e^{-\beta \hbar \omega \, n}

  3. The remaining sum is a geometric series with ratio r=e−βℏωr = e^{-\beta \hbar \omega}. Since r<1r < 1, it converges to 11−e−βℏω\frac{1}{1 - e^{-\beta \hbar \omega}}.

  4. Combining gives the closed-form result: Z=e−βℏω/21−e−βℏω=12sinh⁡(βℏω/2)Z = \frac{e^{-\beta \hbar \omega / 2}}{1 - e^{-\beta \hbar \omega}} = \frac{1}{2 \sinh(\beta \hbar \omega / 2)}

Notice that the zero-point energy 12ℏω\frac{1}{2}\hbar\omega appears explicitly. This is a purely quantum feature with no classical analog.

Quantum partition function definition, Fundamental limits on low-temperature quantum thermometry with finite resolution – Quantum

Thermodynamic Property Calculations

Once you have ZZ, all standard thermodynamic quantities follow from derivatives of ln⁡Z\ln Z. This is what makes the partition function so powerful.

  • Average energy:

⟨E⟩=−∂ln⁡Z∂β\langle E \rangle = -\frac{\partial \ln Z}{\partial \beta} You differentiate ln⁡Z\ln Z with respect to β\beta (at constant volume). For the harmonic oscillator, this yields ⟨E⟩=ℏω2+ℏωeβℏω−1\langle E \rangle = \frac{\hbar\omega}{2} + \frac{\hbar\omega}{e^{\beta\hbar\omega} - 1}, which correctly includes the zero-point energy.

  • Entropy:

S=kBln⁡Z+kBT∂ln⁡Z∂TS = k_B \ln Z + k_B T \frac{\partial \ln Z}{\partial T} This can also be written as S=kB(ln⁡Z+β⟨E⟩)S = k_B (\ln Z + \beta \langle E \rangle), which connects directly to the Gibbs entropy formula.

  • Pressure:

P=kBT∂ln⁡Z∂V∣TP = k_B T \frac{\partial \ln Z}{\partial V}\bigg|_T For the ideal gas, this recovers the familiar equation of state PV=NkBTPV = Nk_BT.

  • Heat capacity at constant volume:

CV=∂⟨E⟩∂T=kBβ2∂2ln⁡Z∂β2C_V = \frac{\partial \langle E \rangle}{\partial T} = k_B \beta^2 \frac{\partial^2 \ln Z}{\partial \beta^2} This involves the second derivative of ln⁡Z\ln Z with respect to β\beta, which is also related to the variance of the energy: CV=⟨E2⟩−⟨E⟩2kBT2C_V = \frac{\langle E^2 \rangle - \langle E \rangle^2}{k_B T^2}.

Quantum vs Classical Partition Functions

Both quantum and classical partition functions serve the same purpose: they encode the statistical properties of a system in thermal equilibrium and let you extract thermodynamic quantities through the same derivative relations above.

The core difference is in how they count states:

  • The quantum partition function sums over discrete energy levels:

Zquantum=∑ie−βEiZ_{\text{quantum}} = \sum_{i} e^{-\beta E_i} It naturally captures quantized energy levels, zero-point energy, and particle indistinguishability.

  • The classical partition function integrates over continuous phase space:

Zclassical=1N! h3N∫e−βH(p,q) dp dqZ_{\text{classical}} = \frac{1}{N! \, h^{3N}} \int e^{-\beta H(p,q)} \, dp \, dq It treats energy as a continuous variable and requires the h3Nh^{3N} factor to be inserted by hand to make the result dimensionless (a hint that classical mechanics is incomplete here).

When does the classical approximation work? When the thermal de Broglie wavelength Λ\Lambda is much smaller than the average interparticle spacing. At high temperatures and low densities, Λ\Lambda shrinks and the quantum sum effectively becomes the classical integral. But at low temperatures, high densities, or for light particles (electrons, helium atoms), quantum effects dominate and the classical description fails. That's precisely where quantum partition functions become essential.

See Fiveable more often in Google

Mark Fiveable as a preferred source and Google is more likely to show you our guides in Top Stories, with a "preferred" badge in AI Mode and AI Overviews.

Prefer us on Google