Consider two distinguishable, noninteracting two-level systems, each with energies and . Their four microstates have total energies . Thus the three energy macrostates have state degeneracies . This is a stipulated finite model, not a measured material.
Set . The four individual Boltzmann factors are , so the partition function and aggregate probabilities areEach of the two middle microstates has probability , while their shared energy macrostate has probability .
At the temperature satisfying , the Boltzmann factor is and the partition function is . ThereforeThe middle energy is as likely as the ground state energy because its state degeneracy is twice as large. Yet each individual middle microstate is only half as likely as the ground state microstate. The diagram places the four energies beside their individual probabilities, then shows the sums within each macrostate.
The expected value of energy follows directly by weighting the three possible energies:At this is . An individual energy measurement still returns , or ; the expected value describes the ensemble average, rather than a fourth possible measured energy.
Boltzmann entropy of a two-box occupancy 2026-10-14
Take distinguishable, labeled particles and two boxes of equal volume. Retain only whether each particle is in the left or right box: use a bit for left and for right. Each length-20 string is one coarse microstate of this toy model. Assume the labels make independent side choices with equal probability, so the strings are equiprobable. Equal volumes motivate these weights for noninteracting particles with no preference for either box; equal volumes alone would not establish them for an arbitrary interacting gas.
Now retain only the number in the left box as the macrostate. Choosing which labels are left gives a binomial coefficient, soThe factorials count assignments to labels; the probability of a macrostate sums the probabilities of its constituent microstates. This is the binomial distribution with parameters and . The same binomial coefficient appears in the counting of distinguishable two-level systems, although here the macrostate records occupancy rather than energy. [ref]
https://ocw.mit.edu/courses/8-333-statistical-mechanics-i-statistical-mechanics-of-particles-fall-2013/0cb99318c2ed889316cdcff839759e8d_MIT8_333F13_Lec12.pdf. Mehran Kardar, MIT 8.333 (2013), lecture 12, §IV.C, equations IV.17–18: binomial microstate counts
The largest binomial coefficient occurs at , the balanced macrostate. All-left means and supplies just one string. ThusThere are balanced strings for every all-left string, even though each individual string has the same probability. Exact balance has about of the total probability; equilibrium reasoning concerns the many macrostates near balance too, rather than certainty of exactly ten particles on each side. The diagram compares the counts with their natural logarithms.
Counts and Boltzmann entropies of the occupancy macrostates of twenty labeled particles
. Details. Four fair, independent coins give a smaller worked example with the same binomial distribution. If is the number of heads, the five macrostates contain respectively microstates. Their probabilities are respectively . In particular, two heads is one macrostate containing six ordered coin sequences, with Boltzmann entropy in this counting analogy. A prescribed ordered sequence has one realization. The next diagram enumerates the same sixteen strings as left/right assignments.
Canonical ensemble Created 2026-09-24 Updated 2026-10-13
The canonical ensemble is the probability distribution for a system in thermal equilibrium with a heat bath at fixed temperature , with fixed particle number and external parameters. It allows energy exchange, so individual energy measurements fluctuate. With Boltzmann constant and inverse temperature ,The heat bath is idealized as large enough that exchanges barely change its temperature; coupling must permit equilibration while contributing negligible interaction energy. A finite heat bath approximates this description only when its temperature change is negligible over the relevant exchanges. Strong coupling or a small heat bath can require a different description.
For one two-level system at positive temperature, the Boltzmann weights are , henceAt , and . This is a probabilistic thermal mixed state. For quantum levels, its density matrix is . The pure state has the same energy measurement probabilities, but also has quantum coherence between the energy eigenstates. Matching those probabilities does not make the states equivalent.
Canonical partition function Created 2026-09-24 Updated 2026-10-14
The partition function is the sum of the Boltzmann weights over individual microstates. Dividing by it makes their probabilities sum to one. When summing distinct energies instead, include the state degeneracy: . For two independent distinguishable two-level systems,The middle coefficient counts two microstates, exactly as in the preceding figure. For such units, ; this factorization requires additive energy and independence, and generally fails with interactions.
The usefulness goes beyond normalization. For fixed energies, derivatives of the natural logarithm of the partition function yield measurable quantities:Here is internal energy, the second expression is the energy variance, and is Gibbs entropy. For one two-level system at fixed , its heat capacity and entropy areAt , these give , and . For independent units, all three quantities add.
The figure shows why heat capacity peaks. At low temperature, the excited energy is rarely occupied; at high temperature, the probabilities are almost equal and further warming barely changes internal energy. The largest response lies between these limits, at , where . Meanwhile entropy rises from zero toward , reflecting two equally likely alternatives. This high-temperature limit belongs to the stipulated two-level system; extra accessible energy eigenstates would change it.
Exact variational solution in a two-level system Created 2026-09-24 Updated 2026-10-14
In a two-level system, let the Hamiltonian operator have matrix in the orthonormal basis . The normalized real trial quantum states and their Rayleigh quotient areThe excited-state probability amplitude is , so its probability is . Thus , with equality if and only if the excited-state probability amplitude vanishes: . The remaining quantum state is up to a global phase. At the trial energy is ; at it is . These are upper bounds on the ground-state energy, even though neither is a minimizing trial.
Two-level variational energy is twice the excited-level probability and reaches zero only when the excited amplitude vanishes
. Details. The real trial family contains the ground state, so it attains the exact minimum despite not covering every complex quantum state. More generally, a family covering all normalized vectors in a two-dimensional Hilbert space gives the exact lowest eigenvalue of any Hermitian matrix by minimizing its Rayleigh quotient. For a complex trial with , the same calculation gives : a relative quantum phase cannot change this diagonal Hamiltonian energy. This finite example is the weighted mean proof of the variational method with just two energy eigenstates.
Independent-moment magnetic response 2026-10-14
Consider a stipulated dilute collection of independent two-level systems, each with longitudinal magnetic moment , , and energy . The prescribed vacuum/applied magnetic flux density is . Ignore interactions, orbital magnetic response, and the small sample-field correction. This is the magnetic version of the existing independent spin-one-half two-level system, with alignment probabilities rather than an interacting Curie–Weiss model.
For temperature , the canonical ensemble gives the one-moment partition function , with . Taking the expected value over its two Boltzmann weights givesHere is the number density, the Boltzmann constant, and the hyperbolic tangent. For , its small-argument expansion of the hyperbolic tangent gives , a Curie's law response in the applied- convention. For large , approaches the saturation magnetization with sign set by the field, and its differential magnetic susceptibility falls towards zero.
Both plots use stipulated , , , and . The moment is approximately one Bohr magneton; the chosen vacuum permeability is a rounded model input. At , and . The linear approximation overestimates by less than for , corresponding to or . These parameters keep the modeled response weak; neglected magnetic feedback is of relative order , rather than an explanation of a material's ordered phase.
Bias-field and temperature dependence of the independent-moment differential magnetic susceptibility
. Original calculation using the same stipulated moments and number density. The left panel compares field sweeps at , and . The right panel compares temperature sweeps at prescribed , and . The zero-field slope follows Curie's law; cooling at fixed nonzero field eventually suppresses the slope through saturation magnetization. Details.At , cooling increases the zero-field slope as . At fixed , cooling instead gives : a saturated moment can hardly change further. The order of the zero-field and zero-temperature limits matters. This independent model has no finite-temperature collective phase transition; the diverging zero-field slope alone does not establish one.
Macrostate Created 2026-09-24 Updated 2026-10-14
A macrostate groups microstates sharing prescribed coarse data. The grouping depends on what is retained: here retain only total energy. For the two distinguishable two-level systems, the macrostates have state degeneracies . Although two units are not macroscopic in size, they make this loss of information visible: knowing does not tell us which unit is excited.
At inverse temperature , each unit's excited-state probability is . Their independence gives microstate probabilities in the order above. Adding within each macrostate givesThe total expected value of energy is therefore , matching two units each with expected value of energy . Equal state degeneracies would give the wrong answer: macrostate probabilities combine counting with the Boltzmann factor. At very high positive temperature, all four microstates become equally likely, but these three macrostate probabilities approach .
Microstate Created 2026-09-24 Updated 2026-10-14
A microstate is a complete microscopic specification within the chosen model. For two distinguishable, noninteracting two-level systems, label the units and their states , with energies and . The four microstates arewith total energies . Distinguishability matters: and describe different assignments to the labeled units. Noninteraction matters too: their energies add without an extra coupling term.
For a classical particle model, a microstate can instead be a point in phase space, specifying every position and momentum. In the quantum canonical ensemble, the sum uses energy eigenstates; a general quantum state may also contain quantum coherence, which an energy label alone does not specify.
Statistical physics Created 2026-09-24 Updated 2026-10-13
Statistical physics explains collective behavior using probability distributions over microscopic possibilities. Its central surprise is that incomplete microscopic knowledge can still produce precise predictions for internal energy, entropy and heat capacity. The bridge is statistical mechanics: specify the available microstates, assign their probabilities, then compute the expected values of measured quantities.
A two-level system already displays the idea. Warming it makes its higher energy more likely; its heat capacity first rises, then falls as the two probabilities approach equality. With two distinguishable units, merely counting microstates explains why the middle energy has twice the state degeneracy. These small examples expose the machinery before the much larger sums needed for a photon gas or an Ising model.
The appeal is economical: the same microscopic energies and probabilities explain both an average reading and its variance. A measurement's spread therefore becomes useful physical information rather than an inconvenience to discard.
Two-level sudden quench 2026-10-14
Take an isolated two-level system, or a spin one-half qubit, with Pauli matrices . Let and . The initial and final Hamiltonian operators areThe energy gaps are . Prepare the initial ground state , with energy eigenvalue . A final orthonormal eigenbasis isDirect matrix multiplication gives and . The unchanged initial quantum state is . Its new probability amplitudes are the inner products ; the Born rule gives . The angle between the real amplitude vectors is , whereas the Hamiltonian axis on the Bloch sphere rotates through .
At , and , so the final energy measurement gives with probability and with probability . At the initial ground state remains the final ground state; at it is the final excited energy eigenstate. These statements are about the new energy labels, not an instantaneous physical rotation of the quantum state.







