In this paper
AbstractIntroductionMain result: classical caseMain result: quantum caseIllustrative examplesClassical harmonic oscillatorQuantum harmonic oscillatorRemarksAcknowledgementsUse of artificial intelligenceProof Eq. (32) in the quantum caseProof of Eq. (67)ReferencesWorksPhysics and Astronomy
Ergotropy as distance from equilibrium
Abstract
We show that the ergotropy (a.k.a available energy) of a thermally isolated system is the -Wasserstein distance between two energy probability density functions. Specifically, between the energy profile of the system state, and the energy profile of its associated passive state. We prove this for both classical and quantum systems, and illustrate it with examples. Our result formalises the intuition that ergotropy is a quantifier of distance from equilibrium
Introduction
The ergotropy, a.k.a. available energy, of a thermally isolated system is the maximal amount of energy it can release as a consequence of an external time dependent driving [1, 2, 3, 4, 5]. After the extraction of ergotropy a system remains in the so-called passive state associated to the initial state [6, 7, 8, 9]. The passive state is energetically inert, namely it is such that it cannot release any energy if externally perturbed: in fact it can only absorb energy. The most prominent example is the thermal equilibrium state of canonical form . However the family of passive states is much larger and includes all states that are stationary and are characterised, just like the canonical ensemble, by the fact that the probability diminishes as the energy increases. In this regard passive sates can be understood as generalised thermodynamic equilibria.
Intuitively, the higher the ergotropy the more one expects the system to be away from its associated equilibrium state. This intuition was strongly corroborated by the recent work of Ref. [10] highlighting that the available energy of the electrons trapped in a flux tube of a collisionless plasma is highly correlated to the amount of turbolent energy transport.
Can this intuition be formalised? Namely, can ergotropy be expressed, mathematically, as some “distance” from equilibrium? Here we answer in the positive. To do so we single out the appropriate space and the proper notion of distance over said space, which coincides with the notion of ergotropy. The space is that of energy probability density functions, and the distance is the 1-Wasserstein distance over said space. Specifically, we prove that given a state , its ergotropy is the 1-Wasserstein distance between its energy profile, and the energy profile of its passive companion , namely the according equilibrium.
We prove this result for both classical and quantum systems and illustrate it with the 1D harmonic oscillator, both classical and quantum.
Main result: classical case
Given a classical system with Hamiltonian , being in a statistical state described by the probability density (here is a point in the -dimensional phase space), we ask the maximal amount of energy that can be extracted from the system by means of a cyclic variation of an external parameter.
That is, we seek the quantity
where the minimisation is carried over all symplectic diffeomorphisms in phase space. is known as the Ergotropy of , relative to . This is the classical analogue of the well-known ergotropy of a quantum system [1]. In atmospheric, plasma- and astro-physics it is known as “available energy” [4, 5, 11].
The state that reaches the minimal energy, known as the ground state, or the passive companion of , is mathematically speaking a measure preserving rearrangement of , specifically the rearrangement according to which the probability density does not increase as one moves in phase space from one point to a point of higher energy [2, 12]. Such “ergotropic rearrangement” has been shown recently [2, 12], to be given by the compact expression
where
and
is the (generalized) inverse of .1 The symbol denotes the Heaviside step function. Note that, given , is uniquely determined by , and that is a stationary state, because its Poisson brakets with are trivially null. Note that by definition is non-decreasing (in fact for any physical Hamiltonian is strictly increasing). Similarly, is non-increasing, so is non-increasing as increases.
The ergotropy of the state is thus given by the difference between the energy expectation of and that of
In order to state our main result we need the following two ingredients. First, let us introduce the energy profile of , namely the probability density that the system lies on the hyper-surface , given that it is distributed in phase space according to , namely,
Similarly, let be the energy profile of
Second, let us introduce the 1-Wasserstein distance between two normalized probability distributions, ,
where is the set of all joint probability distributions (a.k.a. “transport plans” in this context) whose marginals are and , namely , . is a proper metric on the space of distributions.
The minimisation problem (9) has a simple analytical solution in the case of probability distributions on the line () [14]:
where
denote the cumulative distribution functions.
Our main result is the following
Theorem 1 The ergotropy of is the 1-Wasserstein distance between the energy profile of , and the energy profile of
Using the energy profiles , , the ergotropy can be readily written as
where we have conventionally set the minimum of to 0. Introducing the cumulative probability functions
and integrating by parts, we get:
Note that, in the limit , it is , , therefore , but the product is indeterminate. However, because have finite first moment (because we assumed from the start that have a well defined energy expectation), it means they go to zero faster than for large . Thus, using de l’Hôpital rule, we get
On the other hand, trivially , for , therefore
Next, let’s consider the probability density () that the system is on the surface of constant energy that encloses the volume , provided it is distributed in phase space according to , namely [2]
For simplicity we shall call , the phase-volume-profiles of , respectively. We recall that, as shown in Ref. [2],
where is the overlap function
We remark that is a “doubly stochastic” conditional probability density [13], namely
This implies that (see Ref. [13], pag 99)
It is not difficult to see that energy and phase-volume profiles are linked by the change of variable :
where
is the density of states [13, 15]. In fact, we have:
where we used for a strictly increasing function . Similarly,
Therefore, choosing as the upper integration limit in Eq. (25), and making the usual change of variable , we get:
that is
This allows to replace with in Eq. (16), and obtain
Noting that the r.h.s. of the above equation is the 1-Wasserstein distance between and , Eq. (10), concludes the proof.
Main result: quantum case
In the quantum case, the ergotropy is given by
where the minimisation is over all unitary operators . The passive companion of , , is known to be given by the expression [1]:
where denote the eigenvectors of , and we adopted the convention that the eigenvalues of are ordered in non-increasing fashion while the eigenvalues, , of are ordered in non-decreasing fashion,
Accordingly, the ergotropy can be swiftly expressed as:
where
with denoting the eigenvectors of .
The energy profiles of , are given, respectively, by
They represent the probability density that a projective measurement of the observable has outcome provided the system is, respectively, in the state , . Note the analogy with the classical case, where an integral of Dirac deltas gets replaced by a discrete sum of Dirac deltas.
The following holds:
Theorem 2 The ergotropy of is the 1-Wasserstein distance between the energy profile of , and the energy profile of
Using the energy profiles, Eqs. (40),(41), the ergotropy reads exactly like in the classical case, i.e., as:
Performing the integration by parts as in the classical case, one gets to
where
are the cumulative probability functions associated to and .
Since the probabilities are linked to the probabilities by a bi-stochastic matrix, whose elements are the quantum overlaps , see Eq. (39), one can prove (see appendix) that . This allows to replace with , in Eq. (43), which concludes the proof.
Illustrative examples
Classical harmonic oscillator
Consider a 1D classical harmonic oscillator
being in the Gaussian state centered at :
Its ergotropic rearrangement is
To see that note that can be mapped onto via a translation, which is a measure preserving transformation. Specifically, , where . Furthermore, is a decreasing function of the energy, thus it is the passive companion of .
The system energy is easily calculated by means of Gaussian integrals:
Similarly the passive state energy expectation is given by
Their difference gives the ergotropy:
Note the interesting fact that it does not depend on the width of the Gaussian state. Thus the ergotropy is, so to speak, simply the energy of the center of mass of the Gaussian distribution.
Let us calculate the energy profile of the state . Using the definition in Eq. (7), we have:
To perform the integral we use the celebrated formula [15, 13]:
where denotes integration over the surface . In the case of the harmonic oscillator the surface is simply the circle of radius . Thus , where is the angular coordinate. The gradient of is , thus , on the surface. Using , we then obtain:
where is the modified Bessel function of the first kind [16].
The ground state energy profile is obtained by setting in the above expression of , which gives:
Figure 1, left panel, shows plot of for , and the according plot of , that is the energy profile. The chosen value of is . In the right panel are displayed the according cumulative functions . The total shaded area is the ergotropy of the state, amounting to . The darker shaded area, similarly is the ergotropy of the state, amounting to . Accordingly, the light shaded area is the energy difference between the states with and , which amounts to .
Figure 1. Left Panel: Energy profiles, , of Gaussian states, Eq. (48), and of their passive companion (), for a classical 1D harmonic oscillator. Right panel: according cumulative functions, , Eq. (14). All graphs plotted for .
Quantum harmonic oscillator
Consider a 1D quantum harmonic oscillator:
being in the coherent state
where denote the eigenstates of . The system’s density operator is:
Since is a pure state, its passive companion is simply the quantum mechanical ground state
The probability of finding the eigenenergy is given by the Poisson distribution:
The according energy expectation is
The probability of finding the eigenenergy in the ground state is trivially 1 if , and null otherwise:
where is the Kronecker symbol. The according energy expectation is simply the ground state energy
Thus the ergotropy amounts to
As shown in Figure 2 the cumulative functions (45,46) are, in this specific case, histograms made of bars of width 1 (except for the bar, which is of width 1/2). Accordingly, the 1-Wasserstein distance is easily written as
Figure 2. Left Panel: Energy eigenstates populations, , of coherent states, Eq. (62), of a 1D quantum harmonic oscillator. Right panel: according cumulative functions, , Eq. (45), and the cumulative function of the ground state (i.e. the curve).
As shown in the appendix, the above sum amounts to , i.e., the ergotropy, in agreement with our main result.
Remarks
Given that the ergotropy is the 1-Wasserstein distance between the two energy profiles , one might wonder whether ergotropy extraction protocols realise optimal transport plans in energy space. The answer is in the negative.
In 1D the optimal transport plan that solves the optimisation problem in Eq. (9) is given by the Monge map , meaning that the two random variables are delta-correlated [14]:
In our specific case it means that the optimal transport plan reads
However, in the present case the two random quantities are generally not delta correlated. In the classical case, the joint probability density can be inferred from the conditional probability density , Eq. (23), that the system was on the energy hypersurface that encloses the volume at the beginning, given that it is found on the energy hypersurface that encloses the volume after ergotropy extraction. Thus the joint probability density of reads:
Note that its marginals are, correctly, and , see Eqs. (22),(24). Making the usual change of variables , we get:
where we note that is typically not a function (see [17] for an example). Thus the optimal transport plan does not, in general, coincide with the actual ergotropy extraction “plan” . This is so because the ergotropic transport plan is subject to the constraint that is induced by a symplectic diffeomorphism in phase space, whereas the optimisation in Eq. (9) is merely carried over all transport plans that are compatible with the marginals .
A similar argument applies as well in the quantum case.
Acknowledgements
The sparkle that ignited the idea of this work was lit at the “Quantum Hike conference 2026”, Val D’Ayas, Italy. The author gratefully thanks the organisers (Sabrina Maniscalco, Lorenzo Maccone, Paola Verrucchi, Paolo Zanardi, Karol Życzkowski) and the sponsor (Algorithmiq) for the opportunity to participate. The author thanks Karen V. Hovhannisyan for his valuable remarks on the manuscript.
Use of artificial intelligence
This work was solely produced by the author, without any aid of artificial intelligence.
Proof Eq. (32) in the quantum case
In the quantum case the function is a histogram made of bars of variable widths and heights. The -th bar has width and height . The bars that compose the histogram have the same widths and their heights are . Because the overlaps form a bistochastic matrix, Eq. (39) implies that the distribution majorises the distribution [18], namely
where denotes the decreasing rearrangement of the distribution . Note that by definition of decreasing rearrangement, it is . Furthermore, from Eq. (37) we have . Therefore
Thus each bar of the histogram of is not higher than the corresponding bar of , meaning that .
Proof of Eq. (67)
Let
We want to prove that for . In order to do so we first show that . Noting that
we can rewrite as:
Let us take its derivative:
Furthermore, we have:
To prove it, note that for , thus in Eq. (B.1). Integrating the equation between and , with the condition , we obtain .
References
- [1]A E Allahverdyan, R Balian and Th M Nieuwenhuizen 2004 Europhys. Lett. 67 565–571
- [2]Campisi M 2026 Europhysics Letters 154 50002
- [3]Hatsopoulos G N and Gyftopoulos E P 1976 Found. Phys. 6 127–141
- [4]Gardner C S 1963 The Physics of Fluids 6 839–840 URL https://doi.org/10.1063/1.1706823
- [5]Helander P 2017 Journal of Plasma Physics 83 715830401
- [6]Lenard A 1978 J. Stat. Phys. 19 575–586
- [7]Pusz W and Woronowicz S L 1978 Comm. Math. Phys. 58 273–290 URL https://doi.org/10.1007/BF01614224
- [8]Górecki J and Pusz W 1980 Letters in Mathematical Physics 4 433–443 URL https://doi.org/10.1007/BF00943428
- [9]Daniëls H A M 1981 J. Math. Phys. 22 843–846 ISSN 0022-2488 URL https://doi.org/10.1063/1.524949
- [10]Mackenbach R J J, Proll J H E and Helander P 2022 Phys. Rev. Lett. 128 175001
- [11]Lemou M, Méhats F and Raphaël P 2012 Inventiones mathematicae 187 145–194 URL https://doi.org/10.1007/s00222–011–0332–9
- [12]Campisi M 2026 arXiv:2603.28388arxiv.org/abs/2603.28388
- [13]Campisi M 2025 Lectures on the Mechanical Foundations of Thermodynamics 2nd ed SpringerBriefs in Physics (Cham: Springer)
- [14]Vallender S S 1974 Theory of Probability and Its Applications 18 784–786 URL https://doi.org/10.1137/1118101
- [15]Khinchin A 1949 Mathematical Foundations of Statistical Mechanics (New York: Dover)
- [16]IS Gradshteyn I R 1980 Table of Integrals, Series, and Products (Elsevier Academic Press)
- [17]Campisi M 2008 Phys. Rev. E 78 051123
- [18]Sagawa T 2020 Entropy, Divergence, and Majorization in Classical and Quantum Thermodynamics SpringerBriefs in Mathematical Physics (Springer Singapore)

