Thermal States and Partition Functions
Finite-spectrum thermodynamics converts energy levels into normalized Boltzmann weights. Stable arithmetic is straightforward, but incomplete spectra and omitted symmetry multiplicities can bias results while producing smooth temperature curves. This page treats numerical evaluation; thermal density operators explains the statistical interpretation.
Helpful background. Exact diagonalization supplies energies and eigenvectors.
Shifted Boltzmann weights
Section titled “Shifted Boltzmann weights”Assume a finite Hilbert space and positive temperature, with inverse temperature . For complete energies , choose and compute
Then
The shift prevents overflow at low temperature without changing probabilities. A degeneracy multiplies the weight if each distinct energy appears only once. If eigenvalues are listed with multiplicity, multiplying by again double-counts states.
For an observable, . Build the full density matrix only when needed. Noncommuting observables still use their energy-basis diagonal elements for equilibrium expectations.
Derivatives and fluctuations
Section titled “Derivatives and fluctuations”For a temperature-independent Hamiltonian,
These relations follow from , hence and . A Hamiltonian fitted separately at each temperature has additional derivative terms and does not obey this fluctuation formula without modification.
For stable evaluation, retain the shifted energies , compute , and use and . This avoids both subtracting large second moments and subtracting a rounded large from every energy. It cannot recover splittings already lost when the input energies were rounded. Entropy is , with .
A susceptibility is not always times the equal-time variance: that formula requires the coupled observable to commute with the Hamiltonian, or an appropriate classical limit. For general quantum response use the imaginary-time correlation or spectral Kubo expression in the many-body treatment.
Two-level benchmark
Section titled “Two-level benchmark”For levels with ,
At low temperature and vanish; at high temperature and . Shifting both levels by a constant changes and by that constant but leaves , probabilities, and entropy unchanged. This is an excellent numerical invariance check.
At extremely low temperature do not compute in the population formula; use the negative-exponent form .
Incomplete spectra and sectors
Section titled “Incomplete spectra and sectors”If omitted states all lie above and their number is at most ,
A gap to the first omitted state alone is insufficient without controlling the multiplicity. Write the retained partition sum as and the displayed upper bound as . Then the omitted thermal probability obeys
The complete state decomposes as on orthogonal spectral subspaces. Its trace distance from the normalized retained state is exactly . Therefore
Evaluate the last logarithm with a log1p operation when is small. These bounds assume that the retained eigenpairs and the omitted-state threshold are themselves reliable; they do not include eigensolver or energy-estimation errors.
For retained levels at , and at most two omitted states above energy , and . The bound is , giving an expectation error below for . This makes the temperature range of a truncated calculation quantitatively assessable.
Sum over all physical symmetry sectors required by the ensemble. A canonical fixed-number calculation and a grand-canonical sum with weights answer different questions. At high temperature, will hold even for an incorrectly omitted sector; check instead.
For larger spaces, finite-temperature Lanczos and stochastic trace methods introduce additional Krylov and sampling errors. They should be benchmarked against complete small-system spectra.
Exercise
Section titled “Exercise”A ground state is -fold degenerate and separated by a gap from all other states. What is the zero-temperature entropy of the canonical Gibbs limit?
Solution
The Gibbs state approaches the uniform mixture on the ground-state subspace, so . Choosing one ground-state eigenvector instead produces a pure state and zero entropy; that is a different limiting preparation. Numerical splitting smaller than the physical resolution can spuriously select one member if the temperature is taken too low first.
References
Section titled “References”- Jaklič, J., and Prelovšek, P., “Lanczos method for the calculation of finite-temperature quantities in correlated systems,” Physical Review B 49, 5065–5068 (1994), doi:10.1103/PhysRevB.49.5065.
- Weinberg, P., and Bukov, M., “QuSpin. Part I: spin chains,” SciPost Physics 2, 003 (2017), arXiv:1610.03042 — finite-spectrum calculations.