*Article* **Endoreversible Models for the Thermodynamics of Computing**

## **Alexis De Vos**

Vakgroep elektronika en informatiesystemen, Universiteit Gent, Technologiepark 126, B-9052 Gent, Belgium; alexis.devos@ugent.be

Received: 20 May 2020; Accepted: 10 June 2020; Published: 15 June 2020

**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–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–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 *A*1*B*<sup>1</sup> and the corresponding output word *A*2. 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 *A*<sup>2</sup> = 0 can equally well be the result of either *A*1*B*<sup>1</sup> = 00 or *A*1*B*<sup>1</sup> = 01, or *A*1*B*<sup>1</sup> = 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 *A*<sup>1</sup> suffices to know *A*2, but also: knowledge of *A*<sup>2</sup> suffices to know *A*1.

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


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 = -k \sum q\_i \log(q\_i) \text{ .}$$

where *k* is Boltzmann's constant and *qi* is the probability that a word *ABC*... (either an input word *A*1*B*1*C*1... or an output word *A*2*B*2*C*2...) has a particular value. As an example, we examine Table 1a in detail. Let (*q*00)<sup>1</sup> be the probability that input word *A*1*B*<sup>1</sup> equals 00, let (*q*01)<sup>1</sup> be the probability that *A*1*B*<sup>1</sup> equals 01, let (*q*10)<sup>1</sup> be the probability that it equals 10, and let (*q*11)<sup>1</sup> be the probability that it equals 11. We, of course, assume 0 ≤ (*qi*)<sup>1</sup> ≤ 1 for all *i*, as well as ∑(*qi*)<sup>1</sup> = 1. Let (*q*0)<sup>2</sup> be the probability that output word *A*<sup>2</sup> equals 0 and let (*q*1)<sup>2</sup> be the probability that *A*<sup>2</sup> equals 1. Inspection of Table 1a reveals that

$$\begin{aligned} (q\_0)\_2 &= \ (q\_{00})\_1 + (q\_{01})\_1 + (q\_{10})\_1, \\ (q\_1)\_2 &= \ (q\_{11})\_1 \ . \end{aligned}$$

Automatically, we have 0 ≤ (*qi*)<sup>2</sup> ≤ 1 for both *i*, as well as ∑(*qi*)<sup>2</sup> = 1. We now compare the entropies of input and output:

$$\begin{array}{rcl} S\_1 &=& -k \sum (q\_i)\_1 \log \left( (q\_i)\_1 \right) \\ S\_2 &=& -k \sum (q\_i)\_2 \log \left( (q\_i)\_2 \right) \end{array}$$

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

$$(q\_{00})\_1 = (q\_{01})\_1 = (q\_{10})\_1 = (q\_{11})\_1 = 1/4 \ \mu$$

then we have

$$(q\_0)\_2 = 3/4 \text{ and } (q\_1)\_2 = 1/4 \text{ .}$$

such that

$$\begin{array}{rcl} S\_1 &=& 2 \, k \log(2) = 2 \, b \\ S\_2 &=& \left[ 2 - \frac{3 \log(3)}{4 \log(2)} \right] \, k \log(2) \approx 0.811 \, b \end{array}$$

where *b* = *k* log(2) is called 'one bit of information'. Thus, evolving from input to output is accompanied by a loss of entropy *S*<sup>1</sup> − *S*<sup>2</sup> of about 1.189 bits. A similar examination of Table 1b leads to *S*<sup>1</sup> = *S*<sup>2</sup> = 1 *b*. Thus, both input and output contain one bit of information. There is no change in entropy: *S*<sup>1</sup> − *S*<sup>2</sup> = 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:

$$\begin{aligned} (q\_{00})\_2 &= \quad (q\_{00})\_1\\ (q\_{01})\_2 &= \quad (q\_{01})\_1\\ (q\_{10})\_2 &= \quad (q\_{11})\_1\\ (q\_{11})\_2 &= \quad (q\_{10})\_1 \end{aligned}$$

