Nothing Special   »   [go: up one dir, main page]

Skip to main content
Entropy logoLink to Entropy
. 2020 Jun 15;22(6):660. doi: 10.3390/e22060660

Endoreversible Models for the Thermodynamics of Computing

Alexis De Vos 1
PMCID: PMC7517195  PMID: 33286431

Abstract

Landauer’s principle says that, in principle, a computation can be performed without consumption of work, provided no information is erased during the computational process. This principle can be introduced into endoreversible models of thermodynamics.

Keywords: macroentropy, microentropy, endoreversible engine, reversible computing, Landauer’s principle

1. Introduction

Thermodynamics of computing has a peculiar history. Many years, scientists have searched for the minimum energy needed to perform an elementary computing step. It was Landauer [1,2,3,4] who demonstrated in the period 1960–1990 that, in principle, computing can be performed without energy consumption, provided the computing process applies exclusively logically reversible computing steps. As long as information is not destroyed and computing is performed infinitely slowly, no work has to be supplied to the computer. Only erasure of information requires energy input. It is remarkable that we had to wait until the period 2012–2018 to have experimental confirmation [5,6,7,8] of Landauer’s principle.

Basic thermodynamics, i.e., the Carnot theory, describes thermal engines acting infinitely slowly. In 1975, Curzon and Ahlborn [9] presented a thermodynamical model for an engine working at non-zero speed: the endoreversible engine. It consists of a reversible core, performing the actual conversion (of heat into work) and two irreversible channels for the heat transport. The approach turned out to be very fruitful: not only processes in engineering, but also in physics, chemistry, economics, etc. can successfully profit from endoreversible modelling, especially when processes happen at non-zero speed and thus tasks are performed in a finite time [10,11].

The present paper is an attempt to apply the endoreversible scheme to the Landauer principle, thus to thermodynamically describe computing at a non-zero speed.

2. Logic Gates

Any computer is built from basic building blocks, called gates. In a conventional electronic computer, such building block is e.g., a not gate, an or gate, a nor gate, an and gate, a nand gate, etc. Such gate has both a short input (denoted with subscript 1) and a short output (denoted with subscript 2). As an example, Table 1a defines the and gate, by means of its truth table. We see an input word A1B1 and the corresponding output word A2. If the input word is given, the table suffices to read what the output ‘will be’. If, however, the value of the output word is given, this information is not sufficient to recover what the input word ‘has been’. Indeed, output A2=0 can equally well be the result of either A1B1=00 or A1B1=01, or A1B1=10. For this reason, we say that the gate is logically irreversible. In contrast, the not gate is logically reversible, as can be verified from its truth table in Table 1b. Indeed, knowledge of A1 suffices to know A2, but also: knowledge of A2 suffices to know A1.

Table 1.

Truth tables of two conventional logic gates: (a) the and gate and (b) the not gate.

(a)
A1 B1 A2
0 0 0
0 1 0
1 0 0
1 1 1
(b)
A1 A2
0 1
1 0

We not only can distinguish logically irreversible gates from logically reversible gates. We also can quantify how strongly a gate is irreversible. For this purpose, we apply Shannon’s entropy:

S=kqilog(qi),

where k is Boltzmann’s constant and qi is the probability that a word ABC (either an input word A1B1C1 or an output word A2B2C2) has a particular value. As an example, we examine Table 1a in detail. Let (q00)1 be the probability that input word A1B1 equals 00, let (q01)1 be the probability that A1B1 equals 01, let (q10)1 be the probability that it equals 10, and let (q11)1 be the probability that it equals 11. We, of course, assume 0(qi)11 for all i, as well as (qi)1=1. Let (q0)2 be the probability that output word A2 equals 0 and let (q1)2 be the probability that A2 equals 1. Inspection of Table 1a reveals that

(q0)2=(q00)1+(q01)1+(q10)1(q1)2=(q11)1.

Automatically, we have 0(qi)21 for both i, as well as (qi)2=1. We now compare the entropies of input and output:

S1=k(qi)1log(qi)1S2=k(qi)2log(qi)2.

We find that these two quantities are not necessarily equal. For example, if the inputs 00, 01, 10, and 11 are equally probable, i.e., if

(q00)1=(q01)1=(q10)1=(q11)1=1/4,

then we have

(q0)2=3/4and(q1)2=1/4,

such that

S1=2klog(2)=2bS2=23log(3)4log(2)klog(2)0.811b,

where b=klog(2) is called ‘one bit of information’. Thus, evolving from input to output is accompanied by a loss of entropy S1S2 of about 1.189 bits. A similar examination of Table 1b leads to S1=S2=1b. Thus, both input and output contain one bit of information. There is no change in entropy: S1S2=0.

A reversible computer is a computer exclusively built from reversible logic gates [12,13]. As among the conventional logic gates, only the not gate is logically reversible, we need to introduce unconventional reversible gates, in order to be able to build a general-purpose reversible computer. Table 2 shows two examples: the controlled not gate (a.k.a. the Feynman gate) and the controlled controlled not gate (a.k.a. the Toffoli gate). The truth table of the controlled not gate has the following properties:

(q00)2=(q00)1(q01)2=(q01)1(q10)2=(q11)1(q11)2=(q10)1,

such that (qi)2log((qi)2)=(qi)1log((qi)1) and thus S2=S1. This result is true whatever the values of the input probabilities (q00)1, (q01)1, (q10)1, and (q11)1, thus not only if these four numbers all are equal to 1/4. The reason of this property is clear: the output words A2B2 of Table 2a are merely a permutation of the input words A1B1. Analogously, in Table 2b, the output words A2B2C2 form a permutation of the input words A1B1C1. Therefore, the controlled controlled not gate also satisfies S2=S1 and hence is logically reversible.

Table 2.

Truth tables of two reversible logic gates: (a) the controlled not gate and (b) the controlled controlled not gate.

(a)
A1 B1 A2 B2
0 0 0 0
0 1 0 1
1 0 1 1
1 1 1 0
(b)
A1 B1 C1 A2 B2 C2
0 0 0 0 0 0
0 0 1 0 0 1
0 1 0 0 1 0
0 1 1 0 1 1
1 0 0 1 0 0
1 0 1 1 0 1
1 1 0 1 1 1
1 1 1 1 1 0

Figure 1 shows a c-MOS (i.e., complementary metal–oxide–semiconductor) implementation of these two reversible gates in a silicon chip.

Figure 1.

Figure 1

Silicon c-MOS inplementation of two reversible logic gates: (a) the controlled not gate and (b) the controlled controlled not gate.

The reader may easily verify that, in general, we are allowed to summarize as follows:

  • if the logic gate is logically reversible, then entropy is neither increased nor decreased;

  • if the logic gate is logically irreversible, then entropy is decreased.

Of course, in the framework of the second law, any entropy decrease sounds highly suspicious. The next section will demonstrate that fortunately there is no need to worry.

3. Macroentropy and Microentropy

Let the phase space of a system be divided into N parts. Let pm be the probability that the system finds itself in part # m of the phase space. Then, the entropy of the system is

σ=km=1Npmlog(pm). (1)

Figure 2a shows an example with N=15.

Figure 2.

Figure 2

A same phase space divided into three different numbers M of macrocells: (a) M=1; (b) M=4; and (c) M=2.

We now assume that the division of phase space happens in two steps. First, we divide it into M large parts (with MN), called macroparts. Then, we divide each macropart into microparts: macropart # 1 into n1 microparts, macropart # 2 into n2 microparts, ..., and macropart # M into nM microparts:

n1+n2++nM=N.

We denote by pi,j the probability that the system is in microcell # j of macrocell # i. Let qi be the probability that the system finds itself in macropart # i:

qi=j=1nipi,j.

Figure 2b shows an example with N=15 and M=4 (n1=4, n2=5, n3=3, and n4=3); Figure 2c shows an example with N=15 and M=2 (n1=12 and n2=3).

