Maxwell's Demon

In December 1867, James Clerk Maxwell wrote to a friend that he wanted “to pick a hole” in the second law of thermodynamics.

Take a vessel of gas at uniform temperature, divide it with a partition with a small door. Now imagine a being able to see individual molecules. When a fast one approaches from the left, it opens the door and lets it through; when a slow one approaches from the right, the same. The door is frictionless and massless, so operating it costs nothing. After a while, one side is hot and the other is cold — a temperature difference made from nothing, out of gas that started uniform, by a creature that did no work.

Maxwell called the creature a “finite being”. The current name was supplied by William Thomson in 1874, who called it a demon — meaning the Greek daimon, a background agent, not a malevolent one. The upgrade in menace was nobody’s intention.

The puzzle is sharper than it first appears. The demon is not cheating. It is not adding energy, and it is not lying about what it sees. The demon has knowledge: it is using information — which way each molecule is going. It is converting that knowledge into a temperature difference, which can then be used to drive an engine. If that works, the second law is not a law but a statement about how much we usually know.

The decisive reframing came sixty years later. In 1929 Leó Szilárd stripped the scenario to a single molecule in a box with a movable partition, and identified the crucial step: measurement. Knowing which side the molecule is on is what lets you extract work. That turned a puzzle about clever machinery into a puzzle about information, and it made a quantitative treatment possible — though a general measure of information was still missing.

Shannon supplied it in 1948. After that there was something definite for a thermodynamic cost to be a cost of.

In 1961 Rolf Landauer, while working on the physics of computing, found a cost where no one had looked. He found that the cost was not in measurement but in erasure: resetting a bit to a standard state when at temperature T dissipates at least kT ln 2. For Landauer a bit is always the state of something physical: “Information is not a disembodied abstract entity; it is always tied to a physical representation.” Wiping it means returning the memory to its initial condition, whatever state each bit was in, and that transition produces heat.

Charles Bennett drew the consequence of this for the demon in 1982. He had shown nine years earlier that computation can be done reversibly as long as there is no erasure, and the same holds for looking: in principle the demon can note a molecule’s direction at no cost. But what if the memory has to be cleared before the cycle can repeat? Clearing it costs at least as much as what the demon gained. The apparent violation was an artefact of not closing the loop. Run the demon once and it looks like magic; reset it and you find the bill.

In 2012, Antoine Bérut and colleagues measured it: a single colloidal particle in a double-well potential, the heat dissipated in erasing its bit approaching kT ln 2.

So the demon was never banished. It was billed. Knowing which way the molecules go is not, in itself, what costs. What costs is going full cycle: the memory returning to its initial condition.

This post is part of the conversations series. See also Information and Computation.


Photo: Joshua Sortino / Unsplash