Landauer’s Principle in a Quantum Szilard Engine without Maxwell’s Demon

Quantum Szilard engine constitutes an adequate interplay of thermodynamics, information theory and quantum mechanics. Szilard engines are in general operated by a Maxwell’s Demon where Landauer’s principle resolves the apparent paradoxes. Here we propose a Szilard engine setup without featuring an explicit Maxwell’s demon. In a demonless Szilard engine, the acquisition of which-side information is not required, but the erasure and related heat dissipation still take place implicitly. We explore a quantum Szilard engine considering quantum size effects. We see that insertion of the partition does not localize the particle to one side, instead creating a superposition state of the particle being in both sides. To be able to extract work from the system, particle has to be localized at one side. The localization occurs as a result of quantum measurement on the particle, which shows the importance of the measurement process regardless of whether one uses the acquired information or not. In accordance with Landauer’s principle, localization by quantum measurement corresponds to a logically irreversible operation and for this reason it must be accompanied by the corresponding heat dissipation. This shows the validity of Landauer’s principle even in quantum Szilard engines without Maxwell’s demon.


Introduction
The second law of thermodynamics has been challenged by thought experiments many times. While the second law eludes itself from all charges so far, the interrogators have caused to reveal subtle links and features between different disciplines of physics. One of these thought experiments, quantum Szilard engine, holds the key for a possible reconciliation of thermodynamics, information theory and quantum mechanics in the same footing. Understanding the full role of Landauer's principle in a quantum Szilard engine along with its restrictions and liberations is still a crucial challenge in the emerging field of quantum-information thermodynamics [1].
The first link between thermodynamics and information has been unraveled by Maxwell in 1871 [2]. To briefly summarize his thought experiment, consider a container with two equally sized compartments where each compartment is filled with a gas at thermal equilibrium with the same pressure and temperature. An information processing being (later coined as the Maxwell's demon) controls a tiny opening; closes if a molecule comes towards left compartment and opens if it comes towards right, thereby creating a pressure (or temperature if it does the selection according to molecules' energy) difference from a thermal equilibrium. Without any expenditure of work, the demon transfers heat from colder region to hotter region and decreases the entropy, which presents a clear violation of the Clausius statement of the second law of thermodynamics. Instead of an information-processing demon, Smoluchowski proposed a trapdoor model in 1912 [3], but these kinds of Brownian ratchet-like devices cannot operate reliably at thermal equilibrium because of random fluctuations. Szilard took the problem one step further by designing a heat engine that appears to violate the second law [4]. Szilard's classical heat engine can be described as follows: Consider a container with a single gas molecule inside and in contact with a heat reservoir. Now insert a piston with zero thickness at the middle of the container which splits it into two parts with equal volumes. Depending on the position of the molecule one can attach a weight to the piston with a string over a pulley, which makes it possible to extract work by the expansion of a freely movable piston caused by the pressure that molecule exerts. To return the initial state, the partition can be removed without any work consumption and the whole process can be repeated in a cyclic manner. All thermodynamic processes are defined as isothermal and reversible. This engine apparently violates the Kelvin-Planck statement of the second law (that is actually equivalent to the Clausius statement) by converting heat directly into equivalent amount of work through a cyclic process.
Information-theoretic arguments for the resolution of Maxwell's demon and Szilard engine paradoxes put forward explicitly by von Neumann, Brillouin and Rothstein during the beginning of the 1950s [5]. However, the major leap forward on the issue came in 1961 by Landauer who stated that any logically irreversible operation must be accompanied by some heat dissipation, which is called Landauer's principle now [6]. In this context, Landauer gave an explicit example of resetting a memory to the reference state, which is presently known as information erasure. Later by Penrose and independently by Bennett, this has been used to resolve the Szilard problem. Penrose and Bennett argued that in order to complete the cycle in Szilard engine, one needs to erase the information from the demon's memory (by resetting) which generates a heat dissipation [7,8]. After Penrose and Bennett, information erasure was the key to resolve the problem and the measurement was thought to cost no work. Indeed, for classical measurements this is the case [7]. Presently, for the resolution of the classical versions of both Maxwell's demon and Szilard engine paradoxes, it has been accepted by most that the demon must store the information about the molecule(s) and need to erase it to complete the cycle [9,10].
Although Szilard's thought experiment does not mention about quantum mechanics, by the very nature of the problem, it is clear that such an engine needs to operate at nanoscale where quantum effects may play a significant role. Zurek [11,12] was one of the first to explicitly take into account the role of quantum superposition in a quantum Szilard engine. However, it has been first realized by Biedenharn and Solem [13] that quantum mechanics might be essential for the resolution of the paradox. They also pointed out the resemblance between Szilard engine problem and double-slit experiment. The role of wavefunction collapse during a measurement in the perspective of Maxwell's demon has been also discussed [14]. Through an Ising model adaptation of the Szilard engine, Parrondo [15,16] argued that symmetry breaking is the key ingredient in the operation of a Szilard engine. Recently, Alicki and Horodecki proposed a postulate to separate ergodicity from the quantum superpositions, i.e., the non-existence of the superpositions of pure quantum states belonging to different ergodic components, which is relevant to understand the thermodynamics of the Szilard engine [17]. During recent decades, quantum versions of Maxwell's demon and Szilard engine have been explored by considering specific physical systems as well as abstract ones [18][19][20][21][22][23][24][25][26]. Experimental realization claims of the Maxwell's demon and Szilard engine has been made also during the last decade [27][28][29][30][31][32][33].
Quantum Szilard engine is crucial in the sense that it constitutes the backbone of the reconciliation of thermodynamics, information and quantum theories. Therefore, the coverage of all its aspects and a fully acclaimed resolution of the problem are still required. Several arguments have been put forward and circulated in the literature based on some assumptions and logic flows, but to our knowledge, there is still no in depth investigation and simulation of the quantum version of the original Szilard engine under quasistatic isothermal processes and confinement effects.
In this work, we start with a new Szilard engine setup without the Maxwell's demon, and argue that acquisition of which-side information and feedback control may not be essential in a Szilard engine. Without actually recording and storing the information, the explicit necessity of the erasure is discussed. We present by various novel examples that even in the absence of Maxwell's demon, erasure might take place implicitly. The consequences of implicit erasure are also addressed in Section 2. In the light of demonless classical Szilard engines, we argue that the demonless resolution of Szilard's paradox implies the requirement of quantum-mechanical considerations. In Section 3, we examine the thermodynamic cycle of a demonless quantum Szilard engine with quasistatic isothermal processes at all steps. Confinement effects are fully taken into account and they help to understand and analyze the cycle thoroughly. We show that despite the lack of need for acquiring the which-side information, the localization of particle at one side by quantum measurement is essential for the operation of a Szilard engine, which brings out the necessity of quantum-mechanical considerations. On the contrary case, the engine will not work because the particle stays in a superposition state of being at both sides thereby exerting equal and opposite pressures to the piston. The quantum measurement process is therefore crucial in a quantum Szilard engine, even in the absence of an explicit information processing. Localization by quantum measurement is a logically irreversible process and just like the information erasure, it must be accompanied by a corresponding heat dissipation. Consequently, in a demonless Szilard engine, quantum mechanics validates the Landauer's principle and saves the second law. We calculate free energy, entropy and internal energy changes in each step of the quantum Szilard engine by taking quantum confinement effects fully into account. Due to quantum size and shape effects, insertion requires a work to be done, though it is exactly recovered back during the expansion process along with KT ln 2. Detailed numerical simulations also support our arguments. Highly accurate analytical expressions for work and heat exchanges in the quantum regime of a Szilard engine cycle are provided in the Appendix A. We summarize our findings in Section 4 and conclude by mentioning the possible future extensions of this work.