such that ∑ (*qi*)<sup>2</sup> log((*qi*)2) = ∑ (*qi*)<sup>1</sup> log((*qi*)1) and thus *S*<sup>2</sup> = *S*1. This result is true whatever the values of the input probabilities (*q*00)1, (*q*01)1, (*q*10)1, and (*q*11)1, thus not only if these four numbers all are equal to 1/4. The reason of this property is clear: the output words *A*2*B*<sup>2</sup> of Table 2a are merely a permutation of the input words *A*1*B*1. Analogously, in Table 2b, the output words *A*2*B*2*C*<sup>2</sup> form a permutation of the input words *A*1*B*1*C*1. Therefore, the controlled controlled not gate also satisfies *S*<sup>2</sup> = *S*<sup>1</sup> 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.


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

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


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.

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

#### **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

$$
\sigma = -k \sum\_{m=1}^{N} p\_m \log(p\_m) \,. \tag{1}
$$

Figure 2a shows an example with *N* = 15.

We now assume that the division of phase space happens in two steps. First, we divide it into *M* large parts (with *M N*), called macroparts. Then, we divide each macropart into microparts: macropart # 1 into *n*<sup>1</sup> microparts, macropart # 2 into *n*<sup>2</sup> microparts, ..., and macropart # *M* into *nM* microparts:

$$n\_1 + n\_2 + \dots + n\_M = N\dots$$

We denote by *pi*,*<sup>j</sup>* 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*:

$$q\_i = \sum\_{j=1}^{m\_i} p\_{i,j} \cdot $$

Figure 2b shows an example with *N* = 15 and *M* = 4 (*n*<sup>1</sup> = 4, *n*<sup>2</sup> = 5, *n*<sup>3</sup> = 3, and *n*<sup>4</sup> = 3); Figure 2c shows an example with *N* = 15 and *M* = 2 (*n*<sup>1</sup> = 12 and *n*<sup>2</sup> = 3).

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

$$
\sigma = -k \sum\_{i=1}^{M} \sum\_{j=1}^{n\_i} p\_{i,j} \log(p\_{i,j}) \,. \tag{2}
$$

One can easily check that this expression can be written as

