Introduction

In recent times, the study of thermal devices in the quantum regime1 have gathered more attraction for research. The various systems like the quantum amplifier2, magnetic refrigerator and engines3, semiconductor4, thermoelectric generator5 and many other explore quantum laws. With the advent of quantum technology, the exploration of quantum heat engine has gathered more attraction like quantum Stirling cycle6,7. They are conventionally used in the field of technology like power engineering and cryogenics. Quantum heat engines have unfolded distinct techniques to extract work. The reason for this distinct path is quantum coherence and quantum entanglement which has no existence in the classical world. Numerous experiments to analyze quantum engine have been explored8,9. Exploration of nano-scale devices like quantum ratchet10,11, molecular motor12 and Brownian heat engine13,14 have enhanced the field of quantum thermodynamics.

The development of quantum information theory has made the study of quantum cycles interesting from an information standpoint. It was Maxwell who proposed a thought experiment15 which expressed the correlation between information and thermodynamics. But his theory raised a contradiction with the existing thermodynamic laws. It was Leo Szilard, who proposed Szilard engine16 and showed that the theory does not contradict the second law of thermodynamics. The extension of this engine in the quantum regime was proposed by Kim et al.17 which is dissimilar from the well known classical one.

Numerous quantum systems are considered for analysis of the quantum thermodynamics cycle, such as particles in a potential well18,19, harmonic oscillator20, and spin 1/2 particles system21. For example, quantum Szilard engine has been modeled using potential well. One-dimensional infinite potential well22,23 is the simplest problem in non-relativistic quantum mechanics. This exemplifies how the wave nature of the particle quantizes the energy. When we place a barrier inside the middle of the well, the single potential well gets converted to a two-chambered potential well i.e., a double potential well. The thorough analysis of this model has been shown in the work24. Now modeling relativistic heat engine using potential well is not so straightforward. As in relativistic quantum mechanics, the study of one dimensional potential well is not so straightforward. New features appear in the energy spectra due to spin and energy-momentum relation. The solution for the relativistic model of the potential well is shown while keeping in mind that ‘Klein’s paradox’ is taken care of25. Other problems that we face while we deal with the relativistic problem is the boundary conditions, which are not the same as in the case of non-relativistic problems. This is well discussed in26,27.

In this paper, we have first proposed a model which will exclusively work in the quantum regime for the relativistic scenario. So, for the analysis of the relativistic version of heat engine, we have considered one-dimensional potential well as the working substance. In the next phase of our work, we establish a bridge between the uncertainty relation of position and momentum observable of the proposed model with our well-known thermodynamic variables. So, the proposed model depicts an effective method for the analysis of the useful work without executing any measurement, but by using two reservoirs of different temperatures. The analysis of the work done by the engine has been explored from the uncertainty relation viewpoint where the incompatible observables are the position and the momentum operators of the relativistic particle in a potential well.

With the advent of quantum information theory, the analysis and importance of uncertainty relation got enriched. It has numerous applications like, quantum cryptography28,29,30, entanglement detection31,32, quantum metrology33 and quantum speed limit34,35. The thermal uncertainty relation that we have derived here is a special form of general uncertainty relation. The uncertainty relation of two observables is defined as

$$\Delta A\,\Delta B\ge \frac{\hslash }{2},$$
(1)

where A, B are two incompatible observable of the quantum regime. This relation states that no two incompatible observables can be measured with perfect accuracy in the quantum world. It can be measured with an accuracy which is of the order of Planck’s constant (\(\hslash \)). So uncertainty relation being a fundamental principle of quantum mechanics, the thermodynamic variables and models in the quantum regime needs to be bridged with this fundamental principle. Here, we have proposed a way to connect this fundamental principle with the thermodynamic engine models.

We have categorized the paper in this manner: in Section 2 we re-derive the uncertainty relation for a relativistic particle in a box using the Klein-Gordon equation. Section 3.1 is dedicated to the establishment of thermal uncertainty relation for a relativistic particle in the one-dimensional potential well of length 2L. In Section 3.2, we set-up the framework to develop the relationship between the thermodynamic variables with uncertainty relation for the relativistic particle in a potential well. Section 3.3 reveals the bound on the sum uncertainty relation for the relativistic particle from a thermal perspective. Section 3.4 is devoted to discuss the Stirling cycle and then we develop the work done and efficiency from uncertainty viewpoint. Here, in this section, we generate the bound of work and efficiency of the relativistic quantum engine from the sum uncertainty relation. We concluded the paper in Section 4 with some discussion.

Preliminaries

Revisiting uncertainty relation for relativistic particle in a potential well

Unlike the potential well problem in non-relativistic quantum mechanics, the potential well problem with a relativistic particle confined in it is not a textbook material traditionally. For our convenience we have used ‘≡’ for defining a new symbol or quantity.

Here, for the analysis, we have considered the relativistic potential well model as our working substance. The solution of the free Klein-Gordon (KG) equation36 using Feshbach-Villars formalism37 is

$$\begin{array}{rcl}{\psi }_{\vec{p}}^{\pm }(\vec{x},t) & \equiv & {A}_{\pm }(\begin{array}{l}{\phi }^{\pm }(\vec{p})\\ {\eta }^{\pm }(\vec{p})\end{array}){e}^{(\mp {E}_{p}t-\vec{p}\vec{x})/\hslash }\\ & = & {A}_{\pm }{\phi }^{\pm }(\vec{p}){e}^{(\mp {E}_{p}t-\vec{p}\vec{x})/\hslash },\end{array}$$
(2)

