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 , 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:
where
- is the energy of the -th quantum state
- is the Boltzmann constant ( J/K)
- is the absolute temperature in Kelvin
Each term in the sum is a Boltzmann factor, which weights each state by how energetically accessible it is at temperature . Higher-energy states contribute less to because their Boltzmann factors are exponentially smaller.
Once you have , you can find the probability of the system occupying any particular quantum state :
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.

Derivation for Quantum Systems
Ideal Gas
For an ideal gas of non-interacting, indistinguishable particles, the full partition function is:
Here's where each piece comes from:
- Start with the single-particle partition function . For a particle in a box of volume , the translational energy levels are closely spaced enough that the sum over states can be evaluated to give .
- is the thermal de Broglie wavelength: , where J·s is Planck's constant and is the particle mass. This length scale tells you when quantum effects kick in: when the average interparticle spacing becomes comparable to , you can no longer treat particles classically.
- Since the particles are non-interacting, you might expect . But identical quantum particles are indistinguishable, so you divide by 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 , the energy levels are for , where .
-
Write the partition function as a sum over all quantum numbers:
-
Factor out the zero-point energy term:
-
The remaining sum is a geometric series with ratio . Since , it converges to .
-
Combining gives the closed-form result:
Notice that the zero-point energy appears explicitly. This is a purely quantum feature with no classical analog.

Thermodynamic Property Calculations
Once you have , all standard thermodynamic quantities follow from derivatives of . This is what makes the partition function so powerful.
- Average energy:
You differentiate with respect to (at constant volume). For the harmonic oscillator, this yields , which correctly includes the zero-point energy.
- Entropy:
This can also be written as , which connects directly to the Gibbs entropy formula.
- Pressure:
For the ideal gas, this recovers the familiar equation of state .
- Heat capacity at constant volume:
This involves the second derivative of with respect to , which is also related to the variance of the energy: .
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:
It naturally captures quantized energy levels, zero-point energy, and particle indistinguishability.
- The classical partition function integrates over continuous phase space:
It treats energy as a continuous variable and requires the 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 is much smaller than the average interparticle spacing. At high temperatures and low densities, 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.