$$\sigma = -k \sum\_{i=1}^{M} q\_i \log(q\_i) - k \sum\_{i=1}^{M} q\_i \sum\_{j=1}^{n\_i} \frac{p\_{i,j}}{q\_i} \log\left(\frac{p\_{i,j}}{q\_i}\right) \,. \tag{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 *<sup>s</sup>* <sup>=</sup> *<sup>Q</sup>*

Hence:

$$
\sigma = \mathcal{S} + \frac{\mathcal{Q}}{T} \cdot \mathcal{Q}
$$

*T* .

This decomposition can be expressed in several ways:

total entropy = macroentropy + microentropy

= Shannon entropy + Gibbs entropy

= information entropy + heat entropy .

**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 probabilities of being in a particular microcell is the same in the three cases of Figure 2. For example, *p*<sup>6</sup> of Figure 2a equals both *p*2,2 of Figure 2b and *p*1,6 of Figure 2c. Then, Equations (1) and (2) tell us that the entropy *σ* is the same in the three cases:

$$
\sigma\_a = \sigma\_b = \sigma\_c \dots
$$

Assuming all probabilities *pi*,*<sup>j</sup>* are non-zero, it is clear that the macroentropies satisfy

$$0 = \mathbb{S}\_{\mathfrak{A}} < \mathbb{S}\_{\mathfrak{C}} < \mathbb{S}\_{\mathfrak{b}}\ .$$

Therefore, the microentropies satisfy

$$
\sigma = \mathbf{s}\_{\mathfrak{d}} > \mathbf{s}\_{\mathfrak{k}} > \mathbf{s}\_{\mathfrak{b}} \dots
$$

In particular, the inequality *Sc* < *Sb* corresponds with the inequality *S*<sup>2</sup> < *S*<sup>1</sup> 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 (*S*<sup>2</sup> < *S*1) thus is compensated by the increase of microentropy (*s*<sup>2</sup> > *s*1), leading to *σ*<sup>2</sup> = *σ*1, thus saving the second law: *σ*<sup>2</sup> ≥ *σ*1.

## **4. Reversible Engine**

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


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

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

We write the two fundamental theorems of reversible thermodynamics:

• conservation of energy: the total energy leaving the convertor is zero:

$$-Q\_1 + E + Q\_2 = 0 \; ;$$

• conservation of entropy: the total entropy leaving the convertor is zero:

$$-\left(\frac{Q\_1}{T\_1} + S\_1\right) + 0 + \left(\frac{Q\_2}{T\_2} + S\_2\right) = 0 \dots$$

Eliminating the variable *Q*<sup>2</sup> from the above two equations yields

$$E = \left(1 - \frac{T\_2}{T\_1}\right) Q\_1 + \left(S\_2 - S\_1\right) T\_2\,. \tag{4}$$

We can distinguish two special cases (Figure 4):

• If *S*<sup>2</sup> = *S*1, then we obtain from Equation (4) that

$$E = \left(1 - \frac{T\_2}{T\_1}\right) Q\_{1\text{-}1}$$

known as Carnot's law.

• If *T*<sup>2</sup> = *T*<sup>1</sup> (say *T*), then we obtain from (4) that

$$E = \left(\mathbb{S}\_2 - \mathbb{S}\_1\right) T\_{\nu\_1}$$

known as Landauer's law.

**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 (*S*<sup>2</sup> = *S*1), then no work *E* is involved; if information is erased (*S*<sup>2</sup> < *S*1), 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 *Q*<sup>1</sup> (heat leaving the upper heat reservoir) and positive *Q*<sup>2</sup> (heat entering the lower heat reservoir). Analogously, in Figure 4b, the arrows indicate the sence of positive *S*<sup>1</sup> (macroentropy leaving the upper memory register) and *S*<sup>2</sup> (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*.

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\_{\prime\prime}$$

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

$$
\mu = 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.

**Figure 5.** Core engine.

We write the three fundamental theorems of reversible thermodynamics:

• conservation of matter: the total amount of matter leaving the convertor is zero:

$$-N\_1 + 0 + N\_2 = 0 \not\ni$$

• conservation of energy: the total energy leaving the convertor is zero:

$$-(Q\_1 + \mu\_1 N\_1) + E + (Q\_2 + \mu\_2 N\_2) = 0 \; ; \; $$

• conservation of entropy: the total entropy leaving the convertor is zero:

$$-\left(\frac{Q\_1}{T\_1} + \mathcal{S}\_1\right) + 0 + \left(\frac{Q\_2}{T\_2} + \mathcal{S}\_2\right) = 0 \ .$$

The first equation leads to *N*<sup>2</sup> = *N*1, which we simply denote by *N*. Eliminating the variable *Q*<sup>2</sup> from the remaining two equations yields the output work:

$$E = \left(1 - \frac{T\_2}{T\_1}\right) Q\_1 + \left(\mu\_1 - \mu\_2\right) N + \left(S\_2 - S\_1\right) T\_2 \dots$$

We can distinguish three special cases (Figure 6):

• If *μ*<sup>2</sup> = *μ*<sup>1</sup> and *S*<sup>2</sup> = *S*1, then we obtain

$$E = \left(1 - \frac{T\_2}{T\_1}\right) Q\_{1\text{-}f}$$

i.e., Carnot's law.

• If *T*<sup>2</sup> = *T*<sup>1</sup> and *S*<sup>2</sup> = *S*1, then we obtain

$$E = \left(\mu\_1 - \mu\_2\right) N\_{\text{-}1}$$

known as Gibb's law.

• If *T*<sup>2</sup> = *T*<sup>1</sup> (say *T*) and *μ*<sup>2</sup> = *μ*1, then we obtain

$$E = \left(\mathbb{S}\_2 - \mathbb{S}\_1\right) T\_{\nu\_{\nu}}$$

i.e., Landauer's principle.

**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.** 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 = \frac{1}{R} \left[ f(\mu') - f(\mu'') \right]\_{\text{-}\lambda}$$

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(\mu) = \exp\left(\frac{\mu}{kT}\right) \text{ .}$$

such that

$$N = \frac{1}{R} \left[ \exp\left(\frac{\mu'}{kT}\right) - \exp\left(\frac{\mu''}{kT}\right) \right].$$

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

$$f(\mu) = \mu\_{\prime\prime}$$

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

$$N = \frac{1}{\mathcal{R}} \left( \mu' - \mu'' \right) \dots$$

## **7. Endoreversible Engine**

Figure 8 shows an endoreversible computer gate. It consists of


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: *T*1, *μ*1, *S*<sup>1</sup> and *T*2, *μ*2, *S*2, respectively. The inner parameters *T*3, *μ*3, *S*3, *T*4, *μ*4, and *S*<sup>4</sup> are variables. In accordance with Section 6, we choose *T*<sup>3</sup> and *S*<sup>3</sup> equal to *T*<sup>1</sup> and *S*1, respectively, as well as *T*<sup>4</sup> and *S*<sup>4</sup> equal to *T*<sup>2</sup> and *S*2, respectively. Finally, we assume the whole engine is isothermal, such that *T*<sup>2</sup> = *T*1. This results in Figure 8b. We thus only hold back as variable parameters the chemical potentials *μ*<sup>3</sup> and *μ*4.

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

$$E = (\mu\_3 - \mu\_4)N + (S\_2 - S\_1)T.\tag{5}$$

According to Section 6, the two transport laws are

$$N\_{\perp} = \frac{1}{R\_1} \left(\mu\_1 - \mu\_3\right) \tag{6}$$

$$N\_{\perp} = \frac{1}{R\_2} \left(\mu\_4 - \mu\_2\right). \tag{7}$$

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

$$E(N) = \left(\mu - RN\right)N + T\left(S\_2 - S\_1\right)\mu$$

where *μ* = *μ*<sup>1</sup> − *μ*<sup>2</sup> and *R* = *R*<sup>1</sup> + *R*2. The total energy dissipated in the endoreversible engine is

$$F = N\mu\_1 - E - N\mu\_2 \dots$$

We thus find

$$F(N) = RN^2 + T(\mathbb{S}\_1 - \mathbb{S}\_2) \,. \tag{8}$$

The former term on the rhs of Equation (8) consists of the energy *R*1*N*<sup>2</sup> dissipated in resistor *R*<sup>1</sup> and the energy *R*2*N*<sup>2</sup> dissipated in resistor *R*2; the latter term is the energy dissipated in the information loss in the core of the engine.

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

If *N* = 0, then we dissipate a minimum of energy *Fmin* = *F*(0) = *T*(*S*<sup>1</sup> − *S*2). 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: *μ*<sup>3</sup> = *μ*4. Under such condition, we have

$$F = F\_{\rm sc} = F(N\_{\rm sc}) = F\left(\frac{\mu}{R}\right) \quad = \quad \frac{1}{R}\mu^2 + T(S\_1 - S\_2)$$

$$= \quad RN\_{\rm sc}^2 + T(S\_1 - S\_2)$$

$$= \quad \mu N\_{\rm sc} + T(S\_1 - S\_2) \,. \tag{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: *S*<sup>1</sup> − *S*<sup>2</sup> > 0. The computation happens in one direction: from reservoir # 1 to reservoir # 2. In other words: *N* > 0 and thus *μ*<sup>1</sup> > *μ*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., 10−<sup>18</sup> J), whereas the dissipation *<sup>T</sup>*(*S*<sup>1</sup> <sup>−</sup> *<sup>S</sup>*2) is of order one zeptojoule (i.e., 10−<sup>21</sup> 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: *S*<sup>1</sup> − *S*<sup>2</sup> = 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 *μ*<sup>1</sup> > *μ*<sup>2</sup> (and hence *N* > 0); the latter operation is activated by choosing *μ*<sup>2</sup> > *μ*<sup>1</sup> (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*(*S*<sup>1</sup> − *S*2) 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.

**Funding:** This research received no external funding.

**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.

**Conflicts of Interest:** The author declares no conflicts of interest.

## **References**


© 2020 by the author. 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 (http://creativecommons.org/licenses/by/4.0/).
