Canonical: https://knowlpedia.com/stat-mech-quantum/gibbs-state-quantum/

# Quantum Gibbs state

For a finite quantum system, the Gibbs state is the normalized exponential of minus inverse temperature times the Hamiltonian.

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 Gibbs state** at inverse temperature \(\beta\) is
\[
\rho_\beta=\frac{e^{-\beta H}}{Z(\beta)},
\qquad
Z(\beta)=\operatorname{Tr}(e^{-\beta H}).
\]
It is a [density operator](https://knowlpedia.com/quantum-foundations/density-operator/), and its expectation functional is \(\omega_\beta(A)=\operatorname{Tr}(\rho_\beta A)\).

## Spectral form

If \(H=\sum_nE_nP_n\) is the spectral decomposition into distinct eigenvalues and their spectral projections, then
\[
\rho_\beta=\frac{\sum_ne^{-\beta E_n}P_n}{\sum_ne^{-\beta E_n}\operatorname{Tr}(P_n)}.
\]
Thus the probability assigned to the \(E_n\)-eigenspace is proportional to \(e^{-\beta E_n}\operatorname{Tr}(P_n)\).

## Variational characterization

For density operators \(\rho\), define
\[
\mathcal F_\beta(\rho)=\operatorname{Tr}(\rho H)-\beta^{-1}S(\rho),
\qquad
S(\rho)=-\operatorname{Tr}(\rho\log\rho).
\]
Then \(\rho_\beta\) uniquely minimizes \(\mathcal F_\beta\), because
\[
\mathcal F_\beta(\rho)-\mathcal F_\beta(\rho_\beta)
=\beta^{-1}D(\rho\|\rho_\beta)\ge0,
\]
where \(D\) is [quantum relative entropy](https://knowlpedia.com/quantum-foundations/quantum-relative-entropy/).

## Remarks

The state \(\rho_\beta\) commutes with \(H\), hence is stationary. On the full matrix algebra it is also the unique state satisfying the [KMS condition](https://knowlpedia.com/stat-mech-quantum/kms-condition-finite/) for the dynamics generated by \(H\).
