38 Thermodynamics

No notion in this section is introduced by definition. Each one emerges from the identity through structures already built:

Notion Emerges as
equality, equivalence the diagonal as an idempotent, swap-invariant relation
Leibniz rule automorphisms over the dual numbers, the doubling with \(e^2=0\)
energy the generator of the time automorphisms
Gibbs state, \(\beta \) the state whose modular flow is the time flow
entropy the expectation of the modular Hamiltonian
relative entropy a difference of modular Hamiltonians
mutual information relative entropy to the product state
the four laws positivity of the cone, applied to the above

38.1 Equality and equivalence

E1 (relations compose). A relation \(R\subseteq X\times X\) is a cut of \(X\times X\). Relations compose by

\begin{equation} R\circ S=\{(x,z):\ \exists y,\ (x,y)\in S,\ (y,z)\in R\}, \tag{764}\end{equation}
which is associative by the joining of rows, with unit the diagonal \(\Delta =\langle \mathrm {id},\mathrm {id}\rangle (X)\). The swap \(\sigma \) reverses relations, \(\sigma (R)=\{(y,x):(x,y)\in R\}\).

E2 (equivalence relations are diagonal cuts). A relation is an equivalence relation exactly when

\begin{equation} \Delta \subseteq R, \qquad \sigma (R)=R, \qquad R\circ R=R . \tag{765}\end{equation}
It contains the identity, it is fixed by the swap, and it is idempotent: a self-adjoint cut of the relation algebra containing the unit. The three properties are one property.

E3 (equality). The smallest such relation is \(\Delta \) itself:

Property of \(=\) Form Source
reflexive, \(a=a\) \(\Delta \subseteq \Delta \) the identity
symmetric, \(a=b\Rightarrow b=a\) \(\sigma (\Delta )=\Delta \) the swap fixes the diagonal
transitive, \(a=b,\ b=c\Rightarrow a=c\) \(\Delta \circ \Delta =\Delta \) \(\mathrm {id}\circ \mathrm {id}=\mathrm {id}\)

E4 (equality of values). For any map \(f\), the relation \(f(x)=f(y)\) is \((f\times f)^{-1}(\Delta )\), an equivalence relation by E2. Equality of temperatures \(\beta _1=\beta _2\) is of this kind.

38.2 Change and the Leibniz rule

L1 (the third sign). The doubling \((a,b)(c,d)=(ac+\gamma \bar db,\ da+b\bar c)\) admits three signs:

\(\gamma \) \(e^2\) Algebra
\(-1\) \(-1\) complex numbers: rotation, the circle
\(+1\) \(+1\) split-complex numbers: boosts, the light cone
\(0\) \(0\) dual numbers: infinitesimal change

With \(\gamma =0\) and \(\varepsilon =(0,1)\), \(\varepsilon ^2=0\): the algebra \(A[\varepsilon ]=\{x+\varepsilon y\}\).

L2 (Leibniz emerges). A map \(x\mapsto x+\varepsilon D(x)\) preserves products in \(A[\varepsilon ]\) if and only if

\begin{equation} (x+\varepsilon Dx)(y+\varepsilon Dy)=xy+\varepsilon \bigl (D(x)y+xD(y)\bigr )=xy+\varepsilon D(xy), \tag{766}\end{equation}
that is, \(D(xy)=D(x)y+xD(y)\). Taking \(x=y=1\) gives \(D(1)=0\). The Leibniz rule is preservation of the product to first order.

L3 (flows and derivations). If \(\alpha _t\) is a one-parameter group of automorphisms, \(\alpha _t(xy)=\alpha _t(x)\alpha _t(y)\), then \(D=\frac {d}{dt}\alpha _t|_{t=0}\) satisfies L2: the first-order part of an automorphism.

L4 (energy emerges). By Stone’s theorem, a continuous unitary time flow is \(\alpha _t=\mathrm {Ad}\,e^{itH}\), with \(H\) self-adjoint and unique up to a constant. Energy is the generator of time. Its expectation in a state is \(U=\omega (H)\), and conservation \(\tfrac {d}{dt}\alpha _t(H)=i[H,H]=0\) is Noether’s theorem for time translation.