Let σ be the entropy of the system consisting of the M macrocells. We have

σ=ki=1Mj=1nipi,jlog(pi,j). (2)

One can easily check that this expression can be written as

σ=ki=1Mqilog(qi)ki=1Mqij=1nipi,jqilogpi,jqi. (3)

The former contribution to the rhs of Equation (3) is called the macroentropy S, whereas the latter contribution is called the microentropy s. We identify the macroentropy with the information entropy of Section 2. We associate the microentropy with the heat Q, i.e., with the energy exchange which would occur, if the microentropy enters or leaves the system at temperature T, according to the Gibbs formula

s=QT.

Hence:

σ=S+QT.

This decomposition can be expressed in several ways:

total entropy=macroentropy+microentropy=Shannon entropy+Gibbs entropy=information entropy+heat entropy.

We now assume that the probabilities of being in a particular microcell is the same in the three cases of Figure 2. For example, p6 of Figure 2a equals both p2,2 of Figure 2b and p1,6 of Figure 2c. Then, Equations (1) and (2) tell us that the entropy σ is the same in the three cases:

σa=σb=σc.

Assuming all probabilities pi,j are non-zero, it is clear that the macroentropies satisfy

0=Sa<Sc<Sb.

Therefore, the microentropies satisfy

σ=sa>sc>sb.

In particular, the inequality Sc<Sb corresponds with the inequality S2<S1 in Section 2 for the and gate in Table 1a. Indeed: Figure 2b corresponds with the left part of the truth table, whereas Figure 2c corresponds with the right part of the table. The decrease of macroentropy (S2<S1) thus is compensated by the increase of microentropy (s2>s1), leading to σ2=σ1, thus saving the second law: σ2σ1.

4. Reversible Engine

Figure 3a is the classical model of the Carnot engine, consisting of

  • a heat reservoir at temperature T1, providing a heat Q1,

  • a heat reservoir at temperature T2, absorbing a heat Q2, and

  • a reversible convertor, generating the work E.

Figure 3.

Figure 3

Core engines: (a) basic model and (b) extended model.

For our purpose, we provide each reservoir with a second parameter, i.e., the macroentropy S. See Figure 3b.

We write the two fundamental theorems of reversible thermodynamics:

  • conservation of energy: the total energy leaving the convertor is zero:
    Q1+E+Q2=0;
  • conservation of entropy: the total entropy leaving the convertor is zero:
    Q1T1+S1+0+Q2T2+S2=0.

Eliminating the variable Q2 from the above two equations yields

E=1T2T1Q1+(S2S1)T2. (4)

We can distinguish two special cases (Figure 4):

  • If S2=S1, then we obtain from Equation (4) that
    E=1T2T1Q1,
    known as Carnot’s law.
  • If T2=T1 (say T), then we obtain from (4) that
    E=(S2S1)T,
    known as Landauer’s law.

Figure 4.

Figure 4

Core engines: (a) the Carnot engine and (b) the Landauer engine.

We thus retrieve, besides Carnot’s formula, the priciple of Landauer: if no information is erased (S2=S1), then no work E is involved; if information is erased (S2<S1), then a negative work E is produced, meaning that we have to supply a positive work E.

We note that, in Figure 4a, the arrows indicate the sence of positive Q1 (heat leaving the upper heat reservoir) and positive Q2 (heat entering the lower heat reservoir). Analogously, in Figure 4b, the arrows indicate the sence of positive S1 (macroentropy leaving the upper memory register) and S2 (macroentropy entering the lower memory register). In order to actually perform the computation in the positive direction, an external driving force is necessary. The next section introduces this ‘arrow of computation’.

5. Reversible Engine Revisited

Information is carried by particles. Therefore, we have to complement the reservoirs of Figure 3b with a third parameter, i.e., the chemical potential μ of the particles. See Figure 5. Besides a heat flow Q, a reservoir also provides (or absorbs) a matter flow N.

