A Gibbs sampler is a dynamics whose fixed point is the Gibbs state of the system Hamiltonian. Nature has one: put a small system in weak contact with a large thermal bath and wait. Module 5 turned that statement into a formula, the Davies generator. This module explains why the Davies generator fixes . The answer has three layers, each of which reappears in the CKG construction:

  1. a property of the bath: the KMS condition, which makes the rates for absorbing and emitting energy differ by the Boltzmann factor ;
  2. a property of the generator: quantum detailed balance, which upgrades ” is stationary” to “the generator is self-adjoint in a -weighted inner product”;
  3. a property of the coupling: ergodicity, which makes the fixed point unique.

Detailed balance comes in two quantum versions, GNS and KMS. The difference sounds like a technicality, but it is the reason the CKG sampler can be efficient at all. The Davies dissipator satisfies the stronger GNS version (the full generator, including and the Lamb shift, is balanced only up to a Hamiltonian drift that commutes with ), and that stronger version forces exact energy resolution. CKG settle for the weaker KMS version, which tolerates finite energy resolution.

1. The KMS condition for the bath

1.1 Statement in time

Let the bath be in its own Gibbs state and recall the correlation function (Definition 3.2). For a finite bath, extends to an entire function of complex . For an infinite bath it extends analytically into the strip .

Proposition 6.1 (KMS condition).

For a thermal bath,

For a single coupling operator this reads , or equivalently .

What it says. Shifting time by is the same as reversing the order of the two operators. Imaginary time is inverse temperature, and the Gibbs weight is itself an imaginary-time evolution. The original papers are Kubo (1957), Martin–Schwinger (1959), and Haag–Hugenholtz–Winnink (1967). In the last of these, becomes the definition of a thermal state for infinite systems, where no longer makes sense.

1.2 Statement in frequency

Proposition 6.2 (KMS in frequency space).

With ,

This is the version used in practice (Proposition 3.4). For a harmonic bath it is the familiar statement , , together with . Positive is energy given to the bath. The bath accepts energy more readily than it gives it away, by exactly the Boltzmann factor.

The same statement, three ways. (i) In time: analytic continuation by swaps the operator order. (ii) In frequency: the emission/absorption ratio is . (iii) As a state property: is the unique state that is stationary under and satisfies (i). The third viewpoint generalizes. Section 3 will define detailed balance for a generator by asking that the generator be “KMS-symmetric” with respect to .

Definition 6.1 (Effective temperature).

For any non-negative function , thermal or not, define the effective inverse temperature at frequency

The function satisfies the KMS relation at some if and only if is constant.

The effective temperature is a diagnostic that we shall use for structured baths (Module 7) and for the filter functions in CKG (§7).

2. Classical detailed balance as a warm-up

A continuous-time Markov chain with rates and stationary distribution satisfies detailed balance if

Three facts follow.

  • Stationarity: summing over gives zero net flow into .
  • Symmetry: the generator is self-adjoint in the weighted inner product , so its spectrum is real.
  • Locality is free: each pair can be balanced separately, using only the energy difference and never the partition function.

The last point is why Metropolis works: to propose a move you only need to know how much energy it costs. Stationarity alone is much weaker, since it allows probability currents circulating around cycles. Module 8 shows that such currents can make the spectrum complex.

For the Davies generator, the populations in a non-degenerate eigenbasis obey a classical master equation with rates (Module 5). KMS gives

so the population dynamics is classically detailed-balanced with respect to the Boltzmann distribution. The quantum question is what to do with the coherences, and that is where the two quantum notions part ways.

3. Quantum detailed balance: GNS and KMS

Let be a full-rank state (later ). Write for a Lindbladian acting on states (Schrödinger picture) and for its Hilbert–Schmidt adjoint acting on observables (Heisenberg picture), so . A Lindbladian’s Heisenberg adjoint is unital: .

There is no unique “-weighted inner product” on operators, because does not commute with . Two choices matter here:

Both reduce to when and are diagonal in the eigenbasis of . GNS is named after Gelfand–Naimark–Segal: it is the inner product of the GNS representation. KMS is the symmetric splitting of .

Definition 6.2 (GNS detailed balance).

satisfies -GNS detailed balance if is self-adjoint with respect to . Equivalently,

Since and preserve Hermiticity, this also gives .

