## Abstract

The non-equilibrium dynamics of quantum many-body systems is one of the most fascinating problems in physics. Open questions range from how they relax to equilibrium to how to extract useful work from them. A critical point lies in assessing whether a system has conserved quantities (or ‘charges’), as these can drastically influence its dynamics. Here we propose a general protocol to reveal the existence of charges based on a set of exact relations between out-of-equilibrium fluctuations and equilibrium properties of a quantum system. We apply these generalised quantum fluctuation relations to a driven quantum simulator, demonstrating their relevance to obtain unbiased temperature estimates from non-equilibrium measurements. Our findings will help guide research on the interplay of quantum and thermal fluctuations in quantum simulation, in studying the transition from integrability to chaos and in the design of new quantum devices.

## Introduction

Einstein famously vouched for the enduring success of thermodynamics ‘within the framework of the applicability of its basic concepts’ stemming from the simplicity of its premises and breadth of its scope^{1}. From its birth as a practical science in the cradle of the industrial revolution^{2} to modelling thermal fluctuations in biological processes through fluctuation relations (FRs)^{3,4}, thermodynamics constitutes one of the most successful theories to understand nature. The increasing degree of control on meso- and nano-scopic systems has driven interest into the field of quantum thermodynamics to describe phenomena where both quantum effects and finite-size fluctuations are apparent^{5}. Important findings so far range from generalised Carnot bounds on the efficiency of quantum heat engines^{6,7,8} to quantum versions of the classical FRs—i.e., quantum FRs (QFRs)—for processes starting in a canonical equilibrium state^{9}. According to the principles of quantum statistical mechanics, such a state is characterised by a single parameter, the inverse temperature *β*, which also plays a special role in the QFRs (see ref. ^{10} and references therein).

The dynamics of an important number of quantum systems, however, eludes this approach. Integrable quantum systems, for instance, feature a large number of conserved quantities, or ‘charges’, which effectively constrain the phase space that the system can explore in its dynamic evolution^{11}. Notable models with charges include the one-dimensional Hubbard model^{12}, the Dicke model^{13,14} and the super-symmetric *t*-*J* model^{15}, to name a few. The existence of charges leads sometimes to striking experimental observations such as the practically dissipationless dynamics of the quantum Newton’s cradle^{16}, which stems from the (infinitely many) charges of the Lieb–Liniger model. On other occasions, however, their existence is far from obvious. For instance, it is only recently that a whole set of quasi-local charges in XXZ model were discovered^{17,18,19} as result of a discrepancy observed between numerical simulations of the model and estimates based on the Mazur bound^{20}.

It is a critical task of quantum many-body physics to develop methods to confidently ascertain whether a quantum system features such charges, especially when these may be difficult to measure directly. Unfortunately, the Mazur bound is only sensitive to charges with a non-zero overlap with the current operator, which implies it cannot serve as a general witness to unveil all charges in a generic quantum many-body system. It is thus necessary to develop more general systematic methods to explore the existence of unknown conserved charges in quantum many-body systems.

Here we introduce an approach to this problem based on a statistical analysis of arbitrary non-equilibrium measurements of the system of interest. In short, we demonstrate that non-equilibrium measurements on a quantum many-body system are more sensitive to the existence of charges than equilibrium ones, and describe a protocol that exploits this sensitivity to reveal the existence of charges that restrict the dynamics in any degree of freedom of the system. To this end, we first provide a theory that completely characterises the non-equilibrium fluctuations of quantum systems with conserved quantities. Specifically, we present generalised versions of the Tasaki–Crooks relation (TCR)^{21} and the quantum Jarzynski equality (QJE)^{22,23,24} suitable to describe fluctuations in systems with an arbitrary, and possibly variable, number of charges. Then, we show how these results open the door to determining from experimental measurements the existence of hitherto unknown charges. We also discuss how this can improve the accuracy, e.g., of temperature measurements. Finally, we illustrate our results with simulations of the Dicke model^{13, 14}, a well-known many-body model that features a single charge and which can be realised in current experimental platforms.

## Results

### Theoretical framework

The quantum statistical description of systems with charges can be reliably built on Jaynes’ information theory formulation of statistical mechanics^{25}. In this approach, a new statistical ensemble, the generalised Gibbs ensemble (GGE), has been proposed^{26} to incorporate the constraints on the known values of the charges to the equilibrium state via the maximum entropy principle (see also ref. ^{27}). In the GGE, the equilibrium state of a system with Hamiltonian $\u0124$ is given by a density matrix of the form

where $\mathcal{Z}\equiv \mathcal{Z}\left(\overrightarrow{\beta},\u0124,\left\{{\widehat{M}}_{k}\right\}\right)$ = $\mathrm{Tr}\left[\mathrm{exp}\left(-\beta \u0124-{\sum}_{k}{\beta}_{k}{\widehat{M}}_{k}\right)\right]$ is the partition function, and the operators associated with the charges, ${\widehat{M}}_{k}$, satisfy $\left[{\widehat{M}}_{k},\u0124\right]=0$, for *k* = 1, …, $\mathcal{N}$, with $\mathcal{N}$ the number of charges of the system, see Fig. 1a. (Below, we will assume the charge operators commute with each other, which enables measuring them simultaneously.) The generalised inverse temperatures, $\overrightarrow{\beta}=\left(\beta ,{\left\{{\beta}_{k}\right\}}_{k=1}^{\mathcal{N}}\right)$, are fixed by requiring that averages over ${\widehat{\rho}}_{\mathrm{GGE}}$ reproduce the known average values of the energy, $\u27e8\u0124\u27e9\equiv \mathrm{Tr}\left[\u0124{\widehat{\rho}}_{\mathrm{GGE}}\right]=\overline{E}$, and charges, $\u27e8{\widehat{M}}_{k}\u27e9={\overline{M}}_{k}$. A crucial open question springing from Eq. (1) is the identification of all charges ${\widehat{M}}_{k}$ relevant to the dynamics of the system. The usual approach consists in the study of equilibrium expectation values of certain observables. However, this approach suffers from a number of caveats and difficulties, like the very need of measuring a large number of observables, or the existence of particular observables that may not thermalise (see Supplementary Note 1 for more details). We show below that measurements in non-equilibrium processes are highly sensitive to the existence of charges, and how one can use them to reveal the presence of conserved quantities in the equilibrium state.

### Generalised QFRs

We study the energy fluctuations of a system with charges by considering two processes (forward (FW) and backward (BW)) that take the system away from initial equilibrium states (Fig. 1a). Each process is a four-step protocol similar to the two-projective-measurement (TPM) protocol utilised to derive the standard QFRs^{28}.