Figure 5.

Figure 5

Core engine.

In conventional electronic computers, the particles are electrons and holes within silicon and copper. There, the particle flow N is (up to a constant) equal to the electric current I:

N=I/q,

where q is the elementary charge. The chemical potential μ is (up to a constant) equal to the voltage V:

μ=qV.

In the present model, we maintain the quantities N and μ, in order not to exclude unconventional computing, e.g., computation by means of ions, photons, Majorana fermions, ... or even good old abacus beads.

We write the three fundamental theorems of reversible thermodynamics:

  • conservation of matter: the total amount of matter leaving the convertor is zero:
    N1+0+N2=0;
  • conservation of energy: the total energy leaving the convertor is zero:
    (Q1+μ1N1)+E+(Q2+μ2N2)=0;
  • conservation of entropy: the total entropy leaving the convertor is zero:
    Q1T1+S1+0+Q2T2+S2=0.

The first equation leads to N2=N1, which we simply denote by N. Eliminating the variable Q2 from the remaining two equations yields the output work:

E=1T2T1Q1+(μ1μ2)N+(S2S1)T2.

We can distinguish three special cases (Figure 6):

  • If μ2=μ1 and S2=S1, then we obtain
    E=1T2T1Q1,
    i.e., Carnot’s law.
  • If T2=T1 and S2=S1, then we obtain
    E=(μ1μ2)N,
    known as Gibb’s law.
  • If T2=T1 (say T) and μ2=μ1, then we obtain
    E=(S2S1)T,
    i.e., Landauer’s principle.

Figure 6.

Figure 6

Core engines: (a) the Carnot engine, (b) the Gibbs engine, and (c) the Landauer engine.

6. Irreversible Transport

Figure 7a represents a transport channel between two reservoirs. The upper reservoir has parameter values T, μ, and S; the lower reservoir has parameter values T, μ, and S. We assume that the computer hardware is at a uniform temperature. Hence, T=T (say T). Furthermore, we assume that S=S (say S). This means, e.g., that noise does not cause random bit errors during the transport of the information. Thus, reservoirs only differ by μ and μ. See Figure 7b.

Figure 7.

Figure 7

Irreversible transport: (a) general model and (b) simplified model.

The particle drift N is caused by the difference of the two potentials μ and μ. The law governing the current is not necessarily linear. Hence, we have

N=1R[f(μ)f(μ)],

where f(μ) is an appropriate (monotonically increasing) function of μ and R (called resistance) is a constant depending primarily on the material properties and geometry of the particle channel. Many different functions f are applicable in different circumstances. For example, in classical c-MOS technology, an electron or hole diffusion process in silicon [14,15] can successfully be modeled by the function

f(μ)=expμkT,

such that

N=1RexpμkTexpμkT.

Below, however, for sake of mathematical transparency, we will apply

f(μ)=μ,

such that we have a linear transport equation, i.e., Ohm’s law:

N=1R(μμ).

7. Endoreversible Engine

Figure 8 shows an endoreversible computer gate. It consists of

  • a core part with reversible gate and

  • two transport channels: one for providing the input information and one for draining the output information.

Figure 8.

Figure 8

Endoreversible engine: (a) general model and (b) simplified model.

The core is modeled according to Section 5; the two transport channels are modeled according to Section 6. In Figure 8a, the two outermost reservoirs (i.e., the input and output data registers) have fixed boundary conditions: T1,μ1,S1 and T2,μ2,S2, respectively. The inner parameters T3, μ3, S3, T4, μ4, and S4 are variables. In accordance with Section 6, we choose T3 and S3 equal to T1 and S1, respectively, as well as T4 and S4 equal to T2 and S2, respectively. Finally, we assume the whole engine is isothermal, such that T2=T1. This results in Figure 8b. We thus only hold back as variable parameters the chemical potentials μ3 and μ4.

According to Section 5, we have, for the core of the endoreversible engine:

E=(μ3μ4)N+(S2S1)T. (5)