Definition 6.3 (KMS detailed balance).

satisfies -KMS detailed balance if is self-adjoint with respect to . Equivalently,

The second form is the definition used by Chen–Kastoryano–Gilyén (CKG, Def. II.1).

To get the equivalence in , write out self-adjointness: for all . The left side is . On the right, . Since is arbitrary, . The KMS case is identical with split symmetrically.

Corollary 6.1 (Detailed balance implies stationarity).

If satisfies -GNS or -KMS detailed balance, then .

Detailed balance also buys a real spectrum. A self-adjoint operator in some inner product has real eigenvalues, and has the same spectrum as . Section 5 makes this concrete through the discriminant.

3.1 GNS is stronger than KMS

The key object is the modular operator . In the eigenbasis of , it acts diagonally on matrix units, . Its eigenvalues are positive, so every real power is a function of . For and a Bohr component (Definition 5.3), , because

Indeed, and . So Bohr components are exactly the eigenvectors of the modular operator.

Lemma 6.1 (GNS detailed balance commutes with the modular operator).

If satisfies -GNS detailed balance, then . Consequently also satisfies -KMS detailed balance.

The converse fails: Example Example 6.2 below gives a KMS-balanced generator that does not commute with . Together with the classical case this gives the hierarchy of Figure 6.1.

ρ_β stationary: 𝓛(ρ_β) = 0 may carry circulating currents, complex spectrum KMS detailed balance self-adjoint for Tr(ρ^½ X† ρ^½ Y), real spectrum GNS detailed balance commutes with Δ(X) = ρXρ⁻¹ Davies dissipator CKG sampler coherent-jump qubit
Figure 6.1. Quantum detailed balance in three nested classes. The Davies dissipator sits in the innermost GNS class, which requires jumps that are exact Bohr components (adding the commuting Hamiltonian part −i[H_S + H_LS, ·] moves the full Davies generator outside these classes: it is detailed balanced only up to a unitary drift and has complex spectrum). The CKG sampler is KMS-balanced but not GNS-balanced, which is what lets it use finite energy resolution.

3.2 What GNS forces: the structure theorem

The commutation is very restrictive. Alicki (1976) showed that a -GNS balanced Lindbladian can always be written as

with , and with the jumps coming in pairs whose weights carry the Boltzmann ratio. (Carlen and Maas 2017 give a modern account of this structure, including the precise form of the Hamiltonian part.) For the condition says, by , that each jump must be an eigenvector of the modular operator. In other words, it must move energy by an exact Bohr frequency. GNS detailed balance therefore forces the Davies structure. For a many-body Hamiltonian, implementing such jumps requires resolving exponentially close energy levels (Module 9).

KMS detailed balance has no such constraint. It is satisfied, for example, by a jump that is a coherent superposition of components moving different energies, as long as the amplitudes carry the right square-root Boltzmann weights. This is the freedom CKG exploit.

4. The Davies generator fixes the Gibbs state

We now prove the main result promised in Module 5. Take the Davies generator of Definition 5.5 for a thermal bath at inverse temperature , with Hermitian couplings . Set and absorb into the rates. The generator is with

Theorem 6.1 (Davies generator: Gibbs fixed point and detailed balance).

Let and suppose the bath functions satisfy KMS, . Then:

  1. satisfies -GNS detailed balance (and hence, by Lemma 6.1, KMS detailed balance).
  2. The Hamiltonian part is anti-self-adjoint in the same inner product: and for .
  3. .
  4. (Uniqueness and convergence, Spohn 1977; Frigerio 1978.) If the rate matrices are positive definite for every Bohr frequency (so every actually appears as a jump) and the only operators commuting with all and are multiples of the identity, then is the unique stationary state and for every initial state .

Plain-language summary of the proof. A jump followed by its reverse leaves the Gibbs weight unchanged, because the forward rate times equals the backward rate times . The secular approximation makes sure no jump mixes different energy changes, so this bookkeeping is exact operator by operator. The Lamb shift is diagonal in the energy basis, so it can only rotate phases. Example 6.1 below shows the same bookkeeping for a harmonic mode, edge by edge.

Two caveats are important for Part II.

  • The theorem is about , not . The exact equilibrium of the coupled system differs at (Module 5, §7). For sampling this is a feature: we want the Gibbs state of the Hamiltonian we were given.
  • Part (1) used exact Bohr components twice: in and in . Replace by an energy-smeared version, as any finite-time implementation must, and both identities fail. The fixed point then moves away from by an amount set by the energy resolution. This is the Davies obstruction in its algebraic form.