A Szilard Engine without Maxwell's Demon?
The thermodynamic process of a basic memory erasure is described in References [10,34] by simply reversing the Szilard engine cycle. In the literature, Szilard engines have been almost always designed with an external memory device of this kind and implemented by a Maxwell's Demon through some protocols. Landauer's erasure explicitly takes place on the memory device. On the other hand, several demonless Szilard engine setups have also been proposed before to demonstrate a complete thermodynamic cycle without the which-side information acquisition, such as the trapdoor model by Smoluchowski [3], a mechanical setup by Popper [5], an automatic device by Jauch and Baron [35] and recently by Alicki [17]. Some demonless engines, like Smoluchowski's trapdoor, will not work because of thermal fluctuations. The final stance of the other setups is still open to debate [5,[36][37][38][39][40].
Here, we address this issue again and by presenting a new demonless Szilard engine setup ( Figure 1) we discuss the implications and consequences by means of Landauer's principle. In our proposed setup, a partition (piston) divides the Szilard's box into two equally sized compartments and magnetic rods are attached to the piston on both sides of the box along with solenoids. After the insertion of the piston, regardless of the position of particle (either left or right classically), the piston will cause the magnetic rods to move within the solenoid and generate a positive and/or negative electric current by electromagnetic induction. This current can then be converted into a direct current, if required, by a passive diode bridge to drive a DC motor. Thermally fluctuating energy can also be converted into work by a feedback control [27], which is done by the rectifier for the case given here. Even without using a rectifier component like a diode bridge, the current can still be used to drive an AC motor by designing the opposite winding directions in each solenoid. Even repositioning of the piston will not cause any problem, as long as we disconnect the load from the bridge during the repositioning process of the piston. With this setup, work can be extracted from the Szilard engine, without having the necessity of knowing which side of the container the particle is. Since no information acquisition has occurred, there would be no need for a memory to record the which-side information and so the cycle seems to be completed without any apparent erasure of information. This device has the sole effect of absorbing heat from a reservoir and converting it to the equivalent amount of work, thus, seems to violate the Clausius' version of 2nd law! Figure 1. A classical Szilard engine setup without Maxwell's demon. Schematic shows the step after the partition (piston) symmetrically inserted. Magnetic rods are attached to the both sides of the piston and two solenoids are placed on both ends which are connected to a passive diode bridge. Regardless of the particle's position, magnetic rods moving inside the solenoids induce an electric current that can be used from the output of the diode bridge.
One can object to this erasure-free interpretation by stating that in any demonless engine, there would be some mechanism that implicitly stores the which-side information and corresponds to a some sort of memory which needs to be erased eventually [41][42][43][44]. For instance, in our proposed setup, left and right solenoids induce the electric current independent of the position of the particle inside the box. However, this state still encodes the information about which outcome occurs, though we are not necessarily using it to extract work. Converting this undirected current to a direct current by a diode bridge might correspond to the erasure of this which-side information and if that is the case, this must be accompanied by a heat dissipation. Even in the case of the absence of a rectifier diode bridge, the positive or negative phase information will be erased irreversibly by the internal physical mechanisms of an AC motor. In every possible case, two-way motion (leftward/rightward or clockwise/counterclockwise) is always converted into a one-way motion to be able to make use of it as a thermodynamic work. By the very nature of this conversion, information loss happens, and it is impossible to recover the input information from the output. This means by the Landauer's principle, there must be an entropy generation and corresponding heat dissipation. These kinds of attempts to bypass Landauer's principle is similar to the attempts that were done in the past to bypass the second law of thermodynamics, which all eventually have been shown to be impossible. There seems no way to bypass the Landauer's principle, even by constructing Szilard engines without Maxwell's demon. In the following section, we explore the quantum version of a demonless Szilard engine and extend the usage of Landauer's principle beyond the memory erasure.