L5 (Leibniz for a pairing). For the bilinear pairing \(\langle \rho ,H\rangle =\mathrm {Tr}(\rho H)\), apply L2 to \((\rho +\varepsilon \,d\rho )(H+\varepsilon \,dH)\):

\begin{equation} d\,\mathrm {Tr}(\rho H)=\mathrm {Tr}(H\,d\rho )+\mathrm {Tr}(\rho \,dH). \tag{767}\end{equation}

38.3 States, modular flow and the Gibbs state

M1 (states and densities). A state carries the cone into \(\mathbb R_{\ge 0}\) and \(1\) to \(1\). Relative to the trace, a faithful state has a density: \(\omega (x)=\mathrm {Tr}(\rho x)\) with \(\rho >0\), \(\mathrm {Tr}\,\rho =1\).

M2 (modular flow). The modular flow of \(\omega \) is \(\sigma _t(x)=\rho ^{it}x\rho ^{-it}\), generated by the modular Hamiltonian

\begin{equation} K=-\log \rho . \tag{768}\end{equation}
Every faithful state carries its own time.

M3 (Gibbs state emerges). Ask for the state whose own time is the physical time, up to a scale:

\begin{equation} \sigma _t=\alpha _{-\beta t}. \tag{769}\end{equation}
Then \(\rho ^{it}x\rho ^{-it}=e^{-i\beta Ht}xe^{i\beta Ht}\) for all \(x\), so \(\rho ^{it}e^{i\beta Ht}\) is central, hence scalar on a factor, and
\begin{equation} \rho =\frac {e^{-\beta H}}{Z}, \qquad Z=\mathrm {Tr}\,e^{-\beta H}, \tag{770}\end{equation}
with \(Z\) fixed by \(\mathrm {Tr}\,\rho =1\). The inverse temperature \(\beta \) is the conversion factor between modular time and physical time. At \(\beta =0\) the state is the normalised identity \(1/d\), whose modular flow is trivial. Equivalently, this is the KMS condition at \(\beta \).

M4 (entropy emerges). The expectation of the modular Hamiltonian is

\begin{equation} S(\omega )=\omega (K)=-\mathrm {Tr}\,\rho \log \rho . \tag{771}\end{equation}
For \(\rho =1/d\) it equals \(\log d=\log \mathrm {Tr}(1)\), the Hartley value. For commuting \(\rho =\sum p_iP_i\) it is \(-\sum p_i\log p_i\), the Shannon value.

M5 (entropy of the Gibbs state). For \(\rho =\gamma _\beta \), \(K=\beta H+\log Z\), so

\begin{equation} S(\gamma _\beta )=\beta U+\log Z, \qquad dS=\beta \,dU, \qquad \beta =\frac {\partial S}{\partial U}, \tag{772}\end{equation}
using \(\partial _\beta \log Z=-U\).

38.4 Information theory

I1 (relative entropy emerges). For states with densities \(\rho ,\sigma \) and modular Hamiltonians \(K_\rho ,K_\sigma \), the difference of modular Hamiltonians, averaged in the first state, is

\begin{equation} D(\rho \,\|\,\sigma )=\omega _\rho (K_\sigma -K_\rho )=\mathrm {Tr}\,\rho (\log \rho -\log \sigma ). \tag{773}\end{equation}
Without densities it is defined through the relative modular operator [575].

I2 (Klein). From \(\log x\le x-1\), an inequality of the integral defining \(\log \), applied in eigenbases of \(\rho \) and \(\sigma \):

\begin{equation} D(\rho \,\|\,\sigma )\ge \mathrm {Tr}\,\rho -\mathrm {Tr}\,\sigma =0, \tag{774}\end{equation}
with equality only when \(\rho =\sigma \). This is the cone, applied to information.

I3 (entropy relative to the trace).

