Canonical: https://knowlpedia.com/stat-mech-quantum/quantum-partition-function/

# Quantum partition function

For a finite quantum system with Hamiltonian H, the canonical partition function is Tr(exp(-beta H)).

Let \(H\) be a [Hamiltonian](https://knowlpedia.com/stat-mech-quantum/quantum-hamiltonian/) on a finite-dimensional [Hilbert space](https://knowlpedia.com/linear-algebra/hilbert-space/) and let \(\beta>0\). The **quantum partition function** is
\[
Z(\beta)=\operatorname{Tr}(e^{-\beta H}).
\]
If the eigenvalues of \(H\) are \(E_n\), counted with multiplicity, then \(Z(\beta)=\sum_ne^{-\beta E_n}\). It is finite and strictly positive.

## Derived quantities

The partition function normalizes the [quantum Gibbs state](https://knowlpedia.com/stat-mech-quantum/gibbs-state-quantum/) and determines the canonical free energy and mean energy:
\[
\rho_\beta=\frac{e^{-\beta H}}{Z(\beta)},
\qquad
F(\beta)=-\beta^{-1}\log Z(\beta),
\qquad
\langle H\rangle_\beta=-\frac{d}{d\beta}\log Z(\beta).
\]
Moreover,
\[
\frac{d^2}{d\beta^2}\log Z(\beta)
=\langle H^2\rangle_\beta-\langle H\rangle_\beta^2\ge0.
\]

## Independent systems

If \(\mathcal H=\mathcal H_A\otimes\mathcal H_B\) and
\(H=H_A\otimes I+I\otimes H_B\), then
\[
Z(\beta)=Z_A(\beta)Z_B(\beta).
\]