Thermodynamics of a Demonless Quantum Szilard Engine under Confinement Effects
In this section, we revisit the conceptual Szilard engine by considering quantum-mechanical effects such as quantum measurement, localization and confinement (both size and shape) effects. We keep our discussion as close as it can to the original Szilard engine, albeit it is quantum-mechanical version of it. It is hard to make general statements out of Szilard engine setups with very specific physical system considerations. Staying on thermodynamic footing allows us to make more generalized statements. Therefore, to make our arguments model-independent, we design our setup without any concerns of a physical realization. Schematic of a single-particle quantum Szilard heat engine is presented in Figure 2. The setup is composed of three components, namely the system S, measuring device D and heat bath B at temperature T. The thermodynamic cycle consists of four steps: insertion (I), measurement (II), expansion (III) and removal (IV). The partition has zero thickness and symmetrically divides the container into two compartments. All boundaries confining the particle are perfectly impenetrable. B is in contact with S and D all the time to keep all processes isothermal. To stick with the original propositions and to prevent any unnecessary complications of the problem, we assume all processes to be quasistatic. In such a case, initial and final states are characterized by a time-independent Hamiltonian.

Figure 2.
A quantum Szilard engine setup composed of three components, system S, measuring device D and heat bath B. S denotes the container with a single particle inside. D is the device which measures the particle. B at temperature T is in contact with both S and D, keeping all processes isothermal. Dotted turquoise lines denote the effective regions that the particle occupies because of the confinement effects. (I→II) Inserting the partition into the container. Symmetric insertion divides the container into two equal compartments and creates an entangled state of the particle's position. (II→III) Performing quantum measurement to localize the particle into one of the compartments. (III→IV) Letting particle to expand the partition and extracting work from the system. (IV→I) Removing the partition from the container at the boundary, which completes the cycle.
For a 1-dimensional Szilard box, initial wavefunction of the confined particle before the insertion of the partition is given by x|ψ n = √ 2/L sin (nπx/L), where n is quantum state variable. The density matrix completely describing the equilibrium state of the single particle in a quantum Szilard engine reads where β = 1/(kT) is inverse temperature with K denotes the Boltzmann's constant and T temperature.
Here, Z is the single-particle partition function which is given by where E n = n 2 h 2 /(8mL 2 ) are 1D energy eigenvalues from the solution of Schrödinger equation for the particle with mass m inside the container with length L at the initial stage. We choose bare electron mass for the calculations. Please note that since there is only one particle inside the box, Maxwell-Boltzmann statistics is used as the distribution function. By using the partition function, Helmholtz free energy is written as Entropy of the quantum-thermodynamic system is written by von Neumann entropy as and then, internal energy of the system is as follows In the following subsections, we investigate the steps of the thermodynamic cycle and analyze work and heat exchanges between S, D and B in detail for each step by evaluating free energies, entropies and internal energies of the thermodynamic states of the system. For the sake of clarity of the thermodynamic processes, we examine a Szilard engine with a 2-dimensional (2D) container in particular, rather than 1D. It should be noted that although free energy, entropy and internal energy values differ in 2D and 1D cases, differences in these quantities (so work and heat exchanges) are the same for both cases, because momentum eigenvalues parallel to the direction of the inserted partition do not change during thermodynamic processes. The contributions from the direction parallel to the inserted partition cancels out when one takes the differences of thermodynamic quantities. Hence, work, heat and energy exchanges presented in this work are universal in the sense that they are independent from how many dimensional spaces the container is considered in.