Example 6.1 (The quantum optical master equation).

A cavity mode coupled through to a thermal bath has Bohr components and . The Davies generator, dropping the Lamb shift, is

with , , and . The populations change through at rate and at rate . The thermal distribution balances each edge separately:

The coherences with decay, since in the Davies generator they are only coupled to coherences with the same . The steady state is exactly. This is the infinite-dimensional analogue of the damped qubit in Module 5 (Example 5.1).

5. A KMS-balanced generator that is not GNS-balanced

The cleanest way to see the difference between the two definitions is a single qubit.

Example 6.2 (Coherent up-and-down jump).

Let , , and consider the single jump operator

KMS detailed balance holds. Using (from with power ),

that is, . Therefore the jump term satisfies . Moreover is diagonal, so it commutes with and the anticommutator term satisfies trivially.

GNS detailed balance fails. By Lemma 6.1 a GNS-balanced would map each eigenspace of to itself. But has -eigenvalue , while

which has eigenvalue . The anticommutator part maps to a multiple of itself, so it cannot cancel this.

Physics. The populations see a down rate and an up rate , exactly as in Davies. The difference is in the coherences. Because superposes and , the term contains and , which convert into . These are exactly the non-secular terms that Redfield had and Davies threw away (Module 5, Example 5.1). Here, though, they come in a GKSL form that keeps exactly stationary.

The lesson: you can mix different Bohr frequencies inside a single jump operator, without losing exact thermal stationarity, provided the mixing amplitudes carry the square-root Boltzmann weights . CKG’s jump operators are built from an operator Fourier transform with a Gaussian filter. They mix nearby Bohr frequencies with exactly this kind of weighting, plus a correction term in the coherent part that cancels what is left (Modules 10–11).

6. The discriminant and the parent Hamiltonian

KMS detailed balance has a convenient linear-algebra consequence. Let be full rank.

Proposition 6.3 (Discriminant).

Define the discriminant

Then satisfies -KMS detailed balance if and only if is self-adjoint with respect to the Hilbert–Schmidt inner product . In that case:

  1. and are similar maps, so they have the same spectrum. The spectrum of is real and .
  2. : the “square root of the Gibbs state” is a zero mode.
  3. Vectorizing, is a Hermitian, positive semidefinite matrix on whose ground state is . For this vector is the thermofield double (canonical purification) of .

This is the bridge between Gibbs sampling and ground-state preparation. The spectral gap of equals the spectral gap of the “parent Hamiltonian” above its zero-energy ground state (Module 8). CKG use this to turn a fast-mixing Lindbladian into a quantum algorithm that prepares the purified Gibbs state, by adiabatic (quantum simulated annealing) or quasi-adiabatic evolution along a path in (CKG §I.A.1 and App. C). Note that is built from , so it is only as local as is.

7. Effective temperature of filtered baths

Real baths, and the engineered “baths” inside a quantum algorithm, rarely have an exactly thermal . The effective temperature of Definition 6.1 tells us when the Davies argument still applies. The proof of Theorem 6.1 used KMS only at the Bohr frequencies, so a with for all gives the Gibbs state at . If varies with , write the population rate ratio on each edge as with . By Kolmogorov’s criterion, the population chain has a detailed-balanced stationary distribution only if around every closed cycle of transitions, where . For a system whose transitions form many cycles with different energy steps, this forces to be linear, i.e. constant. Otherwise the populations settle either into a distorted, non-Gibbs distribution (when the transition graph has no cycles) or into a steady state that carries probability currents around cycles.

Example 6.3 (Lorentzian versus Gaussian filter).

Lorentzian. Let on the whole real line, a resonance of width centered at . Then

so but for . The temperature grows with the energy of the transition. A system with a broad spectrum sees a hot bath for large jumps and a cooler one for small jumps. Homework 2 works out the numbers.

Gaussian. Let . Then

so is exactly constant. A Gaussian centred off zero is an exponentially tilted symmetric function, , and the tilt is precisely a Boltzmann factor.

