Post · 8 min read· pp. 205–209

Information Geometry (Part 2)

Last time I provided some background to this paper:

• Gavin E. Crooks, Measuring thermodynamic length.

Now I’ll tell you a bit about what it actually says!

Remember the story so far: we’ve got a physical system that’s in a state of maximum entropy. I didn’t emphasize this yet, but that happens whenever our system is in thermodynamic equilibrium. An example would be a box of gas inside a piston. Suppose you choose any number for the energy of the gas and any number for its volume. Then there’s a unique state of the gas that maximizes its entropy, given the constraint that on average, its energy and volume have the values you’ve chosen. And this describes what the gas will be like in equilibrium!

Remember, by ‘state’ I mean mixed state: it’s a probabilistic description. And I say the energy and volume have chosen values on average because there will be random fluctuations. Indeed, if you look carefully at the head of the piston, you’ll see it quivering: the volume of the gas only equals the volume you’ve specified on average. Same for the energy.

More generally: imagine picking any list of numbers, and finding the maximum entropy state where some chosen observables have these numbers as their average values. Then there will be fluctuations in the values of these observables — thermal fluctuations, but also possibly quantum fluctuations. So, you’ll get a probability distribution on the space of possible values of your chosen observables. You should visualize this probability distribution as a little fuzzy cloud centered at the average value!

To a first approximation, this cloud will be shaped like a little ellipsoid. And if you can pick the average value of your observables to be whatever you’ll like, you’ll get lots of little ellipsoids this way, one centered at each point. And the cool idea is to imagine the space of possible values of your observables as having a weirdly warped geometry, such that relative to this geometry, these ellipsoids are actually spheres.

This weirdly warped geometry is an example of an ‘information geometry’: a geometry that’s defined using the concept of information. This shouldn’t be surprising: after all, we’re talking about maximum entropy, and entropy is related to information. But I want to gradually make this idea more precise.

Bring on the math!

We’ve got a bunch of observables X1,…,XnX_1, \dots , X_n, and we’re assuming that for any list of numbers x1,…,xnx_1, \dots , x_n, the system has a unique maximal-entropy state ρ\rho for which the expected value of the observable XiX_i is xix_i:

⟨Xi⟩=xi\langle X_i \rangle = x_i

This state ρ\rho is called the Gibbs state and I told you how to find it when it exists. In fact it may not exist for every list of numbers x1,…,xnx_1, \dots , x_n, but we’ll be perfectly happy if it does for all choices of

x=(x1,…,xn)x = (x_1, \dots, x_n)

lying in some open subset of Rn\mathbb{R}^n

By the way, I should really call this Gibbs state ρ(x)\rho(x) or something to indicate how it depends on xx, but I won’t usually do that. I expect some intelligence on your part!

Now at each point xx we can define a covariance matrix

⟨(Xi−⟨Xi⟩)(Xj−⟨Xj⟩)⟩\langle (X_i - \langle X_i \rangle) (X_j - \langle X_j \rangle) \rangle

If we take its real part, we get a symmetric matrix:

gij=Re⟨(Xi−⟨Xi⟩)(Xj−⟨Xj⟩)⟩g_{ij} = \mathrm{Re} \langle (X_i - \langle X_i \rangle) (X_j - \langle X_j \rangle) \rangle

It’s also nonnegative — that’s easy to see, since the variance of a probability distribution can’t be negative. When we’re lucky this matrix will be positive definite. When we’re even luckier, it will depend smoothly on xx. In this case, gijg_{ij} will define a Riemannian metric on our open set.

So far this is all review of last time. Sorry: I seem to have reached the age where I can’t say anything interesting without warming up for about 15 minutes first. It’s like when my mom tells me about an exciting event that happened to her: she starts by saying “Well, I woke up, and it was cloudy out…”

But now I want to give you an explicit formula for the metric gijg_{ij}, and then rewrite it in a way that’ll work even when the state ρ\rho is not a maximal-entropy state. And this formula will then be the general definition of the ‘Fisher information metric’ (if we’re doing classical mechanics), or a quantum version thereof (if we’re doing quantum mechanics).

Crooks does the classical case — so let’s do the quantum case, okay? Last time I claimed that in the quantum case, our maximum-entropy state is the Gibbs state

ρ=1Ze−λiXi\rho = \frac{1}{Z} e^{-\lambda^i X_i}

where λi\lambda^i are the ‘conjugate variables’ of the observables XiX_i, we’re using the Einstein summation convention to sum over repeated indices that show up once upstairs and once downstairs, and ZZ is the partition function

Z=tr(e−λiXi)Z = \mathrm{tr} (e^{-\lambda^i X_i})

(To be honest: last time I wrote the indices on the conjugate variables λi\lambda^i as subscripts rather than superscripts, because I didn’t want some poor schlep out there to think that λ1,…,λn\lambda^1, \dots , \lambda^n were the powers of some number λ\lambda. But now I’m assuming you’re all grown up and ready to juggle indices! We’re doing Riemannian geometry, after all.)

Also last time I claimed that it’s tremendously fun and enlightening to take the derivative of the logarithm of ZZ. The reason is that it gives you the mean values of your observables:

⟨Xi⟩=−∂∂λiln⁡Z\langle X_i \rangle = - \frac{\partial}{\partial \lambda^i} \ln Z