According to Section 6, the two transport laws are

N=1R1(μ1μ3) (6)
N=1R2(μ4μ2). (7)

We remind that, in the present model, the intensive quantities T, μ1, S1, μ2, and S2 have given values, whereas the quantities μ3 and μ4 have variable values. We eliminate the two parameters μ3 and μ4 from the three Equations (5)–(7). We thus obtain

E(N)=(μRN)N+T(S2S1),

where μ=μ1μ2 and R=R1+R2. The total energy dissipated in the endoreversible engine is

F=Nμ1ENμ2.

We thus find

F(N)=RN2+T(S1S2). (8)

The former term on the rhs of Equation (8) consists of the energy R1N2 dissipated in resistor R1 and the energy R2N2 dissipated in resistor R2; the latter term is the energy dissipated in the information loss in the core of the engine.

If N=0, then we dissipate a minimum of energy Fmin=F(0)=T(S1S2). Unfortunately, N=0 corresponds with an engine computing infinitely slowly (just like a heat engine produces power with a maximum, i.e., Carnot, efficiency when driven infinitely slowly). For reasons of speed, a computer is usually operated in so-called short-circuit mode: N=Nsc=μ/R. This operation corresponds with a short circuit between the two inner reservoirs of Figure 8: μ3=μ4. Under such condition, we have

F=Fsc=F(Nsc)=FμR=1Rμ2+T(S1S2)=RNsc2+T(S1S2)=μNsc+T(S1S2). (9)

For the sake of energy savings, we aim at low Fsc. As Nsc is large for sake of speed, we thus need both small R and small μ.

8. Discussion

Figure 8b acts as our thermodynamical model of classical (i.e., non-quantum) computing. It is equally applicable to a single elementary logic gate as it is to a complete supercomputer. In the use of the model, we distinguish two cases: logically irreversible computation and logically reversible computation:

8.1. Conventional Computing

In conventional computers, information is erased during the computational process: S1S2>0. The computation happens in one direction: from reservoir # 1 to reservoir # 2. In other words: N>0 and thus μ1>μ2.

During several decades, classical MOS technology succeeded in minimizing both parameters R and μ. Indeed, according to Moore’s law, we have known a continuous (exponential) shrinking of computer components. As a consequence, energy consumption per computational step diminished accordingly. In spite of this, the former term in (9) is still several orders of magnitude larger than the latter contribution. For a single computational step with e.g., a nand gate, in a 10 nanometer c-MOS technology, run with a power-supply voltage of 0.6 volt and operating at room temperature (i.e., at about 300 K), the dissipation in the resistor R is of the order of one attojoule (i.e., 1018 J), whereas the dissipation T(S1S2) is of order one zeptojoule (i.e., 1021 J) only (corresponding with an entropy production of 3 zJ/K and 0.003 zJ/K, respectively). An attojoule may sound as an irrelevant miniscule amount of energy. However, because of present-day computer speeds (i.e., clock rates of about 3 GHz) and computation parallelism, it is responsible for the approximately 50 W dissipation in a single silicon chip (CPU or central processing unit) and hence for the megawatt power consumption in today’s data centres. Further improvement of technology could lead to less energy dissipation. However, breaking the Landauer barrier will be impossible without radically changing computation architecture, i.e., without switching from logically irreversible computing to reversible computing.

8.2. Reversible Computing

In reversible computers, no information is erased: S1S2=0. The computation can happen in either direction: either from reservoir # 1 to reservoir # 2 or from reservoir # 2 to reservoir # 1. The former operation is activated by choosing μ1>μ2 (and hence N>0); the latter operation is activated by choosing μ2>μ1 (and hence N<0). For example, the circuits in Figure 1 indeed can be operated from top to bottom as well as from bottom to top, depending on the applied voltages.

Because the contribution T(S1S2) to the dissipated energy F is absent from (8), we can, in the limit, make F as small as we like, by letting N go to zero, either from the positive side or from the negative side. This reminds us of the fundamental law: things only can happen without dissipation if they happen infinitely slowly.