In the FW process, the system is (i) prepared in the equilibrium state corresponding to Hamiltonian $\u0124$. If this Hamiltonian features a number $\mathcal{N}$ of charges, this state can be written in the form of Eq. (1) with $\mathcal{N}$ + 1 parameters $\overrightarrow{\beta}$ = {*β*, *β*_{1}, …, ${\beta}_{\mathcal{N}}$}. We build a basis of the Hilbert space with eigenvectors $\u2223\overrightarrow{i}\u27e9$ = $\u2223{i}_{0},{i}_{1},\dots ,{i}_{\mathcal{N}},\eta \u27e9$, where the quantum number *i*_{0} identifies the energy eigenvalue, $\u0124\u2223\overrightarrow{i}\u27e9={E}_{{i}_{0}}\u2223\overrightarrow{i}\u27e9$, and *i*_{
k
} similarly labels the eigenvalues of ${\widehat{M}}_{k}$ through ${\widehat{M}}_{k}\u2223\overrightarrow{i}\u27e9={M}_{k,{i}_{k}}\u2223\overrightarrow{i}\u27e9$ (*k* = 1, …, $\mathcal{N}$); *η* contains the additional quantum numbers required to fully determine a basis state. After this preparation stage, (ii) at time *t* = 0 one performs simultaneous projective measurements of $\u0124$ and ${\widehat{M}}_{k}$ on the system, obtaining definite values for its energy, ${\mathcal{E}}_{\mathrm{ini}}$ ∈ {*E*_{
i
}}, and the other observables, ${\mathcal{M}}_{k,\mathrm{ini}}\in \left\{{M}_{k,{i}_{k}}\right\}$. (iii) In the third step, the system is driven out of equilibrium by steering its Hamiltonian in a time-dependent process, $\u0124\mapsto \u0124\left(t\right)$, for times 0 < *t* < *τ*. This defines a unitary time-evolution operator $\xdb\left(t\right)$ as the solution of $i\hslash {\partial}_{t}\xdb\left(t\right)=\u0124\left(t\right)\xdb\left(t\right)$, with $\xdb\left(0\right)=\mathbb{I}$, the identity operator on the system’s Hilbert space $\mathcal{H}$. Finally, (iv) at time *t* = *τ*, the system is projected on the eigenbasis of the instantaneous Hamiltonian, $\u0124\prime =\u0124\left(\tau \right)$. In general, the operators ${\widehat{M}}_{k}$ will not commute with $\u0124\left(t\right)$ for *t* > 0, and we denote the set of charges that commute with $\u0124\prime $ as $\left\{{\widehat{M}}_{l}^{\prime}\right\}$(*l* = 1, …, $\mathcal{N}\prime $). Assuming that these operators commute with each other, this second projective measurement provides the quantities ${\mathcal{E}}_{\mathrm{fin}}\prime $ and $\left\{{\mathcal{M}}_{l,\mathrm{fin}}^{\prime}\right\}$, each belonging to the spectrum of the corresponding operator, in full analogy to the situation at *t* = 0. Thus, at the end of a single realisation of the FW process, one has collected the data set ${\mathcal{D}}_{\mathrm{FW}}$ = $\left\{{\mathcal{E}}_{\mathrm{ini}},\left\{{\mathcal{M}}_{k,\mathrm{ini}}\right\};{\mathcal{E}}_{\mathrm{fin}}^{\prime},\left\{{\mathcal{M}}_{l,\mathrm{fin}}^{\prime}\right\}\right\}$ associated to the parameters $\overrightarrow{\beta}$ of the initial state Eq. (1).

The complementary BW process starts by preparing the system in an equilibrium state of the Hamiltonian $\u0124\prime $ (Fig. 1a). In accordance with the preceding discussion, this state will be of the GGE form with $\mathcal{N}\prime $ + 1 parameters, $\overrightarrow{\beta}\prime $ = $\left\{{\beta}^{\prime},{\beta}_{1}^{\prime},\dots ,{\beta}_{\mathcal{N}\prime}^{\prime}\right\}$. At time *t* = 0, the system is projected on the basis $\u2223\overrightarrow{f}\prime \u27e9$ of simultaneous eigenvectors of $\u0124\prime $ and ${\widehat{M}}_{l}^{\prime}$, obtaining the values ${\mathcal{E}}_{\mathrm{ini}}^{\prime}$ and $\left\{{\mathcal{M}}_{l,\mathrm{ini}}^{\prime}\right\}$ for the corresponding observables. The system then evolves under the time-reversed protocol ${\xdb}^{-1}\left(t\right)$ for 0 < *t* < *τ*, so that at time *τ* its Hamiltonian is $\u0124$. A projective measurement on the final instantaneous eigenbasis provides values ${\mathcal{E}}_{\mathrm{fin}}$ and $\left\{{\mathcal{M}}_{k,\mathrm{fin}}\right\}$ for the energy and other observables. A single realisation of the BW protocol thus gives a data set ${\mathcal{D}}_{\mathrm{BW}}$ = $\left\{{\mathcal{E}}_{\mathrm{ini}}^{\prime},\left\{{\mathcal{M}}_{l,\mathrm{ini}}^{\prime}\right\};{\mathcal{E}}_{\mathrm{fin}},\left\{{\mathcal{M}}_{k,\mathrm{fin}}\right\}\right\}$ associated to the parameters $\overrightarrow{\beta}\prime $ of the BW initial state.

With the data sets ${\mathcal{D}}_{\mathrm{FW}}$ and ${\mathcal{D}}_{\mathrm{BW}}$ we build two (dimensionless) work-like quantities

Due to the projective nature of the measurements, both these quantities are stochastic variables, and their statistics can be described through probability distribution functions (PDFs), ${\mathcal{P}}_{\mathrm{FW}}$ and ${\mathcal{P}}_{\mathrm{BW}}$, associated respectively to the FW and BW processes. We find that although the initial states of the two processes are independent, and may feature different numbers of charges and generalised inverse temperatures, these PDFs are not independent, but obey the following relation (see Methods):

where $\mathcal{Z}\prime $ = $\mathcal{Z}\left(\overrightarrow{\beta}\prime ,\u0124\prime ,\left\{{\widehat{M}}_{l}^{\prime}\right\}\right)$ is the equilibrium partition function of the initial state of the BW process. By introducing (dimensionless) generalised free energy functions as $\mathcal{F}$ = −ln $\mathcal{Z}$ and $\mathcal{F}\prime $ = −ln $\mathcal{Z}\prime $, the right-hand side (r.h.s.) of Eq. (4) becomes exp($\mathcal{W}$ − Δ$\mathcal{F}$), with Δ$\mathcal{F}$ = $\mathcal{F}\prime $ − $\mathcal{F}$. Equation (4) is the generalisation of the TCR to systems with arbitrary numbers of charges associated to each equilibrium state, and to out-of-equilibrium processes that change the number of charges.

If we multiply both sides of Eq. (4) by ${\mathcal{P}}_{\mathrm{BW}}$(−$\mathcal{W}$) and integrate over $\mathcal{W}$, we get

which is a generalisation of the QJE for systems with charges. Here we remark a qualitative difference between Eqs. (4) and (5). While the TCR relates the outcomes of driving processes starting in two different initial states, the QJE applies to a single system driven out of an equilibrium characterised by parameters $\overrightarrow{\beta}$. The apparent dependence on $\overrightarrow{\beta}\prime $ of Eq. (5) in fact shows that this equation relates an initial equilibrium state to all possible GGE-like states of the final Hamiltonian: for each possible set of ‘final’ equilibrium parameters $\overrightarrow{\beta}\prime $, the numerical values on the left-hand side (l.h.s.) and the r.h.s. of Eq. (5) will differ, but the equality will hold as long as the initial state is of the GGE form, Eq. (1). In this sense, the $\overrightarrow{\beta}\prime $ dependence in Eq. (5) is irrelevant, and one can test its validity taking, e.g., $\overrightarrow{\beta}\prime =\overrightarrow{\beta}$. This agrees with the intuition that by driving the system out of equilibrium we can obtain information on its initial equilibrium state (i.e., $\overrightarrow{\beta}$), but we cannot give physical meaning to the values of $\overrightarrow{\beta}\prime $ in Eq. (5). (The physics of Eqs. (4) and (5) is further discussed in Supplementary Note 2.)