But now let’s take the derivative of the logarithm of ρ\rho. Remember, ρ\rho is an operator — in fact a density matrix. But we can take its logarithm as explained last time, and the usual rules apply, so starting from

ρ=1Ze−λiXi\rho = \frac{1}{Z} e^{-\lambda^i X_i}

we get

ln ρ=−λiXi−ln Z\mathrm{ln}\, \rho = - \lambda^i X_i - \mathrm{ln} \,Z

Next, let’s differentiate both sides with respect to λi\lambda^i. Why? Well, from what I just said, you should be itching to differentiate ln Z\mathrm{ln}\, Z. So let’s give in to that temptation:

∂∂λilnρ=−Xi+⟨Xi⟩\frac{\partial }{\partial \lambda^i} \mathrm{ln} \rho = -X_i + \langle X_i \rangle

Hey! Now we’ve got a formula for the ‘fluctuation’ of the observable XiX_i — that is, how much it differs from its mean value:

Xi−⟨Xi⟩=−∂lnρ∂λiX_i - \langle X_i \rangle = - \frac{\partial \mathrm{ln} \rho }{\partial \lambda^i}

This is incredibly cool! I should have learned this formula decades ago, but somehow I just bumped into it now. I knew of course that ln ρ\mathrm{ln} \, \rho shows up in the formula for the entropy:

S(ρ)=tr(ρ  ln ρ)S(\rho) = \mathrm{tr} ( \rho \; \mathrm{ln} \, \rho)

But I never had the brains to think about ln ρ\mathrm{ln}\, \rho all by itself. So I’m really excited to discover that it’s an interesting entity in its own right — and fun to differentiate, just like ln Z\mathrm{ln}\, Z.

Now we get our cool formula for gijg_{ij}. Remember, it’s defined by

gij=Re⟨(Xi−⟨Xi⟩)(Xj−⟨Xj⟩)⟩g_{ij} = \mathrm{Re} \langle (X_i - \langle X_i \rangle) (X_j - \langle X_j \rangle) \rangle

But now that we know

Xi−⟨Xi⟩=−∂lnρ∂λiX_i - \langle X_i \rangle = -\frac{\partial \mathrm{ln} \rho }{\partial \lambda^i}

we get the formula we were looking for:

gij=Re⟨∂lnρ∂λi  ∂lnρ∂λj⟩g_{ij} = \mathrm{Re} \langle \frac{\partial \mathrm{ln} \rho }{\partial \lambda^i} \; \frac{\partial \mathrm{ln} \rho }{\partial \lambda^j} \rangle

Beautiful, eh? And of course the expected value of any observable AA in the state ρ\rho is

⟨A⟩=tr(ρA)\langle A \rangle = \mathrm{tr}(\rho A)

so we can also write the covariance matrix like this:

gij=Re tr(ρ  ∂lnρ∂λi  ∂lnρ∂λj)g_{ij} = \mathrm{Re}\, \mathrm{tr}(\rho \; \frac{\partial \mathrm{ln} \rho }{\partial \lambda^i} \; \frac{\partial \mathrm{ln} \rho }{\partial \lambda^j} )

Lo and behold! This formula makes sense whenever ρ\rho is any density matrix depending smoothly on some parameters λi\lambda^i. We don’t need it to be a Gibbs state! So, we can work more generally.

Indeed, whenever we have any smooth function from a manifold to the space of density matrices for some Hilbert space, we can define gijg_{ij} by the above formula! And when it’s positive definite, we get a Riemannian metric on our manifold: the Bures information metric.

The classical analogue is the somewhat more well-known ‘Fisher information metric’. When we go from quantum to classical, operators become functions and traces become integrals. There’s nothing complex anymore, so taking the real part becomes unnecessary. So the Fisher information metric looks like this:

gij=∫Ωp(ω)  ∂lnp(ω)∂λi  ∂lnp(ω)∂λj  dωg_{ij} = \int_\Omega p(\omega) \; \frac{\partial \mathrm{ln} p(\omega) }{\partial \lambda^i} \; \frac{\partial \mathrm{ln} p(\omega) }{\partial \lambda^j} \; d \omega

Here I’m assuming we’ve got a smooth function pp from some manifold MM to the space of probability distributions on some measure space (Ω,dω)(\Omega, d\omega). Working in local coordinates λi\lambda^i on our manifold MM, the above formula defines a Riemannian metric on MM, at least when gijg_{ij} is positive definite. And that’s the Fisher information metric!

Crooks says more: he describes an experiment that would let you measure the length of a path with respect to the Fisher information metric — at least in the case where the state ρ(x)\rho(x) is the Gibbs state with ⟨Xi⟩=xi\langle X_i \rangle = x_i. And that explains why he calls it ‘thermodynamic length’.

There’s a lot more to say about this, and also about another question: What use is the Fisher information metric in the general case where the states ρ(x)\rho(x) aren’t Gibbs states?

But it’s dinnertime, so I’ll stop here.

[Note: in the original version of this post, I omitted the real part in my definition gij=Re⟨(Xi−⟨Xi⟩)(Xj−⟨Xj⟩)⟩g_{ij} = \mathrm{Re} \langle (X_i - \langle X_i \rangle) (X_j - \langle X_j \rangle) \rangle, giving a ‘Riemannian metric’ that was neither real nor symmetric in the quantum case. Most of the comments below are based on that original version, not the new fixed one.]