Step I: Creating Superposition by Insertion
In the first step, a partition with zero thickness is quasistatically inserted into the system which is in contact with the heat bath B at temperature T. The insertion process is not a trivial step in a quantum Szilard engine. Changes of thermodynamic state functions during the insertion process are represented in Figure 3 in detail. To also make a quantitative analysis, we choose a container with sizes L x = 20 nm, L y = 10 nm and temperature T = 300 K. (a) Quantum-mechanical thermal probability density distribution of the particle is non-uniform inside the container due to quantum size effects. Magnitudes of the density distributions are represented by the rainbow color scale, where red and blue colors denote higher and lower density regions, respectively. Partition with zero thickness entering the container in y-direction, d = 1 nm. (b) Partition enters almost halfway of the container, d = 4 nm. Although it has zero thickness, confined particle perceives a finite effective thickness (2δ). (c) Partition is at d = 7 nm depth. (d) Partition separates the container into two equally sized compartments, d = 10 nm. Particle has equal probability to be at both sides. Variation of (e) Helmholtz free energy, (f) entropy and (g) internal energy with respect to partition's penetration depth d in nm's.
A single quantum particle at thermal equilibrium occupies the whole domain in an inhomogeneous way due to its wave nature. Thermally weighted quantum probability density of the confined particle is given by where r is the position vector. Please note that Equation (6) contains both the thermal and quantum probabilities and so capturing quantum-thermodynamic nature of the confined system. In Figure 3a-d, numerical simulations [45] of the density distributions of the confined particle is shown for insertion depths of d = 1 nm, d = 4 nm, d = 7 nm and d = 10 nm, respectively. d denotes the depth of the inserted partition in y-direction. Density at a particular point inside the domain is represented by the rainbow color scale, where red and blue colors respectively denote higher and lower densities. As is seen, although partition dives into the domain, there is still possibility for particle to travel in between compartments, until the partition finally closes the opening at d = 10 nm, in Figure 3d.
It is crucial to notice that even after the partition divides the domain into two, particle has probability to occupy both regions of left and right compartments, as particle does not teleport itself into one of the compartments at the moment of the perfect division. This can be seen quantitatively and visually from the plots of Equation (6) in Figure 3. In fact, at the closure of the partition, particle becomes in a quantum superposition state of being both left and right sides at the same time. In other words, the insertion of the partition creates an entangled position-state of the particle. Entanglement is provided by the spatial correlation of states. Similar to the entangled photons in a double-slit experiment, the confined particle in a quantum Szilard engine is in a quantum state that is composed of possibilities occupying left and right compartments at the same time with equal probability in the symmetric insertion case. In this sense, insertion process in a quantum Szilard engine can be seen analogous to the entanglement creation of a photon by a beam splitter, where in both cases, the system is described by a single wavefunction with an even superposition of two states [13].
Thermally weighted quantum probability density distributions of confined systems and variation in thermodynamic properties can be suitably understood and interpreted by the quantum boundary layer (QBL) concept [46]. In the thermodynamics of confined systems, when particles are confined in nanoscale domains at thermal equilibrium, because of their wave nature, a layer with less occupation probability is formed near boundaries, which is called QBL. In Figure 3a-d, the effect of QBL formation near all boundaries (both external and internal) can clearly be seen. The particle in a quantum Szilard engine effectively occupies a smaller volume than the apparent geometric volume (the effective region is denoted by dotted turquoise regions in Figure 2). Although inserted partition has zero thickness, the quantum particle confined in the domain perceives an effective thickness (2δ) of the partition, which in turn changes the thermodynamic properties of the system, unlike in classical case [47]. The physical origin of the QBL comes from the fact that the quantum density distribution of confined particles are non-uniform. The position wavefunction of particles is imposed to be zero at the boundaries. Although this is true for each and every energy eigenfunction, their form is different (e.g., ground state eigenfunction goes to zero gradually, whereas higher and higher excited state eigenfunctions go increasingly abruptly). As a result, when they summed over through a thermal distribution function, non-uniform profile with an effective region and so QBL emerges, see Figure 3a-d. The concept of QBL not only gives a physical understanding to the quantum thermodynamics of confined systems, but also gives possibility to obtain analytical expressions of thermodynamic quantities (given in Appendix A) with a quite high accuracy.
Free energy of the system increases during the insertion process, Figure 3e, suggesting that it requires work to be done. Free energy slowly changes during the initial entrance of the partition, because of the less probability density between d = 0 and d = 1 nm due to QBL near container's boundaries. Then, free energy linearly increases during the insertion until around d = 8 nm where QBLs of partition and the container wall starts to overlap [48] in which free energy saturates to its final value at d = 10 nm. Free energy variation is approximately equal to the effective pressure times the effective thickness which corresponds to the quantum force exerted on the partition with zero thickness [47].
Free energy of the system before insertion is given by F I = −kT ln[Z(L)]. Partition function has also temperature and L y dependencies of course, but we will not denote them in the expressions, since they are constant during all processes. Likewise, L x is shortened to L for brevity in expressions. Insertion of the partition divides the system into two compartments and creates a position entanglement. Since the entangled states occupy left and right compartments equally, the partition function of the final system after the insertion is the sum of two partition functions of both compartments, 2Z(L/2). Although there is only single particle inside the box, its wavefunction occupies both sides of the partition. Please note that quasistatic insertion ensures the system to stay in its corresponding eigenstates at all times during the processes. Hence, free energy after insertion is F II = −kT ln[2Z(L/2)] = −kT ln[Z(L/2)] − kT ln 2. It can be seen that KT ln 2 term naturally arises inside the free energy expression F II , as a consequence of the quantum entanglement of the particle which is now in both compartments at once. From the difference of initial and final free energies, insertion work reads Due to quantum size effects, the result of the above equation is non-zero. If one takes the limit of L → ∞ or T → ∞, insertion work will be zero. The quantitative examination giving the functional behavior of this limit is shown in Figure 4 by black and gray curves for size and temperature behaviors, respectively. As expected, work, heat and energy exchanges during insertion go to zero in the infinite volume and temperature limits, since the insertion process does not cause any change in thermodynamic state functions in classical limit. In the other asymptote, corresponding to the limits of L → 0 or T → 0, insertion work and ∆U ins blow up to infinity. This is because the system goes to its ground state and the partition function in Equation (2) consists of only the first term, where its argument βE n blows up. Since E n (L/2) blows up faster than E n (L), both Equations (7) and (9) go to infinity in L → 0 or T → 0 limits.
During the insertion, entropy of the system decreases as the available effective volume that can be occupied by the particle decreases, because of QBLs on both sides of the inserted wall. Entropy of the system before insertion is S I = −ktr[ρ(L) ln ρ(L)] and after it becomes S II = −ktr[ρ(L/2) ln ρ(L/2)] + k ln 2. Then, from the difference of initial and final entropies, heat dissipation to the environment during the insertion process becomes Variation of Q ins with domain size and temperature is examined in Figure 4a,b by purple and pink curves respectively. For large domain sizes and high temperatures, it goes to zero. However, when domain size becomes extremely small, say less than around 10nm's in our case (at room temperature), it changes its negatively increasing behavior by rapidly going up to the positive values and approaching to a constant value of K ln 2. To understand this behavior, we can investigate entropy of the system at stages I and II separately. S I goes to zero in L → 0 or T → 0 limits which is expected as the system is forced to ground state. On the other hand, S II approaches to K ln 2 because at stage II the particle is in superposition of two distinct states and has a phase space volume of 2 bits. Hence, their difference gives K ln 2 in L → 0 or T → 0 limits. This strong confinement behavior of Q ins is due to quantum shape effects [48] and it will not change the arguments for the resolution of the Szilard engine problem in this work. The quantum shape effects on thermodynamic processes of strongly confined systems will be the subject of another study.
Internal energies of initial and final stages are respectively written as U I = Z −1 (L) ∑ n E n (L) exp[−βE n (L)] and U II = Z −1 (L/2) ∑ n E n (L/2) exp[−βE n (L/2)]. Therefore, change in internal energy of the system in insertion process becomes During the insertion process, S interacts only with B and all work and heat exchanges happen between them.
Although in an isothermal process internal energy change is zero, this statement is valid only classically. As a result of quantum size effects, internal energy (as well as other thermodynamic properties) does not only the function of the temperature, but also the domain sizes [49]. Variations of changes in internal energy with respect to L and T are examined in Figure 4a,b by the teal and turquoise curves respectively.
Analytical expressions for work and heat exchanges, as well as changes in internal energy, are given in Appendix A. They perfectly match with the expressions given by Equations (7)- (9), that is why we did not plot them in Figure 4. The relative errors are less than 10 −6 even for L = 10 nm at T = 300 K. For even stronger confinements, one needs to consider quantum shape effects [48] as well in order to get even more accurate representations, but for our analysis here, the analytical expressions given in Appendix A are quite sufficient.