\begin{equation} S(\rho )=\log d-D(\rho \,\|\,1/d)\le \log d . \tag{775}\end{equation}
Entropy is distance below the normalised identity.

I4 (additivity). For a product state, the logarithm turns the tensor product into a sum:

\begin{equation} \log (\rho _A\otimes \rho _B)=\log \rho _A\otimes 1+1\otimes \log \rho _B, \qquad S(\rho _A\otimes \rho _B)=S(\rho _A)+S(\rho _B). \tag{776}\end{equation}

I5 (mutual information emerges). The relative entropy of a joint state to the product of its marginals is

\begin{equation} I(A:B)=D(\rho _{AB}\,\|\,\rho _A\otimes \rho _B)=S(\rho _A)+S(\rho _B)-S(\rho _{AB})\ge 0, \tag{777}\end{equation}
by I1, I4 and I2. Subadditivity, \(S_{AB}\le S_A+S_B\), is the same inequality.

I6 (chain rule). For probabilities, \(p(x,y)=p(x)\,p(y|x)\), and the logarithm turns the product into a sum:

\begin{equation} H(X,Y)=H(X)+H(Y|X). \tag{778}\end{equation}
Quantum mechanically, \(S(A|B)=S_{AB}-S_B\), which can be negative: for a maximally entangled pair \(S_{AB}=0\) and \(S_B=\log d\), so \(S(A|B)=-\log d\).

I7 (data processing). For any channel \(\Phi \),

\begin{equation} D(\Phi (\rho )\,\|\,\Phi (\sigma ))\le D(\rho \,\|\,\sigma ) \tag{779}\end{equation}
[1214, 1624], from Lieb’s joint convexity [1213]. Processing cannot increase distinguishability.

I8 (strong subadditivity).

\begin{equation} S_{ABC}+S_B\le S_{AB}+S_{BC}, \tag{780}\end{equation}
equivalently \(I(A:BC)\ge I(A:B)\) [1222]: I7 applied to the partial trace over \(C\).

I9 (the classical case). On a commutative algebra, a splitting of the identity into cuts \(1_x\), all of the above reduce to Shannon entropy, Kullback–Leibler divergence and classical mutual information.

38.5 Thermodynamics

T1 (free energy emerges). With \(\log \gamma _\beta =-\beta H-\log Z\), I1 gives

\begin{equation} D(\rho \,\|\,\gamma _\beta )=-S(\rho )+\beta U(\rho )+\log Z=\beta \bigl (F(\rho )-F_\beta \bigr ), \tag{781}\end{equation}
where \(F(\rho )=U-S/\beta \) and \(F_\beta =-\beta ^{-1}\log Z\). Free energy is relative entropy to the Gibbs state, rescaled. By I2, the Gibbs state minimises it.

Zeroth law. At fixed energy, \(S(\gamma _\beta )-S(\rho )=D(\rho \|\gamma _\beta )\ge 0\): the Gibbs state maximises entropy. For weakly coupled systems, \(e^{-\beta (H_1+H_2)}=e^{-\beta H_1}e^{-\beta H_2}\) forces a common \(\beta \). Equilibrium is the relation \(\beta _1=\beta _2\), an equivalence relation by E3–E4.

First law. By L5,

\begin{equation} dU=\underbrace {\mathrm {Tr}(H\,d\rho )}_{\delta Q}+\underbrace {\mathrm {Tr}(\rho \,dH)}_{\delta W}. \tag{782}\end{equation}

Second law.

Third law.

38.6 The flow

Step Emerges From
E1–E4 equality, equivalence \(\Delta \subseteq R\), \(\sigma R=R\), \(R\circ R=R\)
L1–L5 Leibniz, energy, \(dU\) dual numbers \(\varepsilon ^2=0\); Stone
M1–M5 Gibbs state, \(\beta \), entropy modular flow \(=\) time flow
I1–I9 relative entropy, mutual information, chain rule, SSA modular Hamiltonians; \(\log \); cone
T1, laws free energy, four laws \(D\ge 0\), \(I\ge 0\), monotonicity, full rank