9. Conclusions

Endoreversible schemes have proven to be very useful in many branches of science: both in thermodynamics and in many disciplines far beyond. In the present paper, we have applied it to informatics and computing. The simple model presented brings together Carnot’s law, Landauer’s principle, Ohm’s law, and even Moore’s law.

Acknowledgments

The author thanks Bjarne Andresen and Robert Glueck, both from Københavns Universitet, at the physics and information department, respectively, for many years of fruitful discussions and collaborations.

Funding

This research received no external funding.

Conflicts of Interest

The author declares no conflicts of interest.

References

  • 1.Landauer R. Irreversibility and heat generation in the computational process. IBM J. Res. Dev. 1961;5:183–191. doi: 10.1147/rd.53.0183. [DOI] [Google Scholar]
  • 2.Keyes R., Landauer R. Minimal energy dissipation in logic. IBM J. Res. Dev. 1970;14:153–157. doi: 10.1147/rd.142.0152. [DOI] [Google Scholar]
  • 3.Bennett C., Landauer R. The fundamental physical limits of computation. Sci. Am. 1985;253:38–46. doi: 10.1038/scientificamerican0785-48. [DOI] [Google Scholar]
  • 4.Landauer R. Information is physical. Phys. Today. 1991;44:23–29. doi: 10.1063/1.881299. [DOI] [Google Scholar]
  • 5.Bérut A., Arakelyan A., Petrosyan A., Ciliberto S., Dillenschneider R., Lutz E. Experimental verification of Landauer’s principle linking information and thermodynamics. Nature. 2012;483:187–190. doi: 10.1038/nature10872. [DOI] [PubMed] [Google Scholar]
  • 6.Orlov A., Lent C., Thorpe C., Boechler G., Snider G. Experimental test of Landauer’s principle at the sub-kBT level. Jpn. J. Appl. Phys. 2012;51:06FE10. doi: 10.7567/JJAP.51.06FE10. [DOI] [Google Scholar]
  • 7.Jun Y., Gavrilov M., Bechhoefer J. High-precision test of Landauer’s principle in a feedback trap. Phys. Rev. Lett. 2014;113:190601. doi: 10.1103/PhysRevLett.113.190601. [DOI] [PubMed] [Google Scholar]
  • 8.Yan L., Xiong T., Rehan K., Zhou F., Liang D., Chen L., Zhang J., Yang W., Ma Z., Feng M. Single-atom demonstration of the quantum Landauer principle. Phys. Rev. Lett. 2018;120:210601. doi: 10.1103/PhysRevLett.120.210601. [DOI] [PubMed] [Google Scholar]
  • 9.Curzon F., Ahlborn B. Efficiency of a Carnot engine at maximum power output. Am. J. Phys. 1975;43:22–24. doi: 10.1119/1.10023. [DOI] [Google Scholar]
  • 10.Andresen B. Finite-Time Thermodynamics. Københavns Universitet; København, Denmark: 1983. [Google Scholar]
  • 11.De Vos A. Thermodynamics of Solar Energy Conversion. Wiley–VCH; Weinheim, Germany: 2008. [Google Scholar]
  • 12.Fredkin E., Toffoli T. Conservative logic. Int. J. Phys. 1982;21:219–253. doi: 10.1007/BF01857727. [DOI] [Google Scholar]
  • 13.De Vos A. Reversible Computing. Wiley–VCH; Weinheim, Germany: 2010. [Google Scholar]
  • 14.Mead M. Analog VLSI and Neural Systems. Addison–Wesley; Reading, MA, USA: 1989. [Google Scholar]
  • 15.Desoete B., De Vos A. Optimal charging of capacitors; Proceedings of the 8th International Workshop Patmos; Lyngby, Denmark. 7–9 October 1998; pp. 335–344. [Google Scholar]

Articles from Entropy are provided here courtesy of Multidisciplinary Digital Publishing Institute (MDPI)

RESOURCES