More generally, consider the following scenario in which one of the constants of motion, say ${\widehat{M}}_{m}$, commutes with the time-dependent Hamiltonian and with all the other charges at all times. Then, the time-dependent Hamiltonian can be set in a block-diagonal form, with different blocks corresponding to the different eigenvalues of this operator, and the values of ${\widehat{M}}_{m}$ measured at the start and end of the TPM protocol must be identical. In this case, let us introduce a marginal generalised work ${\mathcal{W}}_{m}$ by ${\mathcal{W}}_{m}\equiv \beta \prime {\mathcal{E}}_{\mathrm{fin}}$ + ${\sum}_{l\ne m}{\beta}_{l}^{\prime}{\mathcal{M}}_{l,\mathrm{fin}}^{\prime}$ − $\left(\beta {\mathcal{E}}_{\mathrm{ini}}+{\sum}_{k\ne m}{\beta}_{k}{\mathcal{M}}_{k,\mathrm{ini}}\right)$. The corresponding PDF, ${\mathcal{P}}_{\mathrm{FW}}^{\left(m\right)}\left({\mathcal{W}}_{m}\right)$, satisfies a marginal version of the generalised TCR (see Methods):

We show below how this result can be used to check whether a particular observable does or does not change in a non-equilibrium process without measuring it.

### Revealing missing charges

We now discuss how Eqs. (4)–(6) underlie novel strategies for two applications: (i) to reveal hidden conserved charges, and (ii) to check whether a particular observable of difficult experimental access does or does not change during a quantum non-equilibrium protocol. Next, we will illustrate this in practice through numerical studies of a trapped-ion quantum simulator.

The key realisation is that the r.h.s. of Eqs. (4)–(6) is determined solely by equilibrium properties pertaining to the initial states of the FW and BW processes, respectively, while the l.h.s. relates to measurement outcomes of non-equilibrium processes starting from those initial states, obtained via the TPM protocol. We can then check the completeness of the set of known charges by running the TPM protocol with a number, ${\mathcal{N}}_{\mathrm{prot}}$, of different protocols $\xdb$ (corresponding, for instance, to different durations *τ*). The experimental data corresponding to the ${\mathcal{N}}_{\mathrm{prot}}$ protocols provide different values for the l.h.s. of the generalised QJE, Eq. (5). As discussed above, these values depend physically on the $\mathcal{N}$ + 1 parameters $\overrightarrow{\beta}$ of the initial GGE state. The fact that all these expressions must equal the same single value on the r.h.s. entails a set of ${\mathcal{N}}_{\mathrm{prot}}$ (non-linear) equations for $\mathcal{N}$ + 1 unknowns. If we can find values for $\overrightarrow{\beta}$ that satisfy these equations, then we have accounted for all the charges required to describe the non-equilibrium dynamics of the system induced by $\xdb$; on the other hand, failure to find a satisfactory set of parameters points that more charges need to be included. A similar argument can be made based on the generalised TCR (4), to check whether all the charges in both FW and BW initial states have been accounted for. (Generally, the TCR depends on the $\mathcal{N}$ + $\mathcal{N}\prime $ + 2 parameters $\left\{\overrightarrow{\beta},\overrightarrow{\beta}\prime \right\}$ characterising the FW and BW initial states. In practice, the number of required experiments can be notably reduced, e.g., by putting the system in contact with the same bath at the start of both FW and BW processes, so that $\overrightarrow{\beta}=\overrightarrow{\beta}\prime $, in which case only $\mathcal{N}$ + 1 unknowns need to be determined.) We note in addition that these completeness tests do not require prior knowledge of the inverse temperatures characterising the initial states; however, if we do have a reliable preliminary estimate of the inverse temperatures, this test allows to verify this estimate, or to conclude that the number of known charges is insufficient as soon as inconsistencies with Eqs. (4) and (5) emerge.

As a complement, Eq. (6) enables us to assess whether an operator that is known to commute with a Hamiltonian $\u0124$ does, or does not, change in a non-equilibrium procedure without measuring it, i.e., it enables to determine whether a non-equilibrium procedure transforms a charge into a dynamical variable. To see this, let us imagine that we are interested to know whether a certain observable of difficult experimental access, ${\widehat{M}}_{m}$, is or not perturbed by a certain class of non-equilibrium protocols. To assess this, we perform a set of FW and BW protocols, excluding ${\widehat{M}}_{m}$ from the TPM measurements, and calculate the marginal work ${\mathcal{W}}_{m}$. With these values, we build the associated PDFs, ${\mathcal{P}}_{\mathrm{FW}}^{\left(m\right)}$ and ${\mathcal{P}}_{\mathrm{BW}}^{\left(m\right)}$. If we can find values of $\overrightarrow{\beta}$ and $\overrightarrow{\beta}\prime $ without *β*_{
m
} such that the r.h.s. of Eq. (6) matches the data on the l.h.s., then the contributions of ${\widehat{M}}_{m}$ to $\mathcal{F}$ and $\mathcal{F}\prime $ must cancel one another in Δ$\mathcal{F}$, i.e., ${\widehat{M}}_{m}$ has remained constant throughout the process. Otherwise, ${\widehat{M}}_{m}$ cannot have the same value at the start and end of the protocol, i.e., ${\widehat{M}}_{m}$ is a dynamical variable in the process.

### Application to a trapped-ion quantum simulator

Our generalised QFRs are valid for arbitrary unitary non-equilibrium processes, $\xdb$, applied to quantum systems with conserved quantities^{16,29,30,31}. In the following, we illustrate their implications in the context of a trapped-ion experiment realisable with current technology^{32,33,34,35}. First, we show that this system can be described by a Hamiltonian with a single charge. We then report numerical evidence showing how measurements of its work statistics in generic non-equilibrium protocols would violate the standard QJE and TCR—and how they agree with the predictions of our generalised QFRs. The fact that this model features a single charge makes it an especially attractive test ground, as this makes experimental tests of our generalised QFRs far more accessible than other models that would in principle require measurements on an infinite number of charges, such as the XXZ model.

We consider *N* ^{43}Ca^{+} ions in an ion trap^{32,33} (Fig. 1b). Each ion can be described as a two-level system with internal states corresponding to two Zeeman levels within the ground ^{2}*S*_{1/2} electronic state, whose energy splitting, *ħω*_{at}, can be controlled by an external bias magnetic field^{32,33}. The motional state of the ions in the trap is characterised by *N* − 1 collective modes in each direction^{36}. Among these, we focus on the centre-of-mass (COM) mode, which couples identically to all ions and whose eigenfrequency, *ω*_{
COM
}, is of the order of the trap’s oscillator frequency^{36}. Internal and motional states can be coupled by light fields of frequency *ω* close to *ω*_{±} = *ω*_{at} ± *ω*_{COM}, the blue (+) and red (−) motional sidebands. The Hamiltonian describing the dynamics of this system can be written in the form (see Methods and refs.^{35,37,38,39})

where ${\widehat{b}}^{\u2020}$ and $\widehat{b}$ are the operators creating and annihilating excitations in the COM mode, and ${\u0134}_{s}$ (*s* = *z*, +, −) are Schwinger spin operators describing the internal state of all the ions, with *J* = *N*/2. In Eq. (7) we have introduced *g* = (*Ω*_{rsb} + *Ω*_{bsb})/2 and *α* = *Ω*_{bsb}/(*Ω*_{rsb} + *Ω*_{bsb}), with *Ω*_{bsb(rsb)} the Rabi frequency characterising the coupling of internal and motional states through the first blue (red) motional sideband; these are functions of the light intensity at frequency *ω*_{±}, respectively^{35,36}. The Hamiltonian Eq. (7) is exactly that of the Dicke model^{13,14}. For *α* = 0, it reduces to the Tavis–Cummings model, which is integrable and has an additional conserved quantity, $\widehat{M}=\u0134+{\u0134}_{z}+{\widehat{b}}^{\u2020}\widehat{b}$ (see Methods and Supplementary Note 3). Thus, the dynamics of this system starting from an equilibrium state will be governed by our generalised QFRs. This can be verified by extending the filtering method^{34,40} used to verify the standard QJE^{34}, to account for the internal structure of the ions in the Dicke model, so as to determine the initial and final energy values; indeed, as the spectrum of the Dicke model is non-degenerate, an energy measurement provides both $\mathcal{E}$ and $\mathcal{M}$. Additionally, the PDF of standard work can be obtained without projective measurements by utilising an ancilla qubit^{41,42,43}.