where ± represents the positive and negative energy solution respectively and \({E}_{p}=\sqrt{{p}^{2}{c}^{2}+{m}^{2}{c}^{4}}\), A± is the normalization constant and m, p, c is the mass, momentum and the velocity (of the order of speed of light) of the particle respectively.

The mathematical forms for \({\phi }^{\pm }(\overrightarrow{p})\) and \({\eta }^{\pm }(\overrightarrow{p})\) of Eq. (2) are given by

$$\begin{array}{rcl}{\phi }^{\pm }(\overrightarrow{p}) & \equiv & \frac{\pm {E}_{p}+m{c}^{2}}{2\sqrt{m{c}^{2}{E}_{p}}},\\ {\eta }^{\pm }(\overrightarrow{p}) & \equiv & \frac{\mp {E}_{p}+m{c}^{2}}{2\sqrt{m{c}^{2}{E}_{p}}}.\end{array}$$

The procedure we generally take to solve for a particle in a box in the relativistic case leads to ‘Klein paradox’. Klein paradox tells that the flux of the reflected plane wave in the walls of the potential well is larger than that of the incident waves. The reason behind this is the wavefunction which starts to pick up components from the negative energy states. The way to solve this paradox is to presume the mass of the system as a function of x. So it is defined as

$$m(x)\equiv \{\begin{array}{ll}m, & x\in L,\\ M\to \infty , & x\notin L,\end{array}$$

where L is the length of the potential box. So, the wave function inside the box results in

$$\Psi (x)\equiv \sqrt{\frac{2}{L}}{\phi }^{+}(p)\,\sin \,(p\,x/\hslash ).$$
(3)

Here pL = \(\hslash \) and n = 1,2, …, ∞. The quantized energy of the system takes the form

$$\begin{array}{rcl}{E}_{n} & \equiv & \sqrt{\frac{{n}^{2}{\pi }^{2}{\hslash }^{2}{c}^{2}}{{L}^{2}}+{m}^{2}{c}^{4}}\\ & \approx & m{c}^{2}+\frac{{n}^{2}{\pi }^{2}{\hslash }^{2}}{2m{L}^{2}}+\cdots ,\end{array}$$
(4)

where in the last line a small p/(mc) = \(\hslash \)/(Lmc) expansion is made. The second term arises by solving the Schrödinger equation. The mc2 term represents the rest energy, and the dots represent second and higher order terms which are being neglected for our analysis.

Now, for our purpose we consider a relativistic particle of mass m inside a one-dimensional potential box of length 2L with a bath at temperature T. We have considered the potential box of length 2L for calculation convenience when we insert a partition in the middle of the potential box. So, the wavefunction of the system for the n-th level, similar to the Eq. (3) which takes the form

$$\psi (x)=\sqrt{\frac{1}{L}}\,{\phi }^{+}(p)\,\sin \,(px/\hslash ),\,where\,p\,(2L)=n\pi \hslash .$$
(5)

So, the quantized energy of the considered system takes the form similar to Eq. (4) as

$$\begin{array}{rcl}{E}_{n} & = & \sqrt{\frac{{n}^{2}{\pi }^{2}{\hslash }^{2}{c}^{2}}{{(2L)}^{2}}+{m}^{2}{c}^{4}}\\ & \approx & m{c}^{2}+\frac{{n}^{2}{\pi }^{2}{\hslash }^{2}}{2m{(2L)}^{2}}+\cdots .\end{array}$$
(6)

Having the information about the wavefunction and the eigenvalues, we are all set to analyze the uncertainty relation of the position and the momentum operator of the system. The mathematical form of the uncertainty relation for the position and the momentum operator of the system is

$$\begin{array}{rcl}\Delta x\Delta p & \equiv & {\sigma }_{x}{\sigma }_{p}\\ & = & \frac{\hslash L}{2}\,{\phi }^{+}(p){[(\frac{1}{3}-\frac{2}{{(n\pi )}^{2}}-{\phi }^{+2}(p))\times (\frac{{\pi }^{2}{n}^{2}}{{L}^{2}}+\frac{8{m}^{2}{c}^{2}}{{\hslash }^{2}})]}^{\frac{1}{2}}\\ & \ge & \frac{\hslash }{2},\end{array}$$
(7)

where Δx2 = 〈x2〉 − 〈x2 and in the case of momentum, Δp2 can be defined similarly. The mathematical form of the expectation values of 〈x〉, 〈p〉, 〈x2〉 and 〈p2〉 for the relativistic particle confined in the potential well are

$$\begin{array}{rcl}\langle {\psi }_{n}|p|{\psi }_{n}\rangle & = & 0\\ \langle {\psi }_{n}|x|{\psi }_{n}\rangle & = & L\,{\phi }^{+2}(p)\,n=1,2,\cdots \\ \langle {\psi }_{n}|{x}^{2}|{\psi }_{n}\rangle & = & 4{L}^{2}\,{\phi }^{+2}(p)[\frac{1}{3}-\frac{1}{2{(n\pi )}^{2}}]\,n=1,2,\cdots \\ \langle {\psi }_{n}|{p}^{2}|{\psi }_{n}\rangle & = & {(\frac{\pi \hslash n}{2L})}^{2}+2{m}^{2}{c}^{2},\,n=1,2,\cdots \end{array}$$
(8)

where we have considered the wavefunction ψn as shown is Eq. (5).

Results

Thermal uncertainty relation for relativistic particle

Now, we will formulate the uncertainty relation of this system from the thermodynamic standpoint. To evaluate the thermal uncertainty relation we have to analyze the partition function of the system. The partition function38, Z, for 1-D potential well where a relativistic particle is confined in it is expressed as

$$Z\equiv \mathop{\sum }\limits_{n=1}^{\infty }\,{e}^{-\beta {E}_{n}}\approx \frac{1}{2}\sqrt{\frac{\pi }{\beta \alpha }}\,{e}^{-\beta m{c}^{2}},$$
(9)

where \(\beta =\frac{1}{{k}_{B}T}\), kB being Boltzmann’s constant and \(\alpha =\frac{{\pi }^{2}{\hslash }^{2}}{2m{(2L)}^{2}}\). The expression of Z takes this form as the product of β and α is a small quantity. The expectation of the n-th state of the system is

$$\bar{n}\equiv \frac{{\sum }_{n}\,n{e}^{-\beta {E}_{n}}}{{\sum }_{n}\,{e}^{-\beta {E}_{n}}}\approx \frac{1}{\sqrt{\pi \alpha \beta }}.$$
(10)

After the evaluation of the partition function of the system, we now have all the available resources to develop the thermal uncertainty relation for the relativistic particle in a 1-D potential well. So, to evaluate the uncertainty relation for the position and the momentum operator we have to calculate the variance of the position and the momentum operator for this system. For the evaluation of the expectation of the position operator we consider the n-th state of the system and using Eq. (8) we get

$$\begin{array}{rcl}{(\Delta X)}_{T}^{2} & \equiv & {\langle {(\Delta X)}^{2}\rangle }_{T}={\langle {X}^{2}\rangle }_{T}-{\langle X\rangle }_{T}^{2}\\ & \equiv & \frac{1}{Z}(\mathop{\sum }\limits_{n=1}^{\infty }\langle {\psi }_{n}|{X}^{2}|{\psi }_{n}\rangle {e}^{-\beta {E}_{n}}-\mathop{\sum }\limits_{n=1}^{\infty }\langle {\psi }_{n}|X|{\psi }_{n}\rangle {e}^{-\beta {E}_{n}})\\ & = & -\,\frac{2{L}^{2}}{{\pi }^{2}}{\phi }^{+2}(p)\,\frac{{e}^{-\alpha \beta }-\sqrt{\pi \alpha \beta }\times erfc(\sqrt{\alpha \beta })}{\frac{1}{2}\sqrt{\frac{\pi }{\alpha \beta }}}+\frac{4{L}^{2}}{3}{\phi }^{+2}(p)-{L}^{2}{\phi }^{+4}(p)\\ & = & -{\phi }^{+2}(p)\,\frac{4{L}^{2}\sqrt{\alpha \beta }}{{\pi }^{5/2}}\times ({e}^{-\alpha \beta }-\sqrt{\pi \alpha \beta })+{L}^{2}\,{\phi }^{+2}(p)(\frac{4}{3}-{\phi }^{+2}(p)).\end{array}$$
(11)

Here, erfc is the complementary error function39, which emerges while evaluating the expression 〈X2〉.

Similar to the expression of the dispersion relation of the position operator, the variance of the momentum operator is

$$\begin{array}{rcl}{(\Delta P)}_{T}^{2} & \equiv & {\langle {(\Delta P)}^{2}\rangle }_{T}={\langle {P}^{2}\rangle }_{T}-{\langle P\rangle }_{T}^{2}\\ & \equiv & \frac{1}{Z}\mathop{\sum }\limits_{n=1}^{\infty }\,\langle {\psi }_{n}|{P}^{2}|{\psi }_{n}\rangle {e}^{-\beta {E}_{n}}\\ & = & \frac{{\pi }^{3}{\hslash }^{2}{\bar{n}}^{2}}{8{L}^{2}}+2m{c}^{2}.\end{array}$$
(12)

So the uncertainty relation from Eqs (11) and (12), at a thermal condition for the potential well model is expressed as

$$\begin{array}{rcl}\Delta {X}_{T}\,\Delta {P}_{T} & = & \frac{\hslash }{2}{[-{\phi }^{+2}(p)\frac{4{L}^{2}\sqrt{\alpha \beta }}{{\pi }^{5/2}}\times ({e}^{-\alpha \beta }-\sqrt{\pi \alpha \beta })+{L}^{2}{\phi }^{+2}(p)(\frac{4}{3}-{\phi }^{+2}(p))]}^{1/2}\times {(\frac{8m{c}^{2}}{{\hslash }^{2}}+\frac{{\pi }^{3}{\bar{n}}^{2}}{2{L}^{2}})}^{\frac{1}{2}}\\ & \ge & \frac{\hslash }{2}.\end{array}$$
(13)

Along with the product uncertainty relation, we also evaluate the thermal sum uncertainty relation of the position and the momentum operator for the potential well problem. Here, we have calculated the sum uncertainty as we are concerned about the fact that the product uncertainty relation is unable to capture the uncertainty of the incompatible observables when the wavefunction is an eigenfunction of one of the observables. The sum of uncertainty for these observables is

$$\begin{array}{rcl}\Delta {X}_{T}+\Delta {P}_{T} & = & {[-{\phi }^{+2}(p)\frac{4{L}^{2}\sqrt{\alpha \beta }}{{\pi }^{5/2}}\times ({e}^{-\alpha \beta }-\sqrt{\pi \alpha \beta })+{L}^{2}{\phi }^{+2}(p)(\frac{4}{3}-{\phi }^{+2}(p))]}^{1/2}+\frac{\hslash }{2}{(\frac{8m{c}^{2}}{{\hslash }^{2}}+\frac{{\pi }^{3}{\bar{n}}^{2}}{2{L}^{2}})}^{1/2}\\ & \ge & \frac{\hslash }{2}.\end{array}$$
(14)

Figure 1 describes the variation of uncertainty with respect to different temperatures. The value of the uncertainty relation is almost constant for lower values of the length of the well. There is a sudden drop in the measure of uncertainty of the observables as the length of the well exceeds from 0.3 Å. The dip is more for higher values of L.

Figure 1
figure 1

The variation of sum uncertainty relation for different temperature. The dotted line is for lower and the solid line is for higher temperature.

In Fig. 2, we can see that there is almost a gradual fall in the measure of uncertainty for \(\bar{n}\) = 1. Whereas, for \(\bar{n}\) = 2, we can visualize a small change for higher values of L.

Figure 2
figure 2

This shows the variation of sum uncertainty relation for different values of n.

For the analysis of Fig. 1, we have replaced \(\bar{n}\) from Eq. 10 in the expression of Eq. 14. Whereas, for the analysis of Fig. 2, we have replaced the required term of Eq. 14 as a function of \(\bar{n}\) using Eq. 10 (for a fixed temperature ‘T = 100K’), to have a clear understanding of the dependency of the uncertainty relation with temperature and the average ‘n’.

In our model, the particle is confined to a box of length ‘2L’. The uncertainty in the position is a function of ‘L’, i.e., the particle has to be somewhere in the box. So, with the increase in length, there is an increase in the “uncertainty of position”, i.e., ΔX increases with increase in length. From the definition of Heisenberg uncertainty, the uncertainty of momentum decreases with length, as it is inversely proportional to the length. So, according to Heisenberg’s definition, the overall uncertainty remains a constant (i.e \(\hslash \)/2). Following the same ideology in case of our analysis, the “uncertainty of position” (ΔX of Eq. 11) should show more dominance over the contribution of ΔP for an increase in the length of the potential well in Eq. 14. We encounter a decrease in the “total uncertainty” for higher values of L which is depicted in Fig. 1. The reason behind this is the dominance of the first term of the expression of ΔX over the second term in Eq. 11 due to its exponential nature, which causes an overall decrease in the “total uncertainty”. We encounter the same nature in Fig. 2. The reason for this nature is obviously similar to the analysis made for Fig. 1.

Correlation of thermodynamic quantities with uncertainty of relativistic particle

As far as our knowledge, the expression of the thermodynamic quantities from uncertainty relation for a relativistic particle has not yet been provided. We have developed the relationship between the basic thermodynamic quantities with the variance of the position and the momentum operator.

The partition function38 of the system, Z, in terms of the variance by using Eq. (14) for replacing \(\bar{n}\) in Eq. (9) is expressed as

$$Z=\frac{\pi }{2}{e}^{-\beta m{c}^{2}}\,{[\frac{16c\sqrt{2mc}}{{\pi }^{3}{\hslash }^{2}}(\Delta {X}_{T}+\Delta {P}_{T}+{C}_{T})]}^{\frac{1}{2}},$$
(15)

where \({{C}}_{T}=L\phi \sqrt{(\frac{4}{3}-{\phi }^{2})}[\frac{2(\alpha \beta -\sqrt{\pi }{(\alpha \beta )}^{3/2}-1)}{{\pi }^{5/2}\sqrt{\alpha \beta }(\frac{4}{3}-{\phi }^{2})}-1]-\sqrt{2mc}\). Similarly, the internal energy of the canonical system can be evaluated using the variance of two incompatible operators. For our analysis these two incompatible operators are the position and the momentum operator. The internal energy of the system from Eq. (15) evolves to

$$\begin{array}{rcl}\langle E\rangle & \equiv & -\,\partial lnZ/\partial \beta \\ & = & m{c}^{2}+\frac{\zeta +\eta }{\pi [\frac{16c\sqrt{2mc}}{{\pi }^{3}{\hslash }^{2}}(\Delta {X}_{T}+\Delta {P}_{T}+{C}_{T})]},\end{array}$$

where ζ is expressed as \(\zeta =\frac{16c\sqrt{2mc}}{{\pi }^{3}{\hslash }^{2}}[\frac{2L\phi }{{\pi }^{5/2}\sqrt{\alpha \beta (\frac{4}{3}-{\phi }^{2})}}(\alpha -{\alpha }^{3/2}\sqrt{\pi \beta })-\frac{L\phi }{{\pi }^{5/2}{\beta }^{3/2}\sqrt{\alpha (\frac{4}{3}-{\phi }^{2})}}(\alpha \beta -\sqrt{\pi }{(\alpha \beta )}^{3/2}-1)]\) and after calculation η is conveyed as \(\eta =\frac{\frac{4{L}^{2}{\phi }^{2}}{{\pi }^{5/2}}[\sqrt{\frac{\alpha }{4\beta }}({e}^{-\alpha \beta }-\sqrt{\pi \alpha \beta })+\sqrt{\alpha \beta }(-\,\alpha {e}^{-\alpha \beta }-\sqrt{\frac{\pi \alpha }{4\beta }})]}{2{[{L}^{2}{\phi }^{2}(\frac{4}{3}-{\phi }^{2})-\frac{4{L}^{2}{\phi }^{2}\sqrt{\alpha \beta }}{{\pi }^{5/2}}({e}^{-\alpha \beta }-\sqrt{\pi \alpha \beta })]}^{\frac{1}{2}}}\).

Having the information of the link between the uncertainty relation and the partition function of the system we are set to describe all the thermodynamic variables in terms of the uncertainty relation of the position and the momentum operator of the considered system. One of the basic thermodynamic quantity is Helmholtz free energy38 ‘F’. The Helmholtz free energy for the relativistic particle in terms of the uncertainty relation is

$$\begin{array}{rcl}F & \equiv & \frac{-\,1}{\beta }lnZ\\ & = & m{c}^{2}-\frac{1}{\beta }\,ln{[\frac{4c\sqrt{2mc}}{\pi {\hslash }^{2}}(\Delta {X}_{T}+\Delta {P}_{T}+{C}_{T})]}^{\frac{1}{2}}.\end{array}$$

We know that we can define entropy from Helmholtz free energy. So, we are now able to express entropy in terms of uncertainty relation which is expressed as

$$\begin{array}{rcl}S & \equiv & -\,\frac{\partial F}{\partial T}\\ & = & {k}_{B}\,ln{[\frac{4c\sqrt{2mc}}{\pi {\hslash }^{2}}(\Delta {X}_{T}+\Delta {P}_{T}+{C}_{T})]}^{\frac{1}{2}}+\frac{\tau +\chi }{\pi \beta [\frac{16c\sqrt{2mc}}{{\pi }^{3}{\hslash }^{2}}(\Delta {X}_{T}+\Delta {P}_{T}+{C}_{T})]},\end{array}$$
(16)

where τ is expressed as \(\tau =\frac{16c\sqrt{2mc}}{{\pi }^{3}{\hslash }^{2}}[\frac{2L{k}_{B}\phi }{{\pi }^{5/2}\sqrt{\alpha \beta (\frac{4}{3}-{\phi }^{2})}}(\alpha -{\alpha }^{3/2}\sqrt{\pi \beta })-\frac{L{k}_{B}\phi }{{\pi }^{5/2}{\beta }^{3/2}\sqrt{\alpha (\frac{4}{3}-{\phi }^{2})}}(\alpha \beta -\sqrt{\pi }{(\alpha \beta )}^{3/2}-1)]\) and the form of χ after evaluation (using Eq. (14) and the definition of CT defined in Eq. (15)) is

$$\chi =\frac{\frac{4{L}^{2}{k}_{B}{\phi }^{2}}{{\pi }^{5/2}}[\sqrt{\frac{\alpha }{4\beta }}({e}^{-\alpha \beta }-\sqrt{\pi \alpha \beta })+\sqrt{\alpha \beta }(-\,\alpha {e}^{-\alpha \beta }-\sqrt{\frac{\pi \alpha }{4\beta }})]}{2{[{L}^{2}{\phi }^{2}(\frac{4}{3}-{\phi }^{2})-\frac{4{L}^{2}{\phi }^{2}\sqrt{\alpha \beta }}{{\pi }^{5/2}}({e}^{-\alpha \beta }-\sqrt{\pi \alpha \beta })]}^{\frac{1}{2}}}.$$

From Fig. 3, we can infer that the entropy of the system increases along with the increase of the uncertainty of the observables. This is true when the system is kept at a different temperature.

Figure 3
figure 3

The variation of entropy from Eq. (16) for different temperature is shown. The scattered plot is for higher temperature and the solid line is for lower temperature.

Till now entropy is the best-known measuring tool for entanglement. There is so far no standard method for the measure of entanglement for mixed states. If we can bridge a connection between these two quantities then it raises a question whether this can be a standard method for the entanglement measure.

For a given thermodynamic system, the knowledge of the Helmholtz free energy F is enough for determining all other thermodynamic variables for the given system. Here we have developed the correlation of Helmholtz free energy with the uncertainty relation of the position and the momentum operator of the relativistic particle. This helps us to overcome the explicit requirement of internal energy of the system for the analysis of quantum thermodynamic system from uncertainty viewpoint. We can also explore and develop a theory which can explain the phase transition for relativistic particles in terms of their uncertainty relation. This is an open area to explore in the near future.

Bound on sum uncertainty for relativistic model of one dimensional potential well

The thorough analysis of the product uncertainty which produce better lower and upper bound using the method proposed in previous works40,41 results to zero. So, the product of variances of the specified observables is unable to capture the uncertainty for two incompatible observables. The reason behind this result is that the state of the system is an eigenstate of one of the observables. This causes the product of the uncertainties to vanish. We can overcome this issue if we invoke the sum of variances to capture the uncertainty of two incompatible observables. For the relativistic 1-D potential well, the sum of variance of two incompatible observable which results to the lower bound is defined as

$$\Delta {A}^{2}+\Delta {B}^{2}\ge \frac{1}{2}\sum _{n}\,{(|\langle {\psi }_{n}|\bar{A}|\psi \rangle |+|\langle {\psi }_{n}|\bar{B}|\psi \rangle |)}^{2}.$$
(17)

Here we replace A by X and B by P, according to the system we have considered for our analysis. This results to the upper bound of the relation for position and momentum. It is expressed as

$$\Delta {X}^{2}+\Delta {P}^{2}\ge \frac{1}{2}\sum _{n}\,{(|\langle {\psi }_{n}|\bar{X}|\psi \rangle |+|\langle {\psi }_{n}|\bar{P}|\psi \rangle |)}^{2}.$$
(18)

We can develop the upper bound of uncertainty relation for two incompatible observables when we compute the reverse uncertainty relation. We utilize the Dunkl-Williams inequality42 to evolve the reverse relation. The mathematical form of the inequality is

$$\Delta A+\Delta B\le \frac{\sqrt{2}\Delta (A-B)}{\sqrt{1-\frac{Cov(A,B)}{\Delta A.\Delta B}}}.$$
(19)

Squaring both sides of the Eq. (19) we get

$$\Delta {A}^{2}+\Delta {B}^{2}\le \frac{2\Delta {(A-B)}^{2}}{1-\frac{{\rm{Cov}}(A,B)}{\Delta A\Delta B}}-2\Delta A\Delta B,$$
(20)

where Cov(A, B) is defined as \({\rm{Cov}}(A,B)\equiv \frac{1}{2}\langle \{A,B\}\rangle -\langle A\rangle \langle B\rangle ,\) and Δ(A − B)2 ≡ 〈(A − B)2〉 − 〈(A − B)〉2. Now, for the system which we have considered as our working substance, we calculate the reverse relation for the position and the momentum operator. So, we substitute A by X and B by P in Eq. (20) which stands as

$$\begin{array}{c}\begin{array}{rcl}\Delta {X}^{2}+\Delta {P}^{2} & \le & \frac{2\Delta {(X-P)}^{2}}{1-\frac{Cov(X,P)}{\Delta X\Delta P}}-2\Delta X\Delta P\\ & \le & 4{L}^{2}{\phi }^{+2}(p)\,(\frac{1}{3}-\frac{1}{2{(n\pi )}^{2}})+\frac{{\pi }^{2}{\hslash }^{2}{n}^{2}}{4{L}^{2}}+2{m}^{2}{c}^{2}.\end{array}\end{array}$$
(21)

In Eq. (21), we have illustrated the reverse relation of the sum uncertainty relation without taking the thermal state under consideration. Now, we evaluate the reverse sum uncertainty relation from the correlation of the thermal variables. The mathematical form for the relation stands as

$$\Delta {X}_{T}^{2}+\Delta {P}_{T}^{2}\le -\,\frac{8{L}^{2}\sqrt{\alpha \beta }}{{\pi }^{5/2}}\,{\phi }^{+2}(p)({e}^{-\alpha \beta }-\sqrt{\pi \alpha \beta })+\frac{8{L}^{2}}{3}\,{\phi }^{+2}(p)-2{L}^{2}{\phi }^{+4}(p)+\frac{{\hslash }^{2}{\bar{n}}^{2}{\pi }^{3}}{4{L}^{2}}\,+4m{c}^{2}.$$
(22)

The Eq. (22) express the upper bound of the sum uncertainty relation for our potential well model from the thermodynamic standpoint.

Relativistic Stirling cycle and bound on it’s efficiency

Here we consider the Stirling cycle for a relativistic particle. A Stirling cycle43,44,45,46, comprises of four stages, where two are isothermal processes and the other two are isochoric processes. In the first stage of the cycle, we place a barrier in the middle of the potential well isothermally, having a relativistic particle in it. The insertion of the barrier in the middle of the infinite potential well, which is represented by a delta potential, converts the single potential well to an infinite double potential well. Here, for our analysis, we consider a delta potential growing in strength from zero to a height which is large enough to prevent any tunneling through the barrier. So, it ensures us that the probability of tunneling through the barrier tends to zero if the tunneling time is more than the time required to complete the thermodynamic processes. The working medium which is connected with a hot bath (temperature T1) remains at equilibrium condition during the quasi-static insertion. An isochoric heat extraction is experienced by the working medium when connected to a bath at a temperature T2 where T2 < T1. During the next stage of the cycle, the barrier is removed isothermally. While this process is carried out, the engine remains in equilibrium at temperature T2. We observe isochoric heat absorption in the final stage of the cycle when the system is reunited to the bath at temperature T1. The pictorial representation of the cycle is shown in Fig. 4.

Figure 4
figure 4

The figure constitutes of four stages of the Stirling cycle of relativistic particle which is modeled by one dimensional potential well.

In the work24, they have analyzed work done and efficiency for the heat engine in the non-relativistic limit. Here we have first developed heat engine in the relativistic limit where the working substance is the one dimensional potential well. Following the similar methodology, we have analyzed the work done and the efficiency for the heat engine for a relativistic particle. Along with that, we develop the work done by the engine and its efficiency from the uncertainty relation viewpoint. We have considered a one dimensional potential well of length 2L with a relativistic particle of mass m at temperature T1 as the working substance for our analysis. The energy for the system is equivalent to Eq. (6). The partition function of our system is \({Z}_{A}=\mathop{\sum }\limits_{n=1}^{\infty }\,{e}^{-\beta {E}_{n}}\approx (\frac{1}{2}\sqrt{\frac{\pi }{\beta \alpha }}\,{e}^{-\beta m{c}^{2}})\). Now, when we insert a wall isothermally it converts the one-dimensional infinite potential well into an infinite double well potential. In this situation, the energy level for even values of n remain unchanged but we see a shift for the odd ones. It overlaps with their nearest neighbor energy level. The energy of the one-dimensional potential box that are created due to the partition is

$${E}_{2n}=\frac{{(2n)}^{2}{\pi }^{2}{\hslash }^{2}}{2m{(2L)}^{2}}+m{c}^{2},$$
(23)

which is evaluated by replacing n by 2n in Eq. (6). The partition function for the newly formed partitioned potential well equivalent to Eq. (9) is

$${Z}_{B}=\sum _{n}\,2{e}^{-{\beta }_{1}{E}_{2n}}.$$

The internal energy UA and UB is defined as Ui ≡ −∂lnZi/∂β1, where i = A, B and \({\beta }_{1}=\frac{1}{{k}_{B}{T}_{1}}\). So, the internal energy are

$${U}_{A}={U}_{B}=\frac{1}{2{\beta }_{1}}+m{c}^{2}.$$
(24)

During the isothermal process, the heat exchange is expressed as

$${Q}_{AB}\equiv {U}_{B}-{U}_{A}+{k}_{B}{T}_{1}ln{Z}_{B}-{k}_{B}{T}_{1}ln{Z}_{A}.$$
(25)

After the isothermal process, the system is connected to a heat bath at temperature T2. The partition function for this stage of the cycle is

$${Z}_{C}=\sum _{n}\,2{e}^{-{\beta }_{2}{E}_{2n}}.$$

In the second stage of the cycle, the heat exchanged is given by the difference of the average energies of the initial and the final states (similar to Eq. (24)). It is expressed as

$${Q}_{CB}={U}_{C}-{U}_{B}.$$
(26)

Here UC = −∂lnZC/∂β2 and \({\beta }_{2}=\frac{1}{{k}_{B}{T}_{2}}\). In the next stage of the cycle, the system remains in the bath at temperature T2 and we remove the wall isothermally. The energy for this stage of the cycle is same as given in Eq. (6). The partition function for the third stage of the cycle is

$${Z}_{D}=\sum _{n}\,{e}^{-{\beta }_{2}{E}_{n}},$$

where UD can be similarly calculated as UC. The heat exchanged for the third stage of the cycle (similar to Eq. (25)) stands as

$${Q}_{CD}\equiv {U}_{D}-{U}_{C}+{k}_{B}{T}_{2}ln{Z}_{D}-{k}_{B}{T}_{2}ln{Z}_{C}.$$
(27)

Now, in the final stage of the cycle, the system reverts back to the first stage of the cycle, i.e., the system is now connected to the heat bath at temperature T1. The energy exchange for the system when it reverts back to its initial stage is expressed as

$${Q}_{DA}={U}_{A}-{U}_{D}.$$
(28)

We calculate the total work done for this cycle in terms of the uncertainty relation of the position and the momentum operator. It is evaluated using Eqs (2528) as

$$\begin{array}{rcl}W & \equiv & {Q}_{AB}+{Q}_{BC}+{Q}_{CD}+{Q}_{DA}\\ & = & \frac{8{L}^{2}\alpha }{{\hslash }^{2}{\pi }^{2}}[f\,ln(\frac{{Z}_{B}}{{Z}_{A}})+g\,ln(\frac{{Z}_{D}}{{Z}_{C}})],\end{array}$$
(29)

where \(f=[\frac{16c\sqrt{2mc}}{{\pi }^{3}{\hslash }^{2}}(\Delta {X}_{{T}_{1}}+\Delta {P}_{{T}_{1}}+{C}_{{T}_{1}})]\) and \(g=[\frac{16c\sqrt{2mc}}{{\pi }^{3}{\hslash }^{2}}(\Delta {X}_{{T}_{2}}+\Delta {P}_{{T}_{2}}+{C}_{{T}_{2}})]\). The efficiency of this engine from the thermal uncertainty relation standpoint using Eqs (2528) is

$$\begin{array}{rcl}\eta & \equiv & 1+\frac{{Q}_{BC}+{Q}_{CD}}{{Q}_{DA}+{Q}_{AB}}\\ & = & \frac{({\bar{n}}_{{T}_{2}}^{2}\,ln(\frac{{Z}_{D}}{{Z}_{C}})+{\bar{n}}_{{T}_{1}}^{2}\,ln(\frac{{Z}_{B}}{{Z}_{A}}))}{(-\,{\bar{n}}_{{T}_{2}}^{2}/2+{\bar{n}}_{{T}_{1}}^{2}(ln(\frac{{Z}_{B}}{{Z}_{A}})+1/2))}\\ & = & \frac{[g\,ln(\frac{{Z}_{D}}{{Z}_{C}})+f\,ln(\frac{{Z}_{B}}{{Z}_{A}})]}{[-\,g/2+f(ln(\frac{{Z}_{B}}{{Z}_{A}})+1/2)]}\,.\end{array}$$
(30)

In Eq. (30), we have evaluated the upper and the lower bound of the efficiency with respect to the bound that we have analyzed for the thermal uncertainty relation of the position and the momentum operator. Here, f and g provides the required uncertainty relation for the explanation of the bound of the efficiency. We can evaluate the lower bound of f and g in the Eqs (30) from (17) and its upper bound from Eq. (20).

Here, we have evaluated the relation between the efficiency of a heat engine for a relativistic particle with the variance of position and momentum operator. The upper bound of the efficiency of the heat engine is monotonously decreasing function with the increase in temperature. From Fig. 5, we can infer that the variation of the lower bound with uncertainty is less for lower values of uncertainty, but there is a sudden dip when there is an increase in the uncertainty measure. The upper and lower bound of the efficiency of the heat engine predicts the same rate of accuracy when the uncertainty takes higher value.

Figure 5
figure 5

The efficiency bound for a relativistic model of heat engine.

With the increase in the uncertainty, the conversion ratio of the heat engine decreases as the thermal energy of the system is directly proportional to the uncertainty of the system. In the case of the upper bound of the efficiency which is depicted in terms of the uncertainty relation defined in Eq. 22, the decrease in the efficiency is more prominent due to the presence of the exponential component which causes exponential growth in the thermal energy of the engine and the dissipated heat over the work output. Whereas in the case of the lower bound we encounter a small variation of the efficiency for the lower value of the uncertainty. This can be easily analyzed from Eq. 18 where we encounter no exponential component which can depict a dominant effect on the thermal energy of the engine. If we equate the lower bound of the efficiency with the upper bound of the efficiency we encounter that it converges at high uncertainty. This show that for higher values of uncertainty the conversion ratio of the thermal energy to work reduces rapidly due to the steep growth in the thermal energy with higher uncertainty.

Discussion and Conclusion

Heat engine plays a key role for a better comprehension of quantum thermodynamics. In this work, we have considered a potential well model with a relativistic particle confined in it, which acts as the working substance for the heat engine. Whether this can be globally extended to all the models that are considered for the analysis of heat engines and refrigerators is an open area to explore.

We have given the analytic formulation of the work and efficiency of the engine in terms of the thermal uncertainty relation. Based on our formulation, the physical properties of the heat engine and the thermodynamic variables are as follows.

  1. (a)

    The total work and the efficiency of the heat engine for the relativistic particle depends on the position and momentum of the particle. The variation in the uncertainty relation of the position and the momentum of the particle has a direct impact on the efficiency rate and the work of the engine. The upper bound of the efficiency of the engine drops gradually when the uncertainty of the observable increases, whereas the lower bound of the efficiency decreases when the variation in the uncertainty relation is high.

  2. (b)

    Our formulation develops a direct connection of every quantum thermodynamic variable with the uncertainty relation. Helmholtz free energy for this relativistic system conveys the dependence of the internal energy of the system with the thermal uncertainty relation. The entropy which can be evaluated from Helmholtz free energy thus has a dependency on the uncertainty relation. The entropy of the system increases when the uncertainty of the incompatible observables increases for a definite temperature.

  3. (c)

    The uncertainty relation is the cornerstone of quantum mechanics. Hereby applying this fundamental principle of quantum mechanics, we are able to predict the efficiency and the total work of the engine without performing any measurement. So, the measurement cost for the system gets reduced when we replace the classical model by a suitable quantum model, as has been done in this work.

All the well-known methods for the measurement of entanglement converges to the analysis of entropy47. Now, if the system that is being analyzed can be modeled with a quantum model, we can study the entanglement property from the uncertainty relation viewpoint for the system. If this method can explain the relativistic entanglement property, then this can act as a standard measure of entanglement. This might be a solution to the open problem of entanglement measure. A parallel analysis of our defined model for the non relativistic regime is shown in our work48.

This work can be further extended in the analysis of quantum engine in deformed space structures49,50,51 through the relationship of generalized uncertainty relation (GUP) with the thermodynamic variables. In the paper52, the non-commutativity of the kinetic energy and the potential energy of quantum harmonic heat engine has been explored in great detail. So, analysis of heat engine in the deformed space structures40 is an open problem to explore in near future.

Enhancement of entanglement in non-commutative space has been explored in details53,54. This raises a question whether deformed space structure can give a boost to the quantum engines under study. The holographic interpretation of entanglement entropy of anti-de Sitter (ADS)/conformal field theory (CFT) has been explored in the paper55. We can explore this from uncertainty viewpoint.

One can also bridge a connection between the relativistic heat engines with the relativistic condensed matter physics. In some of the previous works56,57,58,59,60, several approaches to design materials for non-relativistic engines and refrigerators are explored. Thus, it may also be possible to design materials for the analysis of the relativistic engines using the relativistic density functional theory61,62,63,64,65,66. Cycles, when accompanied by the quantum phase transition, have a direct impact on the thermodynamic performance67. So, one possible application of our work could be to develop a connection between the uncertainty relations associated with the thermodynamics cycles with the quantum phase transition.

The study of other thermodynamic cycles along with the analysis for developing the bound for different thermodynamic parameters is a wide open area to explore. Here, we have shown that entropy can be mapped with the uncertainty relation. This raises a question whether all thermodynamic variables and cycles can be mapped with the uncertainty of the observables for the working system under consideration.