If a physical tension acts on a state of extension , its mechanical energy is . The canonical ensemble therefore assigns that state the Boltzmann factor
Comparison with the statistical weight gives
Equivalently, is the thermodynamic conjugate variable to in the Gibbs free energy, just as pressure is conjugate to volume.
A canonical ensemble describes a system with fixed particle number and external parameters that exchanges energy with a heat bath at fixed temperature . With ,
A grand canonical ensemble describes a system exchanging both energy and particles with a reservoir at fixed , volume, and chemical potential . For a noninteracting fermion level , occupation is or , so
Factorization over levels gives , and differentiation with respect to yields the Fermi-Dirac distribution
For ,
Solving gives
The canonical ensemble density proportional to for factorizes into independent centered Gaussians. Its equipartition variances are exactly and , while the absence of an term gives .
A density operator describes both a quantum state prepared in one pure state and a statistical preparation whose members occupy different pure states. If normalized vectors occur with probabilities , define
The resulting operator is Hermitian, positive semidefinite and has trace one. Positivity follows because . Conversely, the spectral theorem gives such a representation of any finite-dimensional operator with these properties, using its eigenvectors and eigenvalues. The matrix representing depends on the chosen basis; the operator and its predictions do not.
One operator gives every measurement probability. For a projective measurement with orthogonal projections and outcomes ,
For example, the first formula follows by averaging over the preparation. The trace expression is basis independent. A general measurement replaces by positive measurement effects that sum to the identity, without changing the probability formula. Thus specifies the statistics accessible to measurements on that system.
The distinction between pure and mixed states is especially transparent in the eigenvalues. A pure state has , , and . A mixed state has at least two positive eigenvalues and . For a qubit,
pure states lie on the Bloch sphere; mixed states lie inside the Bloch ball. The maximally mixed qubit can be prepared by choosing equally between the two spin eigenstates, or equally between the two spin eigenstates. These ensembles are different preparation procedures but give the same density operator. No measurement on the resulting qubit alone can identify which ensemble was used.
quantum coherence must be distinguished from merely having two populated levels. In the basis, the state has
Both give equal probabilities for the two outcomes. A measurement along gives the positive result with probability one for the first state and one half for the second. The off-diagonal entries encode the relative phase information responsible for this difference. Whether a matrix entry is off diagonal is basis dependent; purity is not.
For an isolated system, each component evolves with the same unitary time-evolution operator. Therefore and
Unitary evolution preserves the eigenvalues and purity of . A density operator commuting with a time-independent Hamiltonian operator is stationary. A thermal equilibrium example is the canonical ensemble , where and . expectation values then reproduce quantum statistical mechanics without assigning the system a definite energy eigenstate on every run.
A mixed state can also arise without classical randomness in the joint preparation. For a bipartite quantum system, the reduced density operator gives every measurement probability accessible to subsystem . For the Bell state , the joint state is pure, whereas . Its local mixedness reflects entanglement with the inaccessible system; the partial trace discards correlations that matter for joint measurements. More generally, interaction with an environment can suppress off-diagonal entries in a selected basis, producing decoherence while the combined system still evolves unitarily.
Finally, state evolution conditional on a measurement outcome differs from isolated evolution. An ideal projective measurement yielding updates the state by the Lüders rule . Discarding the outcome gives , which generally removes coherence between different eigenspaces. The Von Neumann entropy quantifies mixedness: it vanishes for pure states and reaches for . Multiplying by gives thermodynamic entropy units. These uses make the density operator a common language for preparation uncertainty, measurement, thermal states and entangled subsystems, while retaining their distinct physical origins.
A microstate specifies the microscopic state: classically the positions and momenta of all particles, or quantum mechanically an allowed many-body state. A macrostate specifies a few coarse variables such as energy, volume and particle number. Many microstates can give the same macrostate. A statistical ensemble is a probability assignment over hypothetical copies prepared with the same macroscopic constraints; it does not require a sample to be literally divided into many physical copies. An observable's ensemble mean is , with an integral replacing the sum in classical phase space.
For an isolated system at fixed , the microcanonical ensemble assigns equal probability to accessible microstates in a narrow energy shell. If their number is , the Boltzmann entropy is . Thermal contact between two initially isolated systems allows energy to be shared while their sum stays fixed. The most probable division maximizes , so equilibrium requires equal . This gives the statistical temperature definition
For positive temperature, energy tends to flow from lower entropy slope to higher entropy slope until those slopes agree. The narrow energy-shell width represents macroscopic resolution; it must not exclude the physically accessible states.
For a small subsystem exchanging energy with a much larger bath, the bath has energy when subsystem microstate has energy . Expanding its entropy gives . Counting compatible bath states therefore yields the Boltzmann distribution and canonical ensemble:
The exponential weights individual microstates. An energy level of degeneracy has total probability ; a more degenerate excited level can outweigh one ground-state level even though each of its microstates is less probable. The Gibbs entropy gives . The equilibrium energy variance is , linking measurable fluctuations to a macroscopic response.
If particle exchange is also allowed, a reservoir fixes and chemical potential . The grand canonical ensemble weights a state by , with . Mean particle number is , while volume remains a constraint in this version. Thus the ensemble follows the physical exchange conditions: fixed energy, thermal contact, or thermal and particle contact.
In ordinary large short-range systems, relative fluctuations often decrease as and the ensembles give the same bulk thermodynamics away from singular limits. Finite systems, critical fluctuations and long-range interactions require care. Interpreting a time average as an ensemble average additionally requires appropriate sampling or mixing dynamics; it is not guaranteed solely by naming an ensemble. thermal equilibrium probability assignments do not describe every driven or relaxing state.
In the canonical ensemble, normalizes the probabilities . For temperature-independent levels,
The derivative holds external parameters, including magnetic field, fixed.
For one independent symmetric three-level system put and . Then and
At nonzero fixed field, the ground state dominates as , so . At high temperature all three levels become nearly equally populated and their mean tends to zero from below. At fixed positive temperature the energy is even in , is quadratic near zero field, and approaches at large as the lowest level becomes occupied. The heat capacity vanishes both when excitations are frozen out and when populations are almost equal, with a positive Schottky anomaly between those limits.
Figure 1.
Three-level mean energy versus temperature and field, and its Schottky heat-capacity peak
. Details.
At , expanding the hyperbolic functions gives
Interpreting the stated heat capacity on the same one-atom basis as the preceding calculation, its tail coefficient gives
Here is used consistently with in electronvolt kelvin. For a sample of independent atoms, the total coefficient would be times the one-atom coefficient; it must first be divided by .
Finally, two derivatives of supply the second energy moment:
Combining this with the heat-capacity derivative yields the canonical energy fluctuation relation
It also explains why this canonical heat capacity is nonnegative.[ref]
With microstate energies held fixed when differentiating,
Since ,
The canonical ensemble fixes volume and particle number, and any other external Hamiltonian parameters. Thus the derivative is ; pressure-fixed fluctuations would naturally involve enthalpy in a different ensemble.
The translational and two-level energy variance follows because translation and internal states factorize for this dilute classical gas:
Differentiating twice yields
The terms are independent translational and two-level binomial variances. At , excitation freezes out exponentially and translation dominates. At , the internal variance tends to while the translational variance grows as ; the internal heat capacity consequently tends to zero. Fractional total-energy fluctuations are of order for large . The low-temperature statement presumes translation is still nondegenerate; at strictly zero temperature the classical-gas model fails.
Treat as a constant and use the canonical ensemble identity . The given formal partition function gives . The pressure is its negative volume derivative at fixed :
Equivalently . The explicit temperature dependence in must be retained; this is not the ideal-gas pressure law.
Entropy is a thermodynamic state function. For a reversible heat transfer, ; the Clausius inequality generalizes this to irreversible processes. The combined entropy of a system and its surroundings does not decrease. A subsystem can lose entropy by exporting heat or matter, so the second-law statement must specify the whole isolated combination. In a simple compressible system,
which identifies temperature, pressure and chemical potential as derivatives of the energy representation of the state function. Thermodynamic equilibrium maximizes entropy under fixed total energy, volume and particle number. A heat reservoir instead leads to minimizing the Helmholtz free energy at fixed , or the Gibbs free energy at fixed .
Statistical mechanics explains the state count. In a microcanonical ensemble, equally probable compatible microstates give Boltzmann's entropy formula, . With general discrete probabilities, the Gibbs entropy is
The microcanonical formula follows by setting every nonzero probability to . For a canonical ensemble, , so
This turns microscopic energy levels and their populations into a measurable thermodynamic quantity. Classical phase-space counting needs a consistent microscopic normalization and indistinguishability convention; quantum state counting supplies that normalization. Independent systems have multiplicative state counts and therefore additive entropies.
For an ideal gas freely expanding from volume to in an insulated enclosure, energy remains fixed while each particle gains twice the accessible position volume. The state count increases by , giving . The actual irreversible process transfers no heat. A reversible isothermal comparison path transfers heat and computes the same entropy change because the initial and final thermodynamic equilibrium states are the same.
Calorimetry supplies another connection to experiment: at fixed pressure and within one phase, , with latent-heat contributions at first-order transitions. The third law of thermodynamics fixes for an ideal perfect crystal with a unique ground state. Degeneracy or frozen disorder can produce residual entropy. Entropy thus links heat-capacity measurements, phase thermodynamic equilibrium and the number of accessible microscopic configurations.
For a canonical ensemble, and . The kinetic and factorial factors do not depend on , so differentiating only the volume-dependent terms gives
Thus the equation of state is
The excluded-volume correction raises pressure relative to the same gas without that correction; the attractive mean-field term lowers it. No Stirling formula is required for this derivative.
Let denote the fluctuating microscopic energy and its mean, at fixed . In a canonical ensemble with ,
Since , this gives
Here denotes an energy fluctuation about the mean, as in the question. The relation is not restricted to ideal gases when the Hamiltonian operator has no explicit temperature dependence. Alternatively, the stated equilibrium free-energy curvature gives a Gaussian energy weight proportional to , with the same variance.
For the relative energy fluctuation of a monatomic ideal gas, and , hence
Taking room conditions as approximately K and Pa, with m, gives
The mean energy is about J and its standard deviation about J. The tiny relative fluctuation explains why macroscopic equilibrium internal energy behaves as a sharply defined thermodynamic quantity. The estimate uses a thermal reservoir, not a particle reservoir; allowing itself to fluctuate changes the relevant fluctuation problem.
An statistical ensemble specifies probabilities of microstates under particular macroscopic constraints. It represents statistical information about a system; the reservoir constraints of equilibrium ensembles specify what it can exchange with its surroundings.
The thermodynamic potentials generate mean quantities and response functions. For example, canonical energy variance is . With short-range interactions and stable bulk phases, relative fluctuations usually vanish for large systems and these ensembles give equivalent bulk predictions after matching their mean variables. Finite systems, constraints and long-range interactions require greater care; the ensembles retain different fluctuating variables.[ref]
Canonical probabilities. A canonical ensemble describes a system of fixed particle number and fixed external parameters such as volume, weakly coupled to a much larger thermal reservoir. They exchange energy and reach thermal equilibrium, while the reservoir's temperature stays effectively constant. The interaction energy is negligible in the state counting. The combined isolated system is described by equal probabilities for its accessible microstates.
If its total energy is , the probability of a particular system microstate is proportional to the reservoir multiplicity at . Writing that multiplicity as , expand its entropy:
The large-reservoir limit suppresses the higher terms. Normalization therefore gives
The sum counts individual microstates; when grouping them by energy, their state degeneracies must be included. This is the canonical partition function.
Classical orientational heat capacity. Hold the magnetic field fixed. Orientations of the magnetic dipole moment have the solid angle measure . With , the angular partition function is
Choosing a normalized angular measure would remove , with no effect on the energy derivatives. Differentiating at fixed ,
The angular average is the Langevin function. Since ,
This is the heat capacity of a classical magnetic dipole, in for one magnetic moment. The word specific here refers to that single moment; independent magnetic moments have times this heat capacity. At the energy is independent of orientation and , obtained by the continuous limit. At fixed nonzero , the classical low-temperature limit instead gives .
Equipartition and its proof. The equipartition theorem states that an independent quadratic term in a classical Hamiltonian, with , contributes to its mean energy. One needs a canonical measure that factors as times the measure of the remaining variables, convergence of the integrals, and vanishing boundary terms. The coordinate must not be restricted by a thermally important hard boundary or a coupled constraint.
For , integration by parts gives
Integrate over all other variables and divide by . It follows that
The same reasoning applies to quadratic momenta among the canonical variables. It is the number of quadratic energy contributions that is counted, not an unrestricted count of coordinate labels.
Two soft orientational directions. When , the moment is concentrated near alignment. Introduce local Cartesian coordinates in the tangent plane and . To leading order,
The two quadratic terms each contribute , so
This agrees with the exact angular calculation. Treating alone as one Cartesian quadratic variable would miss the measure and the second tangent direction. There are no extra rotational kinetic terms in the stipulated Hamiltonian; adding such terms would be a different model.
Quantum spin one. The spin projections are , with . Put , where is the gyromagnetic ratio. The three energies are , irrespective of the sign of . Relative to the ground state they are . Thus, with ,
Differentiation, or the canonical energy fluctuation identity , gives
In the requested limit,
This spin-1 paramagnet has a nondegenerate ground state and a finite spectral gap. Excitations are exponentially rare, so its heat capacity tends to zero. Classical orientational equipartition assumed a continuum of arbitrarily small excitation energies; that assumption fails when . This is a change in the accessible state spectrum, not a violation of the equipartition theorem within its classical domain.
Quantum Gibbs state Created 2026-10-18 Updated 2026-10-20
A quantum Gibbs state is the density operator of a canonical ensemble with inverse temperature . It exists when the canonical partition function is finite. The spectral theorem assigns probabilities to an orthonormal eigenbasis of the Hamiltonian. An additive constant in the Hamiltonian cancels between numerator and denominator. For , the exponential of a Pauli vector, continued to an imaginary argument, gives .
An isolated energy shell gives the microcanonical ensemble; a heat bath fixes for the canonical ensemble; a heat and particle reservoir fixes for the grand canonical ensemble. Constraints determine the allowed fluctuations and which thermodynamic potential is useful.
Spin overlap 2026-10-18
For two spin configurations on the same sites, their spin overlap is when they agree everywhere and when they are opposite everywhere. Two independent canonical ensemble draws must use the same quenched disorder. Otherwise their comparison mixes changes of thermal state with changes of material sample.
An original finite example uses the six equally weighted ground states of the frustrated Ising triangle. For each first configuration, the second has one identical choice, one fully reversed choice, two choices differing at one site and two differing at two sites. Thus the probability distribution of spin overlap is
It is symmetric, with but . At infinite temperature, all eight microstates are equally probable and instead . This computable change in similarity statistics is a finite-model fact, not evidence for replica symmetry breaking.
Statistical ensemble 2026-10-14
A statistical ensemble describes hypothetical copies of the same system under specified constraints, with a probability distribution over their microstates. An ensemble average is an expected value across those copies. The canonical ensemble fixes temperature and particle number while allowing energy exchange; the microcanonical ensemble fixes energy, and the grand canonical ensemble also allows particle exchange. These choices specify different physical preparations. [ref]
Statistical Hamiltonian 2026-10-06
A statistical Hamiltonian assigns an energy to a microscopic configuration. Its Boltzmann weight defines the canonical ensemble, and summing or integrating that weight gives a partition function. A reduced Hamiltonian absorbs inverse temperature into its coefficients, so the weight is . An Ising model uses discrete Ising spin configurations, while Landau-Ginzburg theory uses a coarse scalar field.
Statistical mechanics 2026-10-13
Statistical mechanics connects microstates to macrostates through probability distributions. Its microcanonical ensemble, canonical ensemble and grand canonical ensemble specify different constraints on exchanges with the surroundings. An ensemble average describes repeated preparations under those constraints; it need not be the value in every individual preparation.
This makes the subject useful whenever tracking every microscopic detail would obscure the question being asked. To predict a heat capacity, we need how the expected value of energy changes with temperature, rather than a record of every unit's state. The partition function packages that calculation into one reusable object.
In his 1902 book, J. Willard Gibbs systematically developed the canonical ensemble. His preface contrasts following one system through time with studying a collection of systems with different microscopic conditions. Chapter IV defines the canonical ensemble through an exponential function of energy and establishes its normalization. This supplied a general strategy for predicting collective measurements by averaging over possible microscopic conditions, with the partition function organizing the calculation. [ref] [ref]