The Gaussian identity is the reason CKG use Gaussian filters. In their convention the argument of is the energy gained by the system, so , and their weight corresponds to the bath function centred at above. Once the Gaussian energy-estimation window of width of the operator Fourier transform is included, the widths add in quadrature and the inverse temperature becomes . Module 11 derives this carefully.

8. Relaxation as free-energy decrease

There is a thermodynamic reading of all this.

Proposition 6.4 (Spohn's entropy production inequality).

Let be a CPTP semigroup with stationary state . Then is non-increasing, where . For ,

so the non-equilibrium free energy decreases monotonically along the Davies flow.

Proposition 6.4 gives monotonicity but no rate. How fast the relative entropy decays is the subject of log-Sobolev and spectral-gap inequalities. These are the quantum versions of the Markov chain mixing bounds of Module 8, and detailed balance is what makes them tractable (Kastoryano–Temme 2013).

Practice: Homework 2: Born–Markov, Davies, and KMS.

Summary

  • KMS for the bath: , equivalently . Absorbing energy is suppressed by relative to emitting it.
  • Two quantum detailed-balance conditions: GNS (self-adjoint in ) and KMS (self-adjoint in ). Both imply and a real spectrum.
  • GNS ⇒ KMS, but not conversely. GNS forces , so every jump must be a modular eigenvector, i.e. an exact Bohr component. KMS allows coherent mixtures of Bohr components weighted by .
  • Davies fixes : its dissipator is GNS-balanced, its Hamiltonian part commutes with , and ergodicity (trivial commutant) gives uniqueness and convergence.
  • The discriminant turns a KMS-balanced Lindbladian into a Hermitian parent Hamiltonian whose ground state is the purified Gibbs state.
  • Gaussian filters are exactly thermal: satisfies KMS at , whereas a Lorentzian does not. This identity underlies CKG’s choice of filter.
  • Relaxation decreases the free energy monotonically (Spohn). Rates of decrease are the topic of Module 8.

Further reading

  • R. Kubo, “Statistical-mechanical theory of irreversible processes I”, J. Phys. Soc. Jpn. 12, 570 (1957). DOI:10.1143/JPSJ.12.570
  • P. C. Martin and J. Schwinger, “Theory of many-particle systems I”, Phys. Rev. 115, 1342 (1959). DOI:10.1103/PhysRev.115.1342
  • R. Haag, N. M. Hugenholtz, and M. Winnink, “On the equilibrium states in quantum statistical mechanics”, Commun. Math. Phys. 5, 215 (1967). DOI:10.1007/BF01646342
  • R. Alicki, “On the detailed balance condition for non-Hamiltonian systems”, Rep. Math. Phys. 10, 249 (1976). DOI:10.1016/0034-4877(76)90046-X
  • A. Kossakowski, A. Frigerio, V. Gorini, and M. Verri, “Quantum detailed balance and KMS condition”, Commun. Math. Phys. 57, 97 (1977). DOI:10.1007/BF01625769
  • H. Spohn, “An algebraic condition for the approach to equilibrium of an open N-level system”, Lett. Math. Phys. 2, 33 (1977). DOI:10.1007/BF00420668
  • A. Frigerio, “Stationary states of quantum dynamical semigroups”, Commun. Math. Phys. 63, 269 (1978). DOI:10.1007/BF01196936
  • H. Spohn, “Entropy production for quantum dynamical semigroups”, J. Math. Phys. 19, 1227 (1978). DOI:10.1063/1.523789
  • G. Lindblad, “Completely positive maps and entropy inequalities”, Commun. Math. Phys. 40, 147 (1975). DOI:10.1007/BF01609396
  • F. Fagnola and V. Umanità, “Generators of detailed balance quantum Markov semigroups”, Infin. Dimens. Anal. Quantum Probab. Relat. Top. 10, 335 (2007).
  • E. A. Carlen and J. Maas, “Gradient flow and entropy inequalities for quantum Markov semigroups with detailed balance”, J. Funct. Anal. 273, 1810 (2017). arXiv:1609.01254
  • M. J. Kastoryano and K. Temme, “Quantum logarithmic Sobolev inequalities and rapid mixing”, J. Math. Phys. 54, 052202 (2013). arXiv:1207.3261
  • C.-F. Chen, M. J. Kastoryano, and A. Gilyén, “An efficient and exact noncommutative quantum Gibbs sampler” (CKG). arXiv:2311.09207