Step II: Localization by Quantum Measurement
In the beginning of step II, we have the superposition of the particle in left and right compartments of the container. In this stage, we argue that it is impossible to extract work from the Szilard engine unless we localize the particle into one of the compartments by measuring its position. To demonstrate this, we analyze the system in quasistatic isothermal expansion without the localization of the particle in Figure 5. l denotes the position of the partition in x-direction. First of all, piston will not move because particle is in both left and right sides with equal probability and therefore exerting equal but opposite pressure to the piston, Figure 5a. This fact can also be seen from the free energy variation in Figure 5e with respect to the location of the piston (at l = 10 nm piston is at the center, at l = 20 nm it is on the right boundary of container). Free energy stays almost constant until around 3 QBL thickness left between the piston and domain boundaries, which is due to the so-called quantum shape effect [48]. Behavior of entropy and internal energy in Figure 5f,g after l = 7 nm can also be explained by quantum shape effects. The discussion of these behaviors is beyond the scope of this article as it will not change the presented arguments and only has quantitative effect; however one can check Reference [48] for the explanations of these behaviors via similar systems. What Figure 5 shows us is, the best we can do in a quantum Szilard engine without localization is to get back the work that we expend during the insertion process. This can be seen by comparing the free energy differences of both processes shown in Figures 3e and 5e, where the differences in free energies are exactly equal to each other and KT ln 2 term does not pop out unlike in the localized case. Therefore, without the localization of the particle, net work output during the cycle will be zero. One cannot extract work in this case, because the partition will not move as it feels equal amount of pressure from both compartments, see Figure 5a,e. Consequently, although we do not need to acquire the which-side information, we still must measure the particle's position to localize it. Here, we are not strictly interested in the physical structure of the measuring device. Its only function is to localize the wavefunction of the particle and it has ability to receive heat from B. Figure 5. Simulation of quasistatic isothermal expansion process without performing the quantum measurement and localizing the particle. l denotes the lateral position of the partition. (a) Partition symmetrically divides the container into two equally sized compartments. (b) Partition is moved to the position of l = 14 nm by preserving quantum superposition and without localizing the particle. (c) Partition is at l = 17 nm. (d) Partition is moved to the right boundary of the container, l = 20 nm. Initial situation before the insertion is recovered. Variation of (e) Helmholtz free energy, (f) entropy and (g) internal energy with respect to partition's lateral position l in nm's.
In the literature, measurement has been thought to cost no work (and corresponding heat dissipation). This is indeed true since gaining (or writing) information is just a mapping operation which preserves the phase space volume and therefore can be realized without heat dissipation, in principle. However, the operation of localizing the particle by quantum measurement does not preserve the phase space volume. It is not possible to infer the initial state from the final state, since there is no one-to-one correspondence between the pre-measurement and post-measurement states. Although measurement process is thermodynamically reversible, it has a logical irreversibility and by Landauer's principle it is necessarily dissipative [6,8]. Logical irreversibility does not imply thermodynamic irreversibility [50] and localization by quantum measurement constitutes an example of this. Classical measurement is logically reversible (Landauer-Bennett) but quantum measurement is not. In the literature, it is somewhat mistakenly assumed as if the erasure is the only way for a logical irreversibility. However, this is not necessarily true. Resetting a memory erases any trace regarding the initial trace of the information; however, localization by quantum measurement does also the exact same operation in the context of logical irreversibility.
Information that is acquired should be independent from whether we use it or not and quantum measurement exactly does that. Independent from the usage of the information, the particle localized at a one definite side. After the localization, storing of the information can be done without any expenditure of work.
Before the localization, the particle was in both boxes at once and hence the total partition function of the system was the sum of the partition functions of the two compartments which is 2Z(L/2). After the localization particle finds itself in one of the boxes and partition function reduces to Z(L/2). After localization, free energy becomes F III = −kT ln[Z(L/2)]. This suggest that free energy change in the system is KT ln 2. Hence, measurement process causes a work input to the system which is given by, which is the lower bound for the measurement work, as the measurement device operates in a dissipationless regime. Similarly, after the localization of the particle, entropy of the system becomes S III = −ktr[ρ(L/2) ln ρ(L/2)]. We also know the entropy of the system at step II. By taking their difference, the heat dissipated is found as which is exactly the same amount of the work that is expended during the localization by measurement process. Internal energy of the system does not change during this process (U II = U III ) so that During the measurement process, S interacts with D, so work and heat exchanges happen between them through B. It should be noted that D does not exactly correspond to the Maxwell's demon, because it does not function as a memory device, its only function is quantum measurement and collapsing the particle's wavefunction.
Since we consider S and D separately, the heat dissipation appears during the measurement process which causes localization. Several authors have also argued that this actually does not contradict with Landauer's principle and the link between thermodynamics and information [50][51][52]. They claim that this discrepancy is just a matter of interpretation; however, the thermodynamic processes of the erasure-free interpretation have never been shown explicitly before in the context of quantum Szilard engine, although work cost of the operations related with the entropy change and information has also been shown [53][54][55][56][57][58][59][60][61][62][63].
Work cost of measurement has also been taken into account from purely information-theoretic point of view in the literature [50,52,55,60,61,[64][65][66][67]. In this context, extractable work from the system has mutual information term in addition to the free energy difference in the system, so that W S ext ≤ −∆F S + kTI where I is the mutual information between S and D, which is I = ln 2 in this case. The mutual information term corresponds to the work cost of measurement which is also equivalent to the net work due to entanglement [68]. Since measurement on the system increases its free energy by KT ln 2, extractable work becomes zero in a thermodynamically reversible cyclic process [50]. Hence, our localization by measurement picture is also compatible with the information-theoretic picture with mutual information.

Step III: Work Extraction by Expansion
After localizing the particle, now it is possible to extract work from the system by isothermal expansion. In Figure 6, simulation of the expansion process is shown in several steps. Particle starts with the localized volume of L/2 (Figure 6a), expands (Figure 6b,c) and the piston reaches to the end of the container (Figure 6d). This expansion can be converted into mechanical work by simple mechanisms.
The system consists only of half of the compartment in the beginning of step III, and consequently the partition function is Z(L/2) and free energy is written as F III = −kT ln[Z(L/2)]. Entropy of the system becomes S III = −ktr[ρ(L/2) ln ρ(L/2)]. In Figure 6e-g, changes in free energy, entropy and internal energy of the system during the expansion are plotted. While entropy of the system is increasing, free energy and internal energy decrease during the expansion process, which is an expected result. Expansion work can be written as and heat exchange between the S and B is Internal energy change of S during the expansion process is non-zero and negative and it is equal to ∆U ins with the opposite sign, During the expansion process, S only interacts with B and all work and heat exchanges occur between them. Figure 6. Simulation of quasistatic isothermal expansion process after the measurement and localization of the particle. (a) After the symmetric insertion of the partition, quantum measurement is performed, and the particle is localized at the left compartment. (b) Partition expands to the position of l = 14 nm, which is caused by the pressure exerted on the partition by the localized particle. (c) Expansion of the partition at l = 17 nm. (d) Partition expands to the right boundary of the container, l = 20 nm. Initial situation before the insertion is recovered. Variation of (e) Helmholtz free energy, (f) entropy and (g) internal energy with respect to partition's lateral position l in nm's.

Step IV: Removal
For the completion of the cycle, partition should be removed and the initial step (I) should be recovered. Since the wavefunction is exactly zero at the boundaries, removal of the insertion does not change any thermodynamic property of the system (F IV = F I , S IV = S I and U IV = U I ) and therefore can be done without any work and heat exchanges, as well as without a change in internal energy (W rem = 0, Q rem = 0 and ∆U rem = 0). In single-particle Szilard engine with symmetric partition removal process is trivial. On the other hand, removal work can be finite in multi-particle case or container with finite-potential well boundaries.
Changes in thermodynamic quantities at each and every component of the quantum Szilard engine for each process are summarized in Table 1. The first and second columns denote the components of the engine and differences in thermodynamic properties, respectively. Rest of the columns represent the amounts of changes (given by the equations in Section 3) in the thermodynamic properties for the steps of the cycle. It should be noted that work exchanges in the free energy row at S add up to zero, indicating that the extractable work is zero in a quantum Szilard engine. Furthermore, each row in S gives exactly zero and shows the cyclic nature of the processes. All columns add up to zero indicating that all processes in the engine are internally reversible. However, the measurement process is externally irreversible because of the nature of localization process, which relies on the collapse of the wavefunction. In this regard, localization of particle in a quantum Szilard engine brings quantum mechanics and thermodynamics into the same footing, where each of them plays their part respectively as irreversibility and heat dissipation. Demonstration of a purely quantum process obeying the Landauer's principle may have far-reaching implications and consequences in quantum-information thermodynamics, in addition to allowing the existence of demonless quantum Szilard engines.

Conclusions and Future Work
We have presented a quantum Szilard engine in the absence of a Maxwell's demon. We have showed that even though there is no explicit information processing in demonless setups, measurement still plays a role and localization of the particle at one side is the crucial step for Szilard engine's operation. Although Maxwell's demon and Szilard engine problems are used interchangeably in the literature because of the emphasis on erasure process, they can also be considered to be separate in demonless quantum Szilard engine setups. Our work reveals the role of Landauer's principle in demonless quantum Szilard engines, as we have pointed out, even if the acquisition of which-side information is irrelevant for the operation of a demonless Szilard engine, heat dissipation still takes place by another logically irreversible process, i.e., localization by quantum measurement. Therefore, Landauer's principle can save the second law when quantum-mechanical picture is taken into account in demonless Szilard engines.
In comparison with the erasure explanation, the main difference between the heat dissipation due to information erasure and due to localization by measurement is in the former "left or right" state goes back to a reference state whereas in the latter "left and right" state goes to the outcome state. Nevertheless, the localization by quantum measurement can also be interpreted by a mutual information exchange between the system and the measuring device, regardless of whether the device operates as an information-processing demon or not. With or without the Maxwell's demon, net work gain in a cyclic way is zero in Szilard engines, because of heat dissipation due to the erasure (with demon) or destruction of the entangled state during quantum measurement (without demon).
In this work, rather than concerning with the physical realizations of the Szilard engine, we have focused more on the abstract, conceptual version of it, to resolve some of the apparent problems in the case of absence of Maxwell's demon. We argue that erasure takes place at least implicitly in all demonless setups inherently because of the rectifying nature of the work extraction process, where two-way information must be converted (rectified) into one-way information. For any kind of work extraction process, some kind of rectification must be done albeit implicitly.
We have analyzed a demonless quantum Szilard engine explicitly and revealed that the localization holds the key along with Landauer's principle to save the second law and presents a complementary resolution of the quantum version of Szilard's paradox. Quantum mechanics was required for the justification of the third law of thermodynamics. Now, we have shown in this article that it also saves the second law, suggesting that quantum mechanics has strong ties in the foundations of thermodynamics and information theory. Exploration of some implications and consequences of the particular role of Landauer's principle in localization might be significant to understand more about this link.
Work and heat exchanges and changes in energy for 1D and 2D Szilard boxes are the same and it can be generalized into n-dimension straightforwardly. However, note that this will not be the case anymore, when one wants to use Fermi-Dirac or Bose-Einstein statistics. Magnitudes of quantum confinement effects will also differ in case of quantum statistics is used. Moreover, both energy level degeneracy and quantum degeneracy of the system (through chemical potential) will also play a significant role [69][70][71][72][73][74]. Asymmetric insertion of the partition and multi-particle cases are also important to address from the point of view of quantum confinement effects. For instance, removal process might not be trivial anymore in the multi-particle case. Adiabatic and sudden processes rather than quasistatic ones may add interesting features to the original problem. Extension of this work into these cases is also possible. We believe our results on quantum Szilard engine without Maxwell's demon contribute to the understanding the link between information, quantum mechanics and thermodynamics. where h is the Planck's constant. This thickness δ is derived from the thermally weighted quantum probability density distribution of a particle confined in 1D domain and contains both thermal and quantum natures of the particle(s) in an approximate and effective way, in some ways similar to the density matrix formalism. Under quantum boundary layer framework, we obtain insertion work analytically as W a ins = kT ln where a superscript denotes that the expression is analytical. Similarly, the change in internal energy during insertion process is found as One can obtain analytical expression also for heat exchange during the insertion just by Q a ins = ∆U a ins − W a ins . Please note that work (and heat) exchanges during the measurement process are just KT ln 2 (and −kT ln 2) and during the expansion process thermodynamic exchange expressions contain the insertion terms as well, in addition to KT ln 2. Therefore, by using Equations (A2) and (A3), work, heat and energy exchanges during all processes of the quantum Szilard engine cycle can be obtained analytically. These analytical expressions are valid for domain sizes as small as 8δ and start to deviate for domains smaller than that. As is seen, thermodynamic expressions can be determined just by considering the confinement geometry and quantum boundary layer δ. In this regard, a quantum Szilard engine represents one of the most concrete examples showing the success of the quantum boundary layer concept.