Lecture 2

Quantum Statistics: the Partition Function as a Trace

For the reader from (mathematics).

The upgrade here is from a sum over a labelled index set to a trace on End⁡(ℋ). A trace is basis-independent and cyclic; those two properties are doing real work. The Fock-space examples turn the geometric and finite series of Lecture 1 into the infinite products ∏(1−qn)−1 and ∏(1+qn) - the same series a number theorist meets as generating functions for integer partitions.

1 From a sum to a trace

Quantum mechanically the energies Ei are eigenvalues of a Hamiltonian operator H on a Hilbert space ℋ. The Boltzmann factor is no longer a number attached to a configuration; it is the operator e−β⁢H, and the partition function is its trace:

Z=Trℋe−β⁢H=∑ie−β⁢Ei. (1)

Evaluating the trace in the energy eigenbasis recovers Lecture 1. But the trace is basis-independent: we may compute it in any basis, and that freedom is exactly what makes Z a robust object rather than an artifact of a chosen labelling.

Thread (The L1 → L2 distinction - worth dwelling on).

Students routinely conflate “statistical mechanics” and “quantum statistics.” The difference is precisely the promotion of the Boltzmann factor from a scalar e−β⁢Ei (L1) to an operator e−β⁢H (L2). Three consequences follow, none cosmetic:

  1. 1.

    With non-commuting observables there is no preferred basis, so basis-independence - the trace - is what makes Z well-defined.

  2. 2.

    Indistinguishability of identical quanta forces the Bose vs. Fermi alternatives (§2).

  3. 3.

    e−β⁢H is imaginary-time evolution, e−β⁢H=e−i⁢H⁢t|t=−i⁢β, the hinge that swings us into the path integral of Lecture 3.

The (unnormalized) state of the system is the density operator ρ=e−β⁢H/Z, and expectation values are ⟨𝒪⟩=Tr⁡(ρ⁢𝒪). Cyclicity of the trace, Tr⁡(A⁢B)=Tr⁡(B⁢A), is the algebraic seed of the Kubo–Martin–Schwinger condition we will meet in L3 and of modular invariance in L4.

2 Fock space and the two universal products

The trace (1) may be computed in any basis; for a collection of non-interacting quantum modes the convenient one is the occupation-number basis of a Fock space. We build it one mode at a time, and in that basis the trace is a sum of diagonal matrix elements ⟨n|e−β⁢H|n⟩-each basis ket sandwiched around the Boltzmann operator.

A single bosonic mode.

Write the mode with ladder operators [a,a†]=1. The number operator n^=a†⁢a has the tower of eigenstates |n⟩, n=0,1,2,…, generated from the vacuum by a†|n⟩=n+1|n+1⟩ (and lowered by a|n⟩=n|n−1⟩). With H=ℏ⁢ω⁢(n^+12) these are energy eigenstates, so each sandwich ⟨n|e−β⁢H|n⟩ returns the eigenvalue e−β⁢En and the trace is a bare sum of Boltzmann numbers:

Trℋe−β⁢H=∑n≥0⟨n|e−β⁢H|n⟩=∑n≥0e−β⁢ℏ⁢ω⁢(n+1/2)=e−β⁢ℏ⁢ω/21−e−β⁢ℏ⁢ω. (2)

This is (7) of Lecture 1, now read as a trace. A bosonic mode admits any occupation n≥0: the tower is infinite.

A single fermionic mode.

Now the operators anticommute, {c,c†}=1 and c2=0. That c2=0 is the Pauli principle, and it truncates the tower to just two states, |0⟩ and |1⟩=c†|0⟩: the Fock space is two-dimensional. With H=ϵ⁢c†⁢c the trace is a two-term sum,

Trℋe−β⁢H=⟨0|e−β⁢H|0⟩+⟨1|e−β⁢H|1⟩=1+e−β⁢ϵ, (3)

recovering (8). Bose versus Fermi is nothing but the length of the tower the trace runs over-an infinite geometric series against two terms.

For the reader from (mathematics).

Fock space is built from the single-particle space V=⨁kℂ (one dimension per mode) by a functor: bosonic Fock space is the symmetric algebra Sym⁢(V)=⨁nSymn⁢V, fermionic Fock space is the exterior algebra ⋀V=⨁n⋀nV, and occupation number is exactly the symmetric/exterior grading. This is not a passing analogy: in Lecture 5 Sym⁢(V) becomes the Heisenberg vertex algebra and ⋀V a Clifford (super) vertex algebra, generated by exactly the modes assembled here.

Many modes: the trace factorizes.

Assemble all the modes. The Hilbert space is the tensor product ℋ=⨂kℋk, with occupation-number basis |{nk}⟩=⨂k|nk⟩; the Hamiltonian is additive, H=∑kHk; and because the Hk act on separate factors, e−β⁢H=⨂ke−β⁢Hk. A diagonal matrix element therefore splits into a product over modes, ⟨{nk}|e−β⁢H|{nk}⟩=∏k⟨nk|e−β⁢Hk|nk⟩, and summing over every configuration {nk} turns a sum of products into a product of sums:

Z=Tr⁡e−β⁢H =∑{nk}∏k⟨nk|e−β⁢Hk|nk⟩ (4)
=∏k(∑nk⟨nk|e−β⁢Hk|nk⟩)=∏kZk.

Exchanging “sum over all configurations” for “product over modes” is the operator version of the factorization (9): independent modes multiply, and each factor Zk is a single-mode trace of the kind just computed.

Now specialize to a tower of modes with energies ℏ⁢ωn=n⁢ℏ⁢ω, n≥1, and write q=e−β⁢ℏ⁢ω. (Note: this is the thermal q, not yet the torus q.) Mode n then carries the weight qn per quantum. Measuring energies from each mode’s ground state, its bosonic factor (2) is ∑m≥0qn⁢m=(1−qn)−1 and its fermionic factor (3) is 1+qn. The product (4) over the whole tower is then

Bosons (each n occupied 0,1,2,… times): Zb=∏n≥111−qn, (5)
Fermions (each n occupied 0 or 1 time): Zf=∏n≥1(1+qn). (6)

These two products-one for each statistics-are the protagonists of the rest of the series.

Thread (The boson/fermion thread, now infinite products).

Equation (5) is, up to the factor q−1/24 (the zero-point energies of Example 1.2 summed over the tower and regularized in L3), the character η⁢(τ)−1 we will meet in L4; (6) is a ratio of theta and eta functions in disguise. Keep both in view: the boson will become the Heisenberg vertex algebra and the fermion a Clifford (super) vertex algebra in L5.

3 The “partition function” pun is literal

Expand (5) as a power series in q:

∏n≥111−qn=∑N≥0p⁢(N)⁢qN=1+q+2⁢q2+3⁢q3+5⁢q4+7⁢q5+⋯, (7)

where p⁢(N) is the number of ways of writing N as a sum of positive integers-the number of integer partitions of N. Euler’s generating function and the physicist’s partition function of a bosonic tower are the same series. (The coincidence of names is a genuine coincidence, but a happy one.) Likewise the fermionic product (6) counts partitions of N into distinct parts:

∏n≥1(1+qn)=1+q+q2+2⁢q3+2⁢q4+3⁢q5+⋯. (8)

Computing a thermodynamic quantity and counting combinatorial objects are, here, one act.

4 Refining the trace: chemical potential and fugacity

Suppose the system also conserves a particle number N (an operator commuting with H). Holding ⟨N⟩ fixed on average introduces a second Lagrange multiplier, exactly as β was introduced for energy in Lecture 1. Call it the chemical potential μ. The weight becomes e−β⁢(H−μ⁢N), and the partition function is the grand canonical

𝒵=Tr⁡e−β⁢(H−μ⁢N)=Tr⁡zN⁢e−β⁢H,z:=eβ⁢μ, (9)

with z the fugacity. Physically μ is the energetic cost of adding one particle; formally zN grades the trace by the conserved charge, and ∂log⁡𝒵/∂(β⁢μ)=⟨N⟩.

Thread (One conjugate potential per conserved charge).

This is the general move, stated once: for every commuting conserved charge Qa we may insert a conjugate potential and refine the trace, Z=Tr⁡exp⁡(−∑aβa⁢Qa) (the generalized Gibbs ensemble). The sign-graded trace Tr(−1)Fe−β⁢H is the same move with the fermion-number charge-the seed of the Witten index. Each such knob reappears, renamed, downstream: yJ0 on the torus (L4), the Cartan variables of a character (L5), and the y of the elliptic genus.

For the curious (the trace as a twisted character).

The trace itself is the canonical map End⁡(ℋ)→ℂ for a dualizable object ℋ-the categorical fact the Finale will make precise. The graded trace Tr⁡g⁢e−β⁢H for a symmetry operator g (here g=zN or g=(−1)F) is a twisted version of that same map. When g generates a finite or compact group, summing or integrating over g projects onto invariants-the orbifold/gauging construction. We will not need orbifolds, but it is worth knowing that “insert an operator in the trace” is the universal hook on which charges, boundary conditions, and (in L4) spin structures all hang.

Rosetta notes

  • •

    Trace ↔ sum over states in any basis, now basis-independent.

  • •

    e−β⁢H↔ evolution by imaginary time β - the cliffhanger for L3.

  • •

    Graded trace Tr⁡zN⁢e−β⁢H↔ inserting a symmetry operator ↔ choosing a boundary condition ↔ a spin structure (L3–L4).

← Back to The Many Faces of the Partition Function

Prefer the whole series as one document? Download the notes (PDF).