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 (1qn)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=Treβ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=eiHt|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(AB)=Tr(BA), 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^=aa 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|n1). 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:

TreβH=n0n|eβH|n=n0eβω(n+1/2)=eβω/21eβω. (2)

This is (7) of Lecture 1, now read as a trace. A bosonic mode admits any occupation n0: 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=ϵcc the trace is a two-term sum,

Treβ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)=nSymnV, fermionic Fock space is the exterior algebra V=nnV, 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 =kk, 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}=knk|eβHk|nk, and summing over every configuration {nk} turns a sum of products into a product of sums:

Z=TreβH ={nk}knk|eβHk|nk (4)
=k(nknk|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ω, n1, 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 m0qnm=(1qn)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=n111qn, (5)
Fermions (each n occupied 0 or 1 time): Zf=n1(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 q1/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:

n111qn=N0p(N)qN=1+q+2q2+3q3+5q4+7q5+, (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:

n1(1+qn)=1+q+q2+2q3+2q4+3q5+. (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

𝒵=Treβ(HμN)=TrzNeβ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=Trexp(aβaQa) (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 Trgeβ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 TrzNeβH inserting a symmetry operator choosing a boundary condition a spin structure (L3L4).

← Back to The Many Faces of the Partition Function

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