In order to assess the existence of charges, we drive the system out of equilibrium. For simplicity, we consider a series of sudden quenches in space {*g*, *α*}; experimentally, these quenches correspond to changes in the intensities of the lasers realising the sideband couplings on a timescale much shorter than ${\omega}_{\mathrm{COM}}^{-1}$. We consider in particular the FW protocol {*g*_{ini}, 0} → {*g*_{int}, 1/2} → {*g*_{fin}, 0}, with the system remaining in the intermediate stage for a variable time *τ* (Fig. 1c); this duration plays the role of the parameter *τ* characterising the ${\mathcal{N}}_{\mathrm{prot}}$ protocols in the procedure to reveal missing charges described above.

The choice *α* = 0 at *t* ∈ {0, *τ*} ensures that $\widehat{M}$ commutes with both $\u0124$ and $\u0124\prime $. Hence, the initial equilibrium state of FW and BW processes will be of the GGE form with specific values for the inverse temperatures related to $\u0124$ and $\widehat{M}$, which we label *β* and *β*_{
M
} (for concreteness, we analyse here the case that $\overrightarrow{\beta}\prime =\overrightarrow{\beta}$; see Supplementary Note 2 for a discussion on this choice). However, in the intermediate stages *α* = 1/2, which implies that there are no charges during an important part of the process. We will see that it is nevertheless possible to determine whether the system had a conserved quantity at the start of the process. (Additional simulations in Supplementary Note 4 for a process ending in *α* = 1/2, i.e., where $\widehat{M}$ and $\u0124\prime $ do not commute, support analogous conclusions, see Supplementary Fig. 1.)

We show in Fig. 2a the average exponentiated work performed on the system by a FW process as a function of duration *τ*. We compare the results using standard work, ${\u27e8\u27e8\mathrm{exp}\left(-{\beta}_{w}\right)\u27e9\u27e9}_{\mathrm{FW}}$, to those with generalised work ${\u27e8\u27e8\mathrm{exp}\left(-\mathcal{W}\right)\u27e9\u27e9}_{\mathrm{FW}}$. We see that the standard work average varies by up to 40% for durations *τ* ≳ 0.1 μs. This *τ* dependence indicates that the standard work is no longer the relevant magnitude in non-equilibrium processes: there is one (or more) missing charge(s) whose fluctuations need to be taken into account to describe the measurement outcomes. In contrast to this, the average of generalised work including $\widehat{M}$ remains constant for all *τ*; it thus follows from Eq. (5) that this definition of $\mathcal{W}$ includes all the relevant charges of the system.

Notably, the two averages agree with each other for short processes, *τ* < 0.1 μs. This reflects that, at short times, $\widehat{M}$ remains approximately constant and a marginal TCR is expected to hold. Importantly, however, both averages agree with the prediction of the generalised QFRs, i.e., exp(−Δ$\mathcal{F}$), while the expectation that excludes ${\beta}_{M}\widehat{M}$ (dashed line) is off by 20%. In practice, this means that a nave fit of the $\u27e8\u27e8\mathrm{exp}\left(-{\beta}_{w}\right)\u27e9\u27e9$ data to exp (−*β*Δ*F*) would yield a biased value for *β*, i.e., a wrong estimate of the initial temperature of the system. Generally, use of the standard QFRs will provide biased estimates if the system has charges. Figure 2b support analogous conclusions for the case *β*_{
M
} < 0.

The relevance of charge fluctuations in the non-equilibrium dynamics becomes apparent in Fig. 2c–f, which portray the statistics of standard and generalised work under driving protocols with *τ* = 1 μs. In Fig. 2c, d we observe that scaling the PDF of standard work for the BW process by exp[*β*(*w* − Δ*F*)] (diamonds) does not agree with the PDF of the FW process (bars), in contrast to the prediction of the standard TCR. Such a disagreement is a strong indication of the existence of charges in a system. On the other hand, the prediction of the generalised TCR, Eq. (4), is satisfied with great accuracy for both *β*_{
M
} > 0 [Fig. 2e] and *β*_{
M
} < 0 (Fig. 2f). In other words, the TCR equality is only fulfilled when all relevant charges are included in the calculations of $\mathcal{W}$ and Δ$\mathcal{F}$, and a discrepancy between the measurable quantities ${\mathcal{P}}_{\mathrm{FW}}$($\mathcal{W}$) and ${\mathcal{P}}_{\mathrm{BW}}$($\mathcal{W}$) exp($\mathcal{W}$ − Δ$\mathcal{F}$) points to the existence of hidden charges that need to be included.

## Discussion

Our findings extend the foundations of quantum thermodynamics with charges^{44,45,46,47,48} to non-equilibrium processes with various (generalised) baths and/or that break one or more conservation laws, while they revert to the standard QFRs in the case that the Hamiltonian is the only conserved quantity ($\mathcal{N}$ = $\mathcal{N}\prime $ = 0) and both processes start at the same inverse temperature, *β*′ = *β*. In this case, ${\mathcal{W}}_{\mathrm{BW}}$ = −${\mathcal{W}}_{\mathrm{FW}}$ = −*βw* and Eq. (4) becomes the standard TCR^{21} with the standard free energy *F* = −*β*^{−1} ln $\mathcal{Z}$. In the same conditions, Eq. (5) recovers the standard QJE^{22,23,24}. In addition, if $\mathcal{N}$ = $\mathcal{N}\prime $ and $\overrightarrow{\beta}=\overrightarrow{\beta}\prime $, Eq. (4) reduces to the version of the TCR for GGEs derived in ref. ^{44} under the assumption of continuity of the charges during the driving protocols.

Our numerical results in Fig. 2a–d highlight the limitations of the standard QFRs in dealing with systems with charges, in particular in order to extract equilibrium properties by means of non-equilibrium measurements^{41,42,43,49,50}. Our generalised QFRs, Eqs. (4) and (5), provide the robust theoretical basis necessary to do that, as evidenced by the exquisite agreement of our numerical simulations with their predictions (Fig. 2a, b, e, f).

The framework informed by the approach based on our QFRs is of general applicability to quantum many-body systems. In particular, our protocol to reveal the existence of charges enables one to uncover more general charges than those related to transport properties and governed by the Mazur bound^{17,18,19,20,51}, as illustrated by our analysis of the Dicke model. Ongoing developments in several physical platforms—e.g., trapped ions^{32,33,34,35} and superconducting circuits^{52,53}—readily enable precise experimental investigations of this model, which will further inform the development of tools to study non-equilibrium quantum dynamics, and its exploitation in practical tasks^{54,55}. We remark as well the possibility of simultaneously revealing new charges and determining the associated (equilibrium) inverse temperatures borne in our protocol.

An important question that remains open is how to determine the exact form of the charge operators. Indeed, their intimate dependence on the associated Hamiltonian makes it hard to give a general prescription. Still, we conjecture that a strategy based on analysing the behaviour of different candidate operators under various driving protocols by means of the marginal TCR, Eq. (6), will illuminate the exact form of the charges. This possibility, which lies beyond the scope of this work, will be explored in the future.

