Maxwell Demon and Information
A Maxwell demon is a feedback controller that uses information about microscopic degrees of freedom to choose a thermodynamic action. The modern lesson is not that the second law fails. It is that the thermodynamic bookkeeping must include the measurement record, controller, memory, feedback operation, and eventual reset.
The useful question is operational: given a measurement outcome, what protocol is applied, how much work is extracted or supplied, how much heat is exchanged, and what happens to the record afterward?
Minimal Feedback Cycle
Section titled “Minimal Feedback Cycle”A measurement-feedback cycle has four stages:
-
Prepare a system in a state with Hamiltonian and possibly a heat bath at temperature .
-
Measure the system and store an outcome in a memory.
-
Choose a control protocol depending on .
-
Reset the memory and controller if the engine is to run cyclically.
The measurement is described by an instrument:
The feedback protocol depends on the conditional state , not merely on the averaged post-measurement state. If the outcome is ignored, the state becomes
and the controller has no record to condition on. See Selective and Nonselective Measurements and Quantum Instruments.
Information-Assisted Work Bound
Section titled “Information-Assisted Work Bound”Let denote work done on the system, so negative means work extracted from the system by the controller. Without feedback, the average work satisfies
With measurement and feedback, an idealized information-corrected bound has the form
where is the average information gained by the measurement, measured in nats. Equivalently, the average extracted work obeys
For a cyclic engine, , so information can increase the extractable work by at most before memory reset costs are included.
This is not free work. It is a bound on what feedback can do using a physical record. Returning the demon to its initial state costs thermodynamic resources, as described by Landauer Principle.
Generalized Fluctuation Relation
Section titled “Generalized Fluctuation Relation”A schematic Sagawa–Ueda feedback relation is
Here is a stochastic information term associated with the measurement outcome and the underlying microscopic alternative. The precise definition depends on the measurement model and reverse protocol.
Jensen’s inequality gives
The important point is structural: feedback modifies the fluctuation relation by adding an information term to the entropy budget. A claimed demon cycle should state the measurement model, the feedback map, and the memory reset.
For the no-feedback version, see Jarzynski Equality and Crooks Relation.
Szilard Engine
Section titled “Szilard Engine”The Szilard engine is the cleanest classical model. A single particle is in a box coupled to a heat bath at temperature .
The ideal cycle is:
-
Insert a partition, dividing the box into left and right halves.
-
Measure which side contains the particle.
-
Attach a piston on the empty side and let the particle expand isothermally, extracting work.
-
Remove the partition.
-
Reset the memory that stored “left” or “right.”
For an unbiased particle position, the measurement record contains one bit. The isothermal expansion can extract
in the reversible limit. Resetting the one-bit memory costs at least
The full cycle does not violate the second law. The apparent gain from feedback is paid back when the demon’s memory is restored.
Imperfect Measurements
Section titled “Imperfect Measurements”Feedback value depends on measurement quality. Suppose a binary variable is equally likely to be or , and the demon records a binary outcome that is correct with probability . Then
The mutual information in nats is
The information-assisted work advantage is bounded by
When , the record is perfect and . When , the record is independent of the particle side and . A noisy record cannot support the same feedback work as a perfect record.
For the general correlation measure, see Mutual Information.
Quantum Measurements and Backaction
Section titled “Quantum Measurements and Backaction”Quantum demons require extra care because measurement can disturb the state being controlled. A quantum feedback protocol must specify:
- the POVM or instrument producing the outcome;
- the conditional post-measurement state;
- the feedback operation chosen for each outcome;
- whether the record is classical, quantum, or coherently stored;
- how the memory and controller are reset.
An unread measurement may change the system through backaction, but it does not provide usable feedback information. A selective measurement provides a record, but that record is a physical memory. A coherent controller may avoid a classical record at an intermediate stage, but then the controller’s quantum state and correlations must be included in the thermodynamic accounting.
See Measurement Backaction for the measurement side of this distinction.
Qubit Feedback Example
Section titled “Qubit Feedback Example”Consider a qubit with Hamiltonian
A demon measures the energy. If the outcome is , it applies a feedback operation that lowers the excitation and extracts work in an idealized work storage device. If the outcome is , it does nothing.
If the excited-state probability is , the average extracted work before memory reset is
This expression is not a complete engine analysis. The energy measurement creates a record with entropy
and resetting that record at temperature costs at least
If the qubit is itself thermal at the same temperature and the cycle returns all devices to their initial states, the full accounting cannot produce net work from a single bath. The measurement-conditioned step is only one part of the cycle.
Bookkeeping Checklist
Section titled “Bookkeeping Checklist”For any proposed demon protocol, record:
- the system Hamiltonian and bath temperature;
- the measurement instrument and outcome probabilities;
- the conditional state for each outcome;
- the feedback protocol applied for each outcome;
- the work and heat sign conventions;
- the entropy or mutual information of the record;
- how the memory and controller are reset;
- whether the final system, bath, and memory states match the beginning of the cycle.
Without these entries, the word “demon” often hides missing thermodynamic bookkeeping.
Common Mistakes
Section titled “Common Mistakes”-
Counting work extracted during feedback but ignoring memory reset.
-
Treating an unread measurement as if it supplied usable information.
-
Assuming every measurement has a fixed cost.
-
Ignoring measurement backaction in a quantum feedback protocol.
-
Using mutual information in bits while writing a bound that assumes nats.
-
Calling a one-shot noncyclic process a violation of the second law.
-
Treating the controller as external magic rather than as a physical system with entropy and energy.
Exercises
Section titled “Exercises”Feedback Bound from Jensen
Section titled “Feedback Bound from Jensen”Starting from
derive .
Solution
Jensen’s inequality gives
Taking the logarithm,
Therefore
Using ,
Imperfect Binary Record
Section titled “Imperfect Binary Record”For a symmetric binary variable measured correctly with probability , verify that the mutual information is
Solution
For a uniform binary variable, . The conditional uncertainty after observing is
because each reported value has the same probability of being correct or incorrect. Therefore
For , this gives . For , it gives .
Szilard Net Cycle
Section titled “Szilard Net Cycle”An ideal Szilard engine extracts from a bath using a perfect one-bit record. The memory is then reset at the same temperature. What is the best possible net work over the full cycle?
Solution
The expansion step can extract
Resetting an unbiased one-bit memory costs at least
Thus the net extracted work obeys
The reversible ideal can approach zero net gain. Real implementations dissipate more and have negative net extracted work over the complete cycle.
References
Section titled “References”- L. Szilard, “On the decrease of entropy in a thermodynamic system by the intervention of intelligent beings,” Zeitschrift für Physik 53, 840, 1929.
- R. Landauer, “Irreversibility and heat generation in the computing process,” IBM Journal of Research and Development 5, 183, 1961.
- C. H. Bennett, “The thermodynamics of computation: a review,” International Journal of Theoretical Physics 21, 905, 1982.
- T. Sagawa and M. Ueda, “Generalized Jarzynski equality under nonequilibrium feedback control,” Physical Review Letters 104, 090602, 2010.
- T. Sagawa and M. Ueda, “Fluctuation theorem with information exchange: role of correlations in stochastic thermodynamics,” Physical Review Letters 109, 180602, 2012.
- J. M. R. Parrondo, J. M. Horowitz, and T. Sagawa, “Thermodynamics of information,” Nature Physics 11, 131, 2015.