Abstract
Maxwell’s demon is a famous thought experiment and a paradigm of the thermodynamics of information. It is related to Szilard’s engine, a two-state information-to-work conversion device in which the demon performs single measurements and extracts work depending on the state measurement outcome. A variant of these models, the continuous Maxwell demon (CMD), was recently introduced by Ribezzi-Crivellari and Ritort where work was extracted after multiple repeated measurements every time that τ is in a two-state system. The CMD was able to extract unbounded amounts of work at the cost of an unbounded amount of information storage. In this work, we built a generalization of the CMD to the N-state case. We obtained generalized analytical expressions for the average work extracted and the information content. We show that the second law inequality for information-to-work conversion is fulfilled. We illustrate the results for N-states with uniform transition rates and for the N = 3 case.
1. Introduction
In 1867, James Clerk Maxwell proposed a thought experiment for the better understanding of the scope and limitations of the second law []. Known as the Maxwell demon paradox, it has spurred strong research activity for many years, setting the basis for the thermodynamics of information and information-to-work conversion [,,,,,,,,]. In 1929, Leo Szilard introduced a simple physical model [] in which a particle was free to move in a box of volume V with two compartments (denoted with 0 and 1) of volumes and and (Figure 1A). In Szilard’s engine (SZ), the “demon” was an entity able to monitor the particle’s position and store the observed compartment in a single-bit variable . Information-to-work conversion is as follows: once the particle’s compartment is known, a movable wall is inserted between the two compartments, and an isothermal process is implemented to extract work. A work-extracting cycle concludes when the movable wall reaches its far end, and the measurement-work extraction process restarts. The average work extracted per cycle equals the equivalent heat transferred from the isothermal reservoir to the system: , with the occupancy probabilities of each compartment. For equal compartments , Szilard’s engine can extract maximal work determined by the Landauer bound, from the reservoir without energy consumption, meaning that heat was fully converted into work, apparently violating Kelvin’s postulate. In the 1960s and 1970s, work by Landauer [] and Bennett [] found a solution to the paradox. The solution to this paradox considers the information content of the measurement, the work extraction, and the resetting processes of the demon [,]. Most importantly, to recover the initial state at the end of the thermodynamic cycle, the demon must erase the information acquired on the system []. The minimal erasure cost per bit of information equals for equally probable outcomes. In the end, the information content stored in the demon is always larger than or equal to the extracted work, in agreement with the second law.
Figure 1.
(A) The 2-CMD is represented as a two-compartment box in which a work extraction protocol is implemented (see text). The cycle of measurement is here . The average work extracted for this cycle is . (B) 4-CMD in circular geometry. Each compartment had volume . The cycle of measurement of the CMD reads: . The initial state is 0 and the final state is 2, the crossing of compartment 3 remained unnoticed for measurements made at every time . (C) In the work extraction protocol, a pair of walls limiting the volume of the last compartment, here , are inserted. The wall between compartments 1 and 2 is fixed, whereas the wall between compartments 2 and 3 was movable and had no mass. To extract the work produced by the expansion of the particle confined in 2, the movable wall is connected to a pulley device. The average work extracted for this cycle is .
In a recent paper, a new variant of the Maxwell demon, the continuous Maxwell demon (CMD), was introduced [] (see also [] for additional results), analytically solved, and experimentally tested. In the CMD, the demon performs repeated measurements of a particle’s location in a two-compartment box every time . The first time that the demon measures that the particle changed compartments, a work extraction procedure is implemented. The main difference with the SZ engine is that, in the CMD, a work extraction cycle contains multiple measurements, whereas for the SZ, a single measurement is performed at every work cycle. Compared to the SZ, the CMD can extract a more significant amount of work W because of the larger information content of the multiple stored bits in a cycle. Interestingly, the average work per cycle in the CMD satisfies being unbounded in the limits () and (). A model combining the SZ and CMD work extraction protocols version showed the role of temporal correlations in optimizing information-to-energy conversion []. In the CMD, the time between measurements is arbitrary. In particular, it can be made infinitesimal, , leading to an infinite number of measurements per cycle justifying the continuous adjective of the model.
Here, we generalize the CMD to the case of N-states (N-CMD). In a possible realization of the N-CMD, a particle in a box of volume V can occupy N distinct compartments of volumes (Figure 1B). The demon measures in which compartment the particle is at every time until a change in the compartment is detected. Then, a work extraction process is implemented by inserting one fixed wall at one side and one movable wall at the other side of the compartment that can expand under the elastic collisions exerted by the particle (Figure 1C). A pulley mechanism is attached to the movable wall to extract an average work equal to with . For N = 2, we obtain the standard CMD (Figure 1A) (2-CMD), which corresponds to transforming the Szilard box (Figure 1B) into a periodic torus (Figure 1C).
The outline of this work is as follows. In Section 2, we show how to generalize the mathematical formalism of the 2-CMD to N states (N-CMD). In Section 3, we analyze the performance of the N-CMD by studying the thermodynamic efficiency and power. In Section 4, we analyze several cases, and in particular case , to investigate the effect of topology on information-to-work conversion (IWC). We end with some conclusions and future directions.
2. General Setting
Let () denote the N states of a system following Markovian dynamics defined by transition rates that satisfy detailed balance, ensuring that the system relaxes to an equilibrium state. Let be the time between consecutive measurements. The conditional probability that the outcome of the measurement is after time conditioned that it starts in satisfies the following master equation:
with initial condition , where is the Kronecker delta function. Markov matrix satisfies , defining transitions rates from state to :
with the probability to jump from state to during time . Let us denote by the stationary solutions of Equation (1). The detailed balance condition reads:
The solution of Equation (1) can be written using the Perron–Frobenius theorem (see []) as a spectral expansion in terms of the eigenvalues and eigenvectors of K:
where is the left eigenvector of K associated with the eigenvalue . The sum over the term in Equation (4) is symmetric in . Therefore, the conditional probabilities also fulfil a detailed balance:
Remark 1.
Detailed balance ensures that there exists a unique stationary state associated with the eigenvalue and that the other eigenvalues are real and negative, . Equation (4) can be rewritten as follows:
which gives for as expected.
In the CMD, a work-extraction cycle is defined by a sequence of measurement outcomes () repeatedly taken every time . In a cycle the first n outcomes are equal () ending with (). We define the trajectory for a cycle as follows:
The probability of a given trajectory reads:
This is normalized as follows:
2.1. Thermodynamic Work and Information-Content
Like in the SZ, the work extracted by the CMD in a given cycle equals . Averaging over all the possible measurement cycles, we obtain the average extracted work:
which is positive by definition. In the limit we obtain the following expression,
which can be written as follows:
where is the classical statistical entropy of the system, which can also be interpreted as the average work extraction of the N-states Szilard engine, denoted as N-SZ:
This expression can be readily minimized in the space of giving the uniform solution, for which . In contrast, if for a given (and ) diverging in that limit.
We define the average information content per cycle as the statistical entropy of the measurement-cycle probabilities []:
The positivity of follows from the fact that . The second term in Equation (14) depends on and can be understood as the contribution of correlations between measurements to .
2.2. Comparison with the Szilard Engine
Equating Expressions (14) and (15) for , we obtain a relation between and that compares the average work extracted in the N-CMD to the N-SZ engine as follows:
where the first equality follows from the difference between the first right-hand side of Equations (10) and (13). This shows that the CMD’s average work per cycle is always larger or equal to SZ. The equality holds for the uniform case where .
3. Thermodynamic Power and Efficiency
3.1. Average Cycle Length
As a preliminary, we first compute the average time of a cycle of measurement. This is similar to the mean first residence time of the system, except for the fact that (unobserved) hopping events are permitted. We define it as follows:
and obtain the following expression:
The following equalities are shown:
The average cycle time is the mean first passage time [] of the discrete time random walk defined by a cycle of measurements.
3.2. Thermodynamic Power
3.3. Information-to-Work Efficiency
In the spirit of the efficiencies defined for thermal machines, we define the information-to-work conversion (IWC) efficiency of the CMD as the ratio between , taken to be the objective function, and , taken to be the cost function, for the optimization of the CMD:
Using Equation (15), we can rewrite as follows:
From Equation (16), . In the limit , we obtain:
In limit for a given state , one can check that the N-CMD reaches maximal efficiency 1.
4. Particular Cases
Here, we analyze some specific examples.
4.1. Case N = 2
We now turn to the case considered in [] as an example of our formulae. The kinetic rate matrix in this case reads:
Here, we do not need to make any particular choice of rates to ensure detailed balance since, for two states, a detailed balance unconditionally holds. Applying the procedure sketched in Section 2, we solve the master equation:
where , and such that . is normalized per column:
First, let us consider . Since and by normalization, there is only one term in the sum of Equation (10). Thus, simplifies to:
We recover the result obtained in [] and coincidently show that the independence of this result is a particular feature of the case. Moreover, since had a simple expression, we obtained a tractable expression for the comparison with the SZ average work extracted, c.f. Equation (17):
This quantity is positive and vanishes only for uniform probability, , as shown in Section 3.1. Using normalization Equation (29) again in the definition of Equation (14), we obtain as follows:
which is the result obtained in []. The remaining results of [] are obtained by combining Equations (28), (30), and (32).
4.2. Uniform Transition Rates
In this subsection, we take the following particular case for the Markov matrix K:
In this case, there are only two independent conditional probabilities; we can thus rewrite the master equation as follows:
Via normalization, we obtain as follows:
In the remainder of this subsection, we define the dimensionless rescaled time between two measurements as . The solution of Equation (34) reads:
This particular case allows for us to obtain a glimpse of the dependence of the quantities introduced in Section 2 with N. The average work extracted is as follows:
We see that the work extracted does not depend on . reads:
The first remark is that in the limit , .
One way to optimize the CMD is to maximize IWC efficiency, defined as follows:
We find the asymptotic efficiency for and for . For the thermodynamic power, we obtain:
where is the average cycle time that we analyzed in Section 3.1. One can show that the maximum thermodynamic power is obtained in the limit . This shows that the maximum IWC efficiency Equation (39) and the efficiency at maximum power Equation (40) are obtained in two different limits, a general result expected for thermodynamic machines [].
4.3. Case N = 3
The 3-CMD is the simplest case in which two different topologies of the state space are available. They are defined in Figure 2 and are denoted as triangular (Panel A) and linear (Panel B), respectively. We denote the energy of state by . Taking , the detailed balance assumption Equation (3) then reads:
Here we take . This implies that the energies of states read:
In the linear case, taking as a particular case and , we obtain the following Markov matrix:
where we used Equations (42) and (43) to give an expression of depending only on . In the triangular case, taking and and as a particular case, we obtain similarly the following Markov matrix:
The solution of Equation (1) with Markov matrix (44) in the linear case and (45) in the triangular case, can be written using the Perron-Frobenius theorem [] as the following spectral expansion:
where and are the coefficients determined in the limit , which depend on the conditional state . These coefficients are gathered in Table 1 for both models.
Figure 2.
Definition of the state spaces for the 2 topologies available for the 3-CMD: (A) Triangular 3-CMD, (B) Linear 3-CMD.
Table 1.
Coefficients of the spectral expansion Equation (46).
are the eigenvectors of both :
- is the eigenvector associated to the eigenvalue 0 and it corresponds to the stationary probability. Since the detailed balance condition Equation (3) holds, the stationary probability is the Boltzmann distribution. Thus,where
- is the eigenvector associated to the second eigenvalue, which reads in the linear case, and in the triangular case. reads:
- is the eigenvector associated in both models to the eigenvalue . It reads:
4.4. Correlated Measurements in the 3-CMD
Correlated measurements are those where is lower than or comparable to the equilibrium relaxation time. Equation (46) shows that the dynamics of the linear and triangular topologies for the 3-CMD are very similar. Indeed, in the limit of uncorrelated measurements, the two dynamics reduce to the same Boltzmann distribution. They also collapse in the limit (with ), indeed in this case . In between, the topology of the network is relevant. For correlated measurements, we obtained the results shown in Figure 5.
Figure 5.
The 3-CMD for correlated measurements for . (upper left) Average cycle length in both models, Equation (19); (upper right) thermodynamic power; (lower left) efficiency; (lower right) average information content and work extraction in units (orange and red lines collapse on top of each other).
First, the average cycle time (upper-left panel in Figure 5) in the linear case was generally larger than that in the triangular case. The direct consequence, since the average work extraction was comparable in both cases, was that the thermodynamic power (upper-right panel in Figure 5) extracted by the linear 3-CMD was lower than the thermodynamic power extracted by the triangular 3-CMD. Moreover, the thermodynamic power decreased logarithmically to 0 when increases. Thus, 3-CMD had optimal power production in limit , i.e., in the limit of continuous measurements. The efficiency of the 3-CMD as a function of is plotted in the lower-left panel of Figure 5. The linear 3-CMD was generally less efficient than the triangular 3-CMD. The reason for this is in the lower-right panel of Figure 5, where and are plotted against for both models. For a comparable work extraction, the linear 3-CMD needs to store more information. Again, in the limit of uncorrelated measurements, the two models converge to the same result.
5. Concluding Remarks
In this work, we generalized the 2-CMD of [,] to N-states. We obtained generalized expressions of the average extracted work, the average information content stored in the demon’s memory, and of thermodynamical quantities such as the thermodynamic power and the information-to-work efficiency of the N-CMD. We proved that the second law inequality holds for the N-CMD, thus giving bounds on the efficiency of the engine. Comparing the N-CMD to the N-SZ engine, we also showed that the N-CMD could extract more work on average than the N-SZ engine. The most efficient setting of the N-CMD was in the limit of rare events already described in []. In the N-CMD case, this limit was obtained by first taking the 2-CMD limit. Thus, no configuration is more efficient in the N-CMD than the 2-CMD limit.
In future work on the N-CMD, it would be interesting to implement a graph theoretic procedure to obtain, for instance, a more precise explanation of the difference between the linear and triangular cases (connected graph versus fully connected graph). It would also be interesting to determine the distributions of the quantities computed here [] and thus optimize the fluctuations of the N-CMD.
Author Contributions
F.R. conceived the work, and P.R. did the calculations. All authors have read and agreed to the published version of the manuscript.
Funding
FR was supported by the Spanish Research Council Grant PID2019-111148GB-100 and the Icrea Academia Prize 2018.
Data Availability Statement
Data is available upon contacting the authors.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Leff, H.S.; Rex, A. Maxwell’s Demon. In Entropy, Information, Computing; Princeton University Press: Princeton, NJ, USA, 1990; pp. 160–172. [Google Scholar]
- Plenio, M.B.; Vitelli, V. The physics of forgetting: Landauer’s erasure principle and information theory. Contemp. Phys. 2001, 42, 25–60. [Google Scholar] [CrossRef]
- Ritort, F. The noisy and marvelous molecular world of biology. Inventions 2019, 4, 24. [Google Scholar] [CrossRef]
- Rex, A. Maxwell’s demon—A historical review. Entropy 2017, 19, 240. [Google Scholar] [CrossRef]
- Ciliberto, S. Experiments in stochastic thermodynamics: Short history and perspectives. Phys. Rev. X 2017, 7, 021051. [Google Scholar] [CrossRef]
- Barato, A.; Seifert, U. Unifying three perspectives on information processing in stochastic thermodynamics. Phys. Rev. Lett. 2014, 112, 090601. [Google Scholar] [CrossRef] [PubMed]
- Barato, A.C.; Seifert, U. Stochastic thermodynamics with information reservoirs. Phys. Rev. E 2014, 90, 042150. [Google Scholar] [CrossRef] [PubMed]
- Bérut, A.; Petrosyan, A.; Ciliberto, S. Detailed Jarzynski equality applied to a logically irreversible procedure. Europhys. Lett. 2013, 103, 60002. [Google Scholar] [CrossRef]
- Berut, A.; Petrosyan, A.; Ciliberto, S. Information and thermodynamics: Experimental verification of Landauer’s Erasure principle. J. Stat. Mech. Theory Exp. 2015, 2015, P06015. [Google Scholar] [CrossRef]
- Lutz, E.; Ciliberto, S. From Maxwells demon to Landauers eraser. Phys. Today 2015, 68, 30. [Google Scholar] [CrossRef]
- Szilard, L. Über die Entropieverminderung in einem thermodynamischen System bei Eingriffen intelligenter Wesen. Z. Phys. 1929, 53, 840–856. [Google Scholar] [CrossRef]
- Landauer, R. Irreversibility and heat generation in the computing process. IBM J. Res. Dev. 1961, 5, 183–191. [Google Scholar] [CrossRef]
- Bennett, C.H. The thermodynamics of computation—A review. Int. J. Theor. Phys. 1982, 21, 905–940. [Google Scholar] [CrossRef]
- Sagawa, T.; Ueda, M. Information Thermodynamics: Maxwell’s Demon in Nonequilibrium Dynamics. In Nonequilibrium Statistical Physics of Small Systems: Fluctuation Relations and Beyond; Wiley Online Library: Hoboken, NJ, USA, 2013; pp. 181–211. [Google Scholar] [CrossRef]
- Parrondo, J.M.; Horowitz, J.M.; Sagawa, T. Thermodynamics of information. Nat. Phys. 2015, 11, 131–139. [Google Scholar] [CrossRef]
- Ribezzi-Crivellari, M.; Ritort, F. Large work extraction and the Landauer limit in a continuous Maxwell demon. Nat. Phys. 2019, 15, 660–664. [Google Scholar] [CrossRef]
- Ribezzi-Crivellari, M.; Ritort, F. Work extraction, information-content and the Landauer bound in the continuous Maxwell Demon. J. Stat. Mech. Theory Exp. 2019, 2019, 084013. [Google Scholar] [CrossRef]
- Garrahan, J.P.; Ritort, F. Generalized Continuous Maxwell Demons. arXiv 2021, arXiv:2104.12472. [Google Scholar]
- Van Kampen, N.G. Stochastic Processes in Physics and Chemistry; Elsevier: Amsterdam, The Netherlands, 1992; Volume 1. [Google Scholar]
- Cover, T.M.; Thomas, J.A. Elements of Information Theory (Wiley Series in Telecommunications and Signal Processing); Wiley-Interscience: Hoboken, NJ, USA, 2006. [Google Scholar]
- Benichou, O.; Guérin, T.; Voituriez, R. Mean first-passage times in confined media: From Markovian to non-Markovian processes. J. Phys. A Math. Theor. 2015, 48, 163001. [Google Scholar] [CrossRef]
- Goupil, C.; Herbert, E. Adapted or Adaptable: How to Manage Entropy Production? Entropy 2019, 22, 29. [Google Scholar] [CrossRef]
- Van den Broeck, C.; Esposito, M. Ensemble and trajectory thermodynamics: A brief introduction. Phys. A Stat. Mech. Its Appl. 2015, 418, 6–16. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).