These findings will be relevant to fundamental studies on relaxation and thermalisation of quantum systems^{56,57,58}, and to the advance of quantum simulation and quantum probing protocols that exploit QFRs^{41,42,43,49,50}. Our results extend the foundations of quantum thermodynamics with charges^{44,45,46,47,48} to non-equilibrium processes with various (generalised) baths and/or that break one or more conservation laws, while they revert to the standard QFRs in the case that the Hamiltonian is the only conserved quantity ($\mathcal{N}$ = $\mathcal{N}\prime $ = 0) and both processes start at the same inverse temperature, *β*′ = *β*. In this case, ${\mathcal{W}}_{\mathrm{BW}}$ = −${\mathcal{W}}_{\mathrm{FW}}$ = −*βw* and Eq. (4) becomes the standard TCR^{21} with the standard free energy *F* = −*β*^{−1} ln $\mathcal{Z}$. In the same conditions, Eq. (5) recovers the standard QJE^{22,23,24}. In addition, if $\mathcal{N}$ = $\mathcal{N}\prime $ and $\overrightarrow{\beta}=\overrightarrow{\beta}\prime $, Eq. (4) reduces to the version of the TCR for GGEs derived in ref. ^{44} under the assumption of continuity of the charges during the driving protocols.

We further remark that our QFRs do not assume any particular relationship between the sets of observables that commute with $\u0124$ and $\u0124\prime $; in particular, we do not assume continuity between these sets^{44}; this is important, as frequently even a small perturbation of a Hamiltonian transforms its charges into dynamical quantities. Thus, our generalised QFRs enable us to study a larger class of non-equilibrium processes, such as cyclic processes that include an intermediate thermalisation step where the system remains isolated and thus equilibrates to a GGE whose generalised temperatures are not fixed beforehand (see Supplementary Note 2 for more details). This opens the door to studying the thermalisation of an integrable system when perturbed away from integrability^{16,30,59}. We thus expect our work will contribute to illuminate open fundamental questions on thermalisation, localisation and ergodicity, especially in the presence of integrals of motion^{60,61,62,63,64}. Besides, due to the enhanced role of fluctuations in small systems, we expect our work will contribute to a better understanding and improved design of new micro- and nanometre-sized devices where the interplay of thermal and quantum effects is paramount^{54,65,66}, and thus to address questions related to cyclic protocols and the efficiency of quantum heat engines^{54,55}, thermometry of strongly correlated systems at ultra-low temperatures^{49,67} and novel quantum sensing applications based on quantum information theory and quantum thermodynamics^{50,68,69}.

In summary, we have derived a set of generalised QFRs relevant to unitary non-equilibrium processes starting from states of the GGE, which correspond to equilibrium states of quantum system with charges. Based on these generalised QFRs, we have proposed a general method to address the question of identifying all charges relevant to the non-equilibrium dynamics of a quantum system^{17,18,19,51}. We provided robust numerical evidence of the measurable impact that these theoretical findings can have in current studies with quantum simulators; in particular, we highlighted the importance of identifying all conserved charges to obtain unbiased estimates of their equilibrium properties, such as the temperature, through non-equilibrium measurements^{41,42,43,49}. In addition, we put forward a scheme to determine whether an integral of motion is affected by a class of non-equilibrium processes, without measuring it.

## Methods

### Derivation of the generalised QFRs

To derive the TCR (4), let us introduce the shorthand notations ${\mathcal{A}}_{\overrightarrow{i}}=\beta {E}_{{i}_{0}}+{\sum}_{k}{\beta}_{k}{M}_{k,{i}_{k}}$ and ${\mathcal{A}}_{\overrightarrow{f}}^{\prime}=\beta \prime {E}_{{f}_{0}}^{\prime}+{\sum}_{l}{\beta}_{l}^{\prime}{M}_{l,{f}_{l}}^{\prime}$, with $\u2223\overrightarrow{i}\u27e9$ = $\u2223{i}_{0},\dots ,{i}_{\mathcal{N}},\eta \u27e9$ and $\u2223\overrightarrow{f}\prime \u27e9$ = $\u2223{f}_{0},\dots ,{i}_{\mathcal{N}\prime},\eta \prime \u27e9$. Then, the probability that a realisation of the protocol requires an amount $\mathcal{W}$ of generalised work (2) reads

Here ${p}_{\overrightarrow{i}}=\mathrm{exp}\left(-{\mathcal{A}}_{\overrightarrow{i}}\right)\mathrm{\u2215}\mathcal{Z}$, $\mathcal{Z}={\sum}_{\overrightarrow{i}}\mathrm{exp}\left(-{\mathcal{A}}_{\overrightarrow{i}}\right)$, is the probability to find the system in state $\u2223\overrightarrow{i}\u27e9$ in the first projective measurement at *t* = 0, and ${\pi}_{\overrightarrow{i}\to \overrightarrow{f}}\left(\xdb\right)={\u2223\u27e8\overrightarrow{f}\prime \u2223\xdb\u2223\overrightarrow{i}\u27e9\u2223}^{2}$ is the probability that the system initially in state $\u2223\overrightarrow{i}\u27e9$ is found in state $\u2223\overrightarrow{f}\prime \u27e9$ after the protocol $\xdb$; finally, *δ*(0) = 1 and otherwise *δ*(*x*) = 0. The PDF (8) can be rewritten as

In the first step we substituted ${p}_{\overrightarrow{i}}$ and ${\pi}_{\overrightarrow{i}\to \overrightarrow{f}}$, in the third step we applied that $\xdb$ is unitary and in the last step we identified the PDF corresponding to the time-reversed process. This completes the proof of Eq. (4), from which the generalised QJE (5) follows as discussed in the main text. The PDFs of standard (dimensionful) work, $w={\mathcal{E}}_{\mathrm{fin}}^{\prime}-{\mathcal{E}}_{\mathrm{ini}}$, shown in Fig. 2, are defined analogously, e.g., ${P}_{\mathrm{FW}}\left(w\right)$ = ${\sum}_{\overrightarrow{i},\overrightarrow{f}}{p}_{\overrightarrow{i}}{\pi}_{\overrightarrow{i}\to \overrightarrow{f}}\delta \left[w-\left({\mathcal{E}}_{\mathrm{fin}}^{\prime}-{\mathcal{E}}_{\mathrm{ini}}\right)\right]$, which follows from the standard situation with the same equilibrium conditions at the start of FW and BW processes, *β*′ = *β*. Finally, the marginal TCR (6) is derived in a manner analogous to (9) by defining the PDF of marginal work as ${\mathcal{P}}_{\mathrm{FW}}^{\left(m\right)}\left({\mathcal{W}}_{m}=x\right)$ ≡ ${\sum}_{\overrightarrow{i},\overrightarrow{f}}{p}_{\overrightarrow{i}}{\pi}_{\overrightarrow{i}\to \overrightarrow{f}}\delta \left[x-\left({\mathcal{A}}_{f}^{\prime \left(m\right)}-{\mathcal{A}}_{\overrightarrow{i}}^{\left(m\right)}\right)\right]$ with ${\mathcal{A}}_{\overrightarrow{i}}^{\left(m\right)}$ = $\beta {\mathcal{E}}_{\mathrm{ini}}+{\sum}_{k\ne m}^{N}{\beta}_{k}{\mathcal{M}}_{k,\mathrm{ini}}$ and ${\mathcal{A}}_{\overrightarrow{f}}^{\prime \left(m\right)}$ = $\beta \prime {\mathcal{E}}_{\mathrm{fin}}^{\prime}+{\sum}_{l\ne m}^{\mathcal{N}\prime}{\beta}_{l}^{\prime}{M}_{l,\mathrm{fin}}^{\prime}$.

We remark that the fundamental assumptions underlying our generalised QFRs are (i) that the state of the system at the start of both FW and BW processes is of the GGE form, and (ii) the the corresponding driving protocols are time-reversed of each other.

### Dicke model with trapped ions

Consider *N* ions in an ion trap^{36}. Each ion can be described as a two-level system (qubit) with internal states $\left\{\u2223\uparrow \u27e9,\u2223\downarrow \u27e9\right\}$ corresponding to two Zeeman levels within the ground ^{2}*S*_{1/2} electronic state. Their energy splitting can be controlled by an external magnetic field, *B*, as *ħω*_{at} = Δ*μB*, where Δ*μ* is the difference in magnetic moments of the two internal states^{32, 33}. The motional state of the ions in the trap is characterised by *N* − 1 collective modes in each direction^{36}. Among these, the COM mode, with eigenfrequency *ω*_{COM}, is characterised by coupling identically to all ions. Internal and motional states can be coupled by radiation of frequency *ω* close to *ω*_{at} ± *ω*_{COM}, the blue (red) motional sideband^{36}.

The complete Hamiltonian describing the dynamics of the system reads *H* = *H*_{0} + *H*_{JC} + *H*_{aJC} with *H*_{0} = $\hslash {\omega}_{\mathrm{COM}}\left({\widehat{b}}^{\u2020}\widehat{b}+1\mathrm{\u2215}2\right)$ + ${\sum}_{l=1}^{N}\hslash {\omega}_{\mathrm{at}}{\sigma}_{z}^{\left(l\right)}$, where ${\widehat{b}}^{\u2020}$ and $\widehat{b}$ are the operators creating and annihilating excitations (phonons) in the COM mode and ${\sigma}_{z}^{\left(l\right)}$ = ${\u2223\uparrow \u27e9}_{\left(l\right)}\u27e8\uparrow \u2223-{\u2223\downarrow \u27e9}_{\left(l\right)}\u27e8\downarrow \u2223$ is the Pauli *z* operator for ion *l* = 1, …, *N*. The coupling between the ions’ internal state and the COM mode mediated by radiation is given by the Jaynes–Cummings (JC) and anti-JC Hamiltonians, *H*_{JC} = ${\sum}_{l=1}^{N}\left(\widehat{b}{\sigma}_{+}^{\left(l\right)}+{\widehat{b}}^{\u2020}{\sigma}_{-}^{\left(l\right)}\right)\hslash {\Omega}_{\mathrm{rsb}}\mathrm{\u2215}2$ and *H*_{aJC} = ${\sum}_{l=1}^{N}\left({\widehat{b}}^{\u2020}{\sigma}_{+}^{\left(l\right)}+\widehat{b}{\sigma}_{-}^{\left(l\right)}\right)\hslash {\Omega}_{\mathrm{bsb}}\mathrm{\u2215}2$, with the raising (lowering) operators ${\sigma}_{+}^{\left(l\right)}={\u2223\uparrow \u27e9}_{\left(l\right)}\u27e8\downarrow \u2223$ and ${\sigma}_{-}^{\left(l\right)}={\left[{\sigma}_{+}^{\left(l\right)}\right]}^{\u2020}$. *Ω*_{bsb(rsb)} is the Rabi frequency of the blue (red) motional sideband^{36}.

The internal quantum state of a single ion can be mapped onto an effective spin-1/2 system. The full quantum state of the ions in the trap can then be expressed in the basis $\u2223J,{J}_{z},n\u27e9$ = $\u2223J,{J}_{z}\u27e9\otimes \u2223n\u27e9$, where $\u2223n\u27e9$ is the Fock state with *n* = 0, 1, 2,… excitations in the COM mode, and $\u2223J,{J}_{z}\u27e9$ is an eigenstate of the collective Schwinger pseudo-spins ${\u0134}_{s}={\sum}_{l=1}^{N}{\sigma}_{s}^{\left(l\right)}$ (*s* = *z*, +, −), with *J* = *N*/2 and *J*_{
z
} = −*J*, −*J* + 1, …, *J*. Using the collective pseudo-spins and dropping constant terms, the Hamiltonian *H* can be conveniently rewritten as Eq. (7), with the coupling parameters given in terms of the Rabi frequencies within *H*_{JC} and *H*_{aJC} by *g* = (*Ω*_{rsb} + *Ω*_{bsb})/2 and *α* = *Ω*_{bsb}/(*Ω*_{rsb} + *Ω*_{bsb}).

### Numerical calculations

We solve the time evolution of the system with *N* = 7 ions by exact propagation with the full interacting Hamiltonian expressed in the basis of eigenstates $\u2223J,{J}_{z},n\u27e9$ with *J* = 7/2, *J*_{
z
} = −7/2, …, 7/2, and *n* = 0, 1, …, *n*_{max}. We have verified that a maximum phonon occupation *n*_{max} = 800 is sufficient to faithfully simulate the evolution for the timescales of interest. To simulate the TPM protocol, we proceed in the following way. We start the process in a given eigenstate of the system, with definite eigenvalues of the Hamiltonian, $\u0124$, and the conserved charge, $\widehat{M}$, $\u2223{E}_{n},{M}_{m}\u27e9$. Then, we perform a sudden quench to the intermediate stage and, then, another quench to the final Hamiltonian. We calculate the probability of each transition $\u2223{E}_{n},{M}_{m}\u27e9$ → $\u2223{E}_{p}^{\prime},{M}_{r}^{\prime}\u27e9$, involving a work $w={E}_{p}^{\prime}-{E}_{n}$ and a change in the conserved charge, ${w}_{M}={M}_{r}^{\prime}-{M}_{m}$; this probability is $P\left(w,{w}_{M}\right)$ = ${\u2223\u27e8{E}_{p}^{\prime},{M}_{r}^{\prime}\mid {E}_{n},{M}_{m}\u27e9\u2223}^{2}$. From this result, we obtain the marginal probabilities for the work, *w*, and the change in the charge, *w*_{
M
}; both values provide us the generalised work required by the transition, Eqs. (2) and (3)^{44,45,46}. We repeat the same calculations for every eigenstate of the initial system, obtaining the corresponding marginal probability distributions. The final results follow by averaging the different initial states with the probability distribution given by the GGE, with the corresponding temperatures *β* and *β*_{
M
}. Note that this procedure is totally equivalent to averaging over a large number of realisations consisting in: first selecting randomly an initial eigenstate $\u2223{E}_{n},{M}_{m}\u27e9$, with the probability distribution given by the GGE (simulating the first projective measurement); and second, selecting randomly the final state as an eigenstate of the final Hamiltonian, with a probability distribution given by ${\u2223\u27e8{E}_{p}^{\prime},{M}_{r}^{\prime}\mid {E}_{n},{M}_{m}\u27e9\u2223}^{2}$ (simulating the second projective measurement). Moreover, this numerical procedure is in direct analogy with the implementation of the filtering method in ref. ^{34} to project the initial state onto a given eigenstate of the system.

In all the simulations shown, we use *g*(*t* < 0) = 2*ε*_{0}, *g*(0 < *t* < *τ*) = 3*ε*_{0} and *g*(*τ*) = *ε*_{0}. This choice entails that the coupling constant in the intermediate stage is above the critical coupling, *g*_{cr} = $\sqrt{{\omega}_{\mathrm{COM}}{\omega}_{\mathrm{at}}}\mathrm{\u2215}2~2.74{\epsilon}_{0}$, for the transition from normal to super-radiant behaviour of the Dicke model (see Supplementary Note 3). Indeed, we have checked that the majority of the populated levels at the end of the protocol lays in the chaotic regime. Thus, we expect an effective breakdown of the conservation of ${\widehat{M}}_{}^{}$, and a complete thermalisation for sufficiently large *τ*^{70}.

### Data availability

The data that support the findings of this study are available from the corresponding author on request.

## Additional information

**Publisher's note:** Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## References

- 1.
Schilpp, P. A. (ed.)

*Albert Einstein, Philosopher-Scientist: The Library of Living Philosophers*Vol. 7, 32–33 (Open Court Publishing, La Salle, 2000). - 2.
Carnot, S.

*Réflexions sur la puissance motrice du feu et sur les machines propres à développer cette puissance*(Bachelier, Paris, 1824). - 3.
Liphardt, J., Dumont, S., Smith, S. B., Tinoco, I. & Bustamante, C. Equilibrium information from nonequilibrium measurements in an experimental test of Jarzynski’s equality.

*Science***296**, 1832–1835 (2002). - 4.
Ritort, F. Nonequilibrium fluctuations in small systems: from physics to biology.

*Adv. Chem. Phys.***137**, 31–123 (2008). - 5.
Esposito, M., Harbola, U. & Mukamel, S. Nonequilibrium fluctuations, fluctuation theorems, and counting statistics in quantum systems.

*Rev. Mod. Phys.***81**, 1665–1702 (2009). - 6.
Scully, M. O., Zubairy, M. S., Agarwal, G. S. & Walther, H. Extracting work from a single heat bath via vanishing quantum coherence.

*Science***299**, 862–864 (2003). - 7.
Abah, O. & Lutz, E. Efficiency of heat engines coupled to nonequilibrium reservoirs.

*Europhys. Lett.***106**, 20001 (2014). - 8.
Roßnagel, J., Abah, O., Schmidt-Kaler, F., Singer, K. & Lutz, E. Nanoscale heat engine beyond the Carnot limit.

*Phys. Rev. Lett.***112**, 030602 (2014). - 9.
Hänggi, P. & Talkner, P. The other QFT.

*Nat. Phys.***11**, 108–110 (2015). - 10.
Jarzynski, C. Diverse phenomena, common themes.

*Nat. Phys.***11**, 105–107 (2015). - 11.
Sutherland, B.

*Beautiful Models. 70 Years of Exactly Solved Quantum Many-Body Problems*(World Scientific, London, 2004). - 12.
Essler, F. H. L., Frahm, H., Göhmann, F., Klümper, A. & Korepin, V. E.

*The One-Dimensional Hubbard Model*(Cambridge Univ. Press, Cambridge, 2005). - 13.
Dicke, R. H. Coherence in spontaneous radiation processes.

*Phys. Rev.***93**, 99–110 (1954). - 14.
Garraway, B. M. The Dicke model in quantum optics: Dicke model revisited.

*Philos. Trans. A Math. Phys. Eng. Sci.***369**, 1137–1155 (2011). - 15.
Sutherland, B. Model for a multicomponent quantum system.

*Phys. Rev. B***12**, 3795–3805 (1975). - 16.
Kinoshita, T., Wenger, T. & Weiss, D. S. A quantum Newton’s cradle.

*Nature***440**, 900–903 (2006). - 17.
Prosen, T. Open XXZ spin chain: nonequilibrium steady state and a strict bound on ballistic transport.

*Phys. Rev. Lett.***106**, 217206 (2011). - 18.
Prosen, T. & Ilievski, E. Families of quasilocal conservation laws and quantum spin transport.

*Phys. Rev. Lett.***111**, 057203 (2013). - 19.
Ilievski, E. & Nardis, J. De Microscopic origin of ideal conductivity in integrable quantum models.

*Phys. Rev. Lett.***119**, 020602 (2017). - 20.
Heidrich-Meisner, F., Honecker, A., Cabra, D. C. & Brenig, W. Zero-frequency transport properties of one-dimensional spin-1/2 systems.

*Phys. Rev. B***68**, 134436 (2003). - 21.
Tasaki, H. Jarzynski relations for quantum systems and some applications. Preprint at http://arxiv.org/abs/cond-mat/0009244 (2000).

- 22.
Tasaki, H. Statistical mechanical derivation of the second law of thermodynamics. Preprint at http://arxiv.org/abs/cond-mat/0009206 (2000).

- 23.
Kurchan, J. A quantum fluctuation theorem. Preprint at http://arxiv.org/abs/cond-mat/0007360 (2000).

- 24.
Yukawa, S. A quantum analogue of the Jarzynski equality.

*J. Phys. Soc. Jpn.***69**, 2367–2370 (2000). - 25.
Jaynes, E. T. Information theory and statistical mechanics.

*Phys. Rev.***106**, 620–630 (1957). - 26.
Rigol, M., Dunjko, V., Yurovsky, V. & Olshanii, M. Relaxation in a completely integrable many-body quantum system: an ab initio study of the dynamics of the highly excited states of 1D lattice hard-core bosons.

*Phys. Rev. Lett.***98**, 050405 (2007). - 27.
Moreno-Cardoner, M. et al. Predicting spinor condensate dynamics from simple principles.

*Phys. Rev. Lett.***99**, 020404 (2007). - 28.
Talkner, P., Lutz, E. & Hänggi, P. Fluctuation theorems: work is not an observable.

*Phys. Rev. E***75**, 050102 (2007). - 29.
Gring, M. et al. Relaxation and prethermalization in an isolated quantum system.

*Science***337**, 1318–1322 (2012). - 30.
Langen, T. et al. Experimental observation of a generalized Gibbs ensemble.

*Science***348**, 207–211 (2015). - 31.
Ronzheimer, J. P. et al. Expansion dynamics of interacting bosons in homogeneous lattices in one and two dimensions.

*Phys. Rev. Lett.***110**, 205301 (2013). - 32.
Benhelm, J., Kirchmair, G., Roos, C. F. & Blatt, R. Experimental quantum-information processing with

^{43}Ca^{+}ions.*Phys. Rev. A.***77**, 062306 (2008). - 33.
Harty, T. P. et al. High-fidelity preparation, gates, memory, and readout of a trapped-ion quantum bit.

*Phys. Rev. Lett.***113**, 220501 (2014). - 34.
An, S. et al. Experimental test of the quantum Jarzynski equality with a trapped-ion system.

*Nat. Phys.***11**, 193–199 (2015). - 35.
Kienzler, D. et al. Quantum harmonic oscillator state control in a squeezed fock basis.

*Phys. Rev. Lett.***119**, 033602 (2017). - 36.
Häffner, H., Roos, C. F. & Blatt, R. Quantum computing with trapped ions.

*Phys. Rep.***469**, 155–203 (2008). - 37.
Emary, C. & Brandes, T. Quantum chaos triggered by precursors of a quantum phase transition: the Dicke model.

*Phys. Rev. Lett.***90**, 044101 (2003). - 38.
Emary, C. & Brandes, T. Chaos and the quantum phase transition in the Dicke model.

*Phys. Rev. E***67**, 066203 (2003). - 39.
Relaño, A., Bastarrachea-Magnani, M. A. & Lerma-Hernández, S. Approximated integrability of the Dicke model.

*EPL***116**, 50005 (2016). - 40.
Huber, G., Schmidt-Kaler, F., Deffner, S. & Lutz, E. Employing trapped cold ions to verify the quantum Jarzynski equality.

*Phys. Rev. Lett.***101**, 070403 (2008). - 41.
Dorner, R. et al. Extracting quantum work statistics and fluctuation theorems by single-qubit interferometry.

*Phys. Rev. Lett.***110**, 230601 (2013). - 42.
Mazzola, L., De Chiara, G. & Paternostro, M. Measuring the characteristic function of the work distribution.

*Phys. Rev. Lett.***110**, 230602 (2013). - 43.
Batalhão, T. B. et al. Experimental reconstruction of work distribution and study of fluctuation relations in a closed quantum system.

*Phys. Rev. Lett.***113**, 140601 (2014). - 44.
Hickey, J. M. & Genway, S. Fluctuation theorems and the generalized Gibbs ensemble in integrable systems.

*Phys. Rev. E***90**, 022107 (2014). - 45.
Guryanova, Y., Popescu, S., Short, A. J., Silva, R. & Skrzypczyk, P. Thermodynamics of quantum systems with multiple conserved quantities.

*Nat. Commun.***7**, 12049 (2016). - 46.
Yunger Halpern, N., Faist, P., Oppenheim, J. & Winter, A. Microcanonical and resource-theoretic derivations of the non-Abelian thermal state.

*Nat. Commun.***7**, 12051 (2016). - 47.
Gogolin, C. & Eisert, J. Equilibration, thermalisation, and the emergence of statistical mechanics in closed quantum systems.

*Rep. Prog. Phys.***79**, 056001 (2016). - 48.
Lostaglio, M., Jennings, D. & Rudolph, T. Thermodynamic resource theories, non-commutativity and maximum entropy principles.

*New J. Phys.***19**, 043008 (2017). - 49.
Johnson, T. H., Cosco, F., Mitchison, M. T., Jaksch, D. & Clark, S. R. Thermometry of ultracold atoms via nonequilibrium work distributions.

*Phys. Rev. A***93**, 053619 (2016). - 50.
Streif, M., Buchleitner, A., Jaksch, D. & Mur-Petit, J. Measuring correlations of cold-atom systems using multiple quantum probes.

*Phys. Rev. A***94**, 053634 (2016). - 51.
Ilievski, E., Medenjak, M., Prosen, T. & Zadnik, L. Quasilocal charges in integrable lattice systems.

*J. Stat. Mech. Theory Exp.***2016**, 64008 (2016). - 52.
Chen, Y. et al. Emulating weak localization using a solid-state quantum circuit.

*Nat. Commun.***5**, 5184 (2014). - 53.
Zou, L. J. et al. Implementation of the Dicke lattice model in hybrid quantum system arrays.

*Phys. Rev. Lett.***113**, 023603 (2014). - 54.
Kosloff, R. & Levy, A. Quantum heat engines and refrigerators: continuous devices.

*Annu. Rev. Phys. Chem.***65**, 365–393 (2014). - 55.
Parrondo, J. M. R., Horowitz, J. M. & Sagawa, T. Thermodynamics of information.

*Nat. Phys.***11**, 131–139 (2015). - 56.
Eisert, J., Friesdorf, M. & Gogolin, C. Quantum many-body systems out of equilibrium.

*Nat. Phys.***11**, 124–130 (2015). - 57.
Campisi, M., Hänggi, P. & Talkner, P. Colloquium: quantum fluctuation relations: foundations and applications.

*Rev. Mod. Phys.***83**, 771–791 (2011). - 58.
Esposito, M., Ochoa, M. A. & Galperin, M. Nature of heat in strongly coupled open quantum systems.

*Phys. Rev. B***92**, 235440 (2015). - 59.
Tang, Y. et al. Thermalization near integrability in a dipolar quantum Newton’s cradle.

*Phys. Rev. X***8**, 021030 (2018) https://doi.org/10.1103/PhysRevX.8.021030. - 60.
Moeckel, M. & Kehrein, S. Interaction quench in the Hubbard model.

*Phys. Rev. Lett.***100**, 175702 (2008). - 61.
Trotzky, S. et al. Probing the relaxation towards equilibrium in an isolated strongly correlated one-dimensional Bose gas.

*Nat. Phys.***8**, 325–330 (2012). - 62.
Bertini, B., Essler, F. H. L., Groha, S. & Robinson, N. J. Prethermalization and thermalization in models with weak integrability breaking.

*Phys. Rev. Lett.***115**, 180601 (2015). - 63.
Ros, V., Müller, M. & Scardicchio, A. Integrals of motion in the many-body localized phase.

*Nucl. Phys. B***891**, 420–465 (2015). - 64.
D’Alessio, L., Kafri, Y., Polkovnikov, A. & Rigol, M. From quantum chaos and eigenstate thermalization to statistical mechanics and thermodynamics.

*Adv. Phys.***65**, 239–362 (2016). - 65.
Pekola, J. P. Towards quantum thermodynamics in electronic circuits.

*Nat. Phys.***11**, 118–123 (2015). - 66.
Bauer, G. E. W., Saitoh, E. & van Wees, B. J. Spin caloritronics.

*Nat. Mater.***11**, 391–399 (2012). - 67.
Correa, L. A., Mehboudi, M., Adesso, G. & Sanpera, A. Individual quantum probes for optimal thermometry.

*Phys. Rev. Lett.***114**, 220405 (2015). - 68.
Goold, J., Huber, M., Riera, A., del Rio, L. & Skrzypczyk, P. The role of quantum information in thermodynamics— a topical review.

*J. Phys. A Math. Theor.***49**, 143001 (2016). - 69.
Cosco, F., Borrelli, M., Plastina, F. & Maniscalco, S. Momentum-resolved and correlations spectroscopy using quantum probes.

*Phys. Rev. A***95**, 053620 (2017). - 70.
Neill, C. et al. Ergodic dynamics and thermalization in an isolated quantum system.

*Nat. Phys.***12**, 1037–1041 (2016).

## Acknowledgements

We acknowledge useful discussions with B. Buča, J. Dukelsky, J. J. Garca-Ripoll, K. Hovhannisyan, D. Jennings, D. Lucas and K. Thirumalai. This work was supported by the EU H2020 Collaborative project QuProCS (Grant Agreement No. 641277); EU Seventh Framework Programme QMAC (Grant Agreement No. 319286); EPSRC Grant No. EP/P01058X/1; Spain’s MINECO/FEDER Grants Nos. FIS2015-70856-P, FIS2012-35316, FIS2015-63770-P and FIS2014-61633-EXP; and CAM research consortium QUITEMAD+ (S2013/ICE-2801). D.J. thanks the Graduate School of Excellence Material Science in Mainz for hospitality during part of this work.

## Author information

### Affiliations

#### Clarendon Laboratory, University of Oxford, Oxford, OX1 3PU, UK

- J. Mur-Petit
- & D. Jaksch

#### Departamento de Física Aplicada I and GISC, Universidad Complutense de Madrid, Av. Complutense s/n, 28040, Madrid, Spain

- A. Relaño

#### Instituto de Estructura de la Materia, IEM-CSIC, Serrano 123, 28006, Madrid, Spain

- R. A. Molina

#### Centre for Quantum Technologies, National University of Singapore, Singapore, 117543, Singapore

- D. Jaksch

### Authors

### Search for J. Mur-Petit in:

### Search for A. Relaño in:

### Search for R. A. Molina in:

### Search for D. Jaksch in:

### Contributions

J.M.-P. envisioned the project, derived analytically the generalised QFRs and devised the implementation of the Dicke model with trapped ions. A.R. performed all numerical simulations. J.M.-P., A.M., R.A.M. and D.J. contributed to discussion and interpretation of the results, and to the final manuscript.

### Competing interests

The authors declare no competing interests.

### Corresponding authors

Correspondence to J. Mur-Petit or A. Relaño.

## Electronic supplementary material

## About this article

### Publication history

#### Received

#### Accepted

#### Published

### DOI

https://doi.org/10.1038/s41467-018-04407-1

### Rights and permissions

**Open Access** This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.

## Comments

By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.