Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

# Experimental characterization of the energetics of quantum logic gates

## Abstract

We characterize the energetic footprint of a two-qubit quantum gate from the perspective of non-equilibrium quantum thermodynamics. We experimentally reconstruct the statistics of energy and entropy fluctuations following the implementation of a controlled-unitary gate, linking them to the performance of the gate itself and the phenomenology of Landauer’s principle at the single-quantum level. Our work thus addresses the energetic cost of operating quantum circuits, a problem that is crucial for the grounding of the upcoming quantum technologies.

## Introduction

Thermodynamics was developed in the nineteenth century to improve the efficiency of steam engines. Its impact fostered the Industrial Revolution and affected fundamental science, technology, and everyday life alike. In the third millennium, we are facing a potentially equally revolutionary process, whereby standard information technology — usually CMOS (complementary metal–oxide–semiconductor) based — is complemented and enhanced by quantum technologies for communication, computation, and sensing1,2.

Despite the significant progress made towards the implementation of prototype quantum devices able to process an increasing amount of information in a reliable and reproducible manner1,3, little work has been devoted to the characterization of the energetic footprint of such potentially disruptive quantum technologies4. Yet, this is a crucial point to address: only by ensuring that the energy consumption associated with the performance of quantum information processing5,6 scales favorably with the size of a quantum processor, would the craved quantum technologies embody a credible alternative to CMOS-based devices.

Remarkably, the fast-paced miniaturization process enabled by research in quantum information processing opens realistic possibilities to engineer and implement miniature-scale quantum machines akin to standard (macroscopic) engines that process and transform energy7,8. The challenge in this respect is to make use of the emerging field of quantum thermodynamics, which aims at establishing a framework for the thermodynamics of quantum processes and systems, to design energy-efficient quantum machines9,10,11,12 possibly able to outperform their classical counterparts3, or benchmark the performance of quantum devices from a thermodynamic perspective, as recently done for the interesting case of quantum annealears13,14.

In this article, we perform a step towards the characterization of the energetics of quantum computation by studying the energy and entropy distributions15,16,17,18,19,20,21,22 of two-qubit quantum systems realizing quantum gates. We consider the so-called two-point measurement (TPM) approach23 to the reconstruction of the energy and entropy generated during and as a result of the performance of a two-qubit gate. We present the experimental inference of such quantities by means of a linear-optics setting where qubits are embodied by the polarization of two photons. We then use the information gathered through the reconstructed statistics of energy and entropy distributions to assess Landauer principle at the individual-quantum level, and thus explore the relation between information processing realized through prototype two-qubit gates and the thermodynamics of such transformations. While our quantitative analysis is specific of the chosen experimental platform, our approach is based on the estimation of joint probability distributions. As such, our formal approach to the characterization of the energetics of quantum gates would be applicable to any physical platform for quantum computation and might embody an energetics-inspired methodology for the comparison between devices implemented in different settings.

Our work embodies one of the first attempts at systematically linking the energetics of quantum information carriers to the logic functionality of a quantum gate. When developed to address multipartite settings and high-dimensional quantum systems24, our approach will be pivotal to the enhancement of the performance of quantum information processes.

## Results

### The implemented process and its non-equilibrium thermodynamic analysis

We consider the simple quantum circuit in Fig. 1: our two-qubit gate performs a controlled-unitary U, based on its decomposition into local unitary gates uθ and a control-σz gate, that applies a Pauli σz gate to the state of qubit B, conditioned on the state of the qubit A. This is the simplest instance of a programmable quantum circuit with a two-qubit interaction, an essential feature to our purposes.

Our physical implementation, depicted in Fig. 1c, adopts the two-photon control-σz gate based on the use of polarization-selective non-classical interference and post selection25,26,27. The polarization encoding represents the logical states $${\left|0\right\rangle }_{k}$$ and $${\left|1\right\rangle }_{k}$$ with the horizontal $${\left|H\right\rangle }_{k}$$ and vertical $${\left|V\right\rangle }_{k}$$ polarizations, respectively, for both qubits k = A and B.

In order to investigate the thermodynamics associated with the performance of our gate, we need to associate a Hamiltonian to the interacting system of the two qubits able to account for the action of the device. To this purpose, we introduce the total Hamiltonian $${{\mathcal{H}}}_{{\rm{tot}}}={{\mathcal{H}}}_{L}+{{\mathcal{H}}}_{{\rm{int}}}$$, which consists of the local Hamiltonian $${{\mathcal{H}}}_{L}$$ and the interaction term $${{\mathcal{H}}}_{{\rm{int}}}$$, which read

$$\begin{array}{l}{{\mathcal{H}}}_{L}=\frac{1}{2}\hslash \ {\omega }_{L}\left({\sigma }_{A}^{z}\otimes {\mathbb{1}}_{B}+{\mathbb{1}}_{A}\otimes {\sigma }_{B}^{z}\right),\\ {{\mathcal{H}}}_{{\rm{int}}}=\frac{1}{2}\hslash \ {\omega }_{{\rm{int}}}\left|1\right\rangle {\left\langle 1\right|}_{A}\otimes {\sigma }_{B}^{x}\ .\end{array}$$
(1)

In Eq. (1), $$\mathbb{1}$$ is the identity matrix and $${\sigma }_{k}^{j}$$ is the j = x, y, z Pauli matrix of the qubit k. The interaction Hamiltonian $${{\mathcal{H}}}_{{\rm{int}}}$$ generates a rotation of the state of qubit B that is conditioned on the state of qubit A. In particular, the total Hamiltonian $${{\mathcal{H}}}_{{\rm{tot}}}$$ generates the following trajectories for the two-qubit logical states:

$$\begin{array}{l}{\left|0\right\rangle }_{A}{\left|0\right\rangle }_{B}\to {e}^{i{\omega }_{L}t}{\left|0\right\rangle }_{A}{\left|0\right\rangle }_{B},\\ {\left|0\right\rangle }_{A}{\left|1\right\rangle }_{B}\to {\left|0\right\rangle }_{A}{\left|1\right\rangle }_{B},\\ {\left|1\right\rangle }_{A}{\left|0\right\rangle }_{B}\to {e}^{-i{\omega }_{L}t/2}\left({h}_{1}(t){\left|1\right\rangle }_{A}{\left|0\right\rangle }_{B}+{h}_{2}(t){\left|1\right\rangle }_{A}{\left|1\right\rangle }_{B}\right),\\ {\left|1\right\rangle }_{A}{\left|1\right\rangle }_{B}\to {e}^{-i{\omega }_{L}t/2}\left({h}_{2}(t){\left|1\right\rangle }_{A}{\left|0\right\rangle }_{B}+{h}_{1}^{* }(t){\left|1\right\rangle }_{A}{\left|1\right\rangle }_{B}\right),\end{array}$$
(2)

with

$${h}_{1}(t)=\cos \left(\Delta t\right)+i\frac{{\omega }_{L}}{2\Delta }\sin \left(\Delta t\right),\quad {h}_{2}(t)=-i\frac{{\omega }_{{\rm{int}}}}{2\Delta }\sin \left(\Delta t\right)$$
(3)

and $$\Delta =\sqrt{{\omega }_{L}^{2}+{\omega }_{{\rm{int}}}^{2}}/2$$. The unitary operation $${{\mathcal{U}}}_{AB}(t)$$ accounting for the trajectories in Eq. (2) can be cast in the following form:

$${{\mathcal{U}}}_{AB}(t)={e}^{i{\omega }_{L}t}\left|0\right\rangle {\left\langle 0\right|}_{A}\otimes {{\mathcal{P}}}_{B}(t)+{e}^{-i{\omega }_{L}t/2}\left|1\right\rangle {\left\langle 1\right|}_{A}\otimes {{\mathcal{R}}}_{B}(t),$$
(4)

with $${{\mathcal{P}}}_{B}(t)\equiv {\rm{diag}}[1,{e}^{-i{\omega }_{L}t}]$$ a phase gate on qubit B and $${{\mathcal{R}}}_{B}(t)$$ a single-qubit rotation of a time-dependent angle φ = Δt around an axis identified by the vector $${\bf{n}}=(\sin \zeta ,0,\cos \zeta )$$, where $$\zeta ={\cos }^{-1}({\omega }_{L}/2\Delta )$$. The transformations in Eq. (2) thus correspond to those imparted by our gate, up to phases $$\cos \theta =| {h}_{1}(t)|$$, $$\sin \theta =| {h}_{2}(t)|$$ that, as we will see, do not influence the energetics of the process. We can then rely on our model to analyze the computation processes from an out-of-equilibrium thermodynamic perspective.

### Energy and entropy distributions

The framework for the inference of the statistics of energetics arising from Eq. (4) relies on two crucial points:

1. 1.

We adopt the tool provided by the TPM scheme to characterize energy and entropy distributions. This implies the application of two projective measurements onto the energy eigenstates of the two-qubit system at the initial and final times of the evolution of the system.

2. 2.

We assume to apply only local energy measurements. We will thus be unable to access quantum correlations between A and B.

In light of the first energy measurement entailed by the TPM approach, any quantum coherence potentially present in the initial state of the system is destroyed. While this is an intrinsic feature of the chosen approach to the inference of energy fluctuations, recently alternative methodologies have been developed, which enable the retention of the effects of initial quantum coherences28,29,30,31,32,33. The use of such approaches in the context of our investigation will be reported elsewhere.

Point 2 has a deep implication: one has access only to the energy values pertaining to the local Hamiltonian of the two qubits. This means that, at the end of the protocol, the energy of A and B will be one of the eigenvalues of the Hamiltonian terms $${{\mathcal{H}}}_{{L}_{A}}\equiv \hslash {\omega }_{L}({\sigma }_{A}^{z}\otimes {\mathbb{I}})/2$$ and $${{\mathcal{H}}}_{{L}_{B}}\equiv \hslash {\omega }_{L}({\mathbb{I}}\otimes {\sigma }_{B}^{z})/2$$, that is, $${E}_{{j}_{k}}$$ (j = 0, 1 and k = A, B). In order to realize this, we introduce the local measurement operators

$${\Pi }_{{\psi }_{A}{\phi }_{B}}\equiv \left|\psi \right\rangle {\left\langle \psi \right|}_{A}\otimes \left|\phi \right\rangle {\left\langle \phi \right|}_{B},$$
(5)

with ψ, ϕ = 0, 1. Each of the four projectors $${\Pi }_{{\psi }_{A}{\phi }_{B}}$$ is associated with the corresponding energy value $${E}_{{\psi }_{A}{\phi }_{B}}={E}_{{\psi }_{A}}+{E}_{{\phi }_{B}}$$. Those values correspond to stochastic realizations of the composite system at a given time instant t. We should stress how these stochastic realizations $${E}_{{\psi }_{A}{\phi }_{B}}$$ do not contain any correlation originated by the interaction Hamiltonian $${{\mathcal{H}}}_{{\rm{int}}}$$. In what follows, we will express the values of $${E}_{{\psi }_{A}{\phi }_{B}}$$ in units of $$\hslash$$ωL, so that $${E}_{{\psi }_{A}{\phi }_{B}}\in \{-2,0,2\}$$.

The energy variations are then observed under the lens of the probability distributions associated to the stochastic energy changes [cf. Appendices A and B for the formal definition of energy and entropy production]. In the chosen computational basis and by encoding the binary value of ψAϕB in the integer m so that $${E}_{{\psi }_{A}{\phi }_{B}}\equiv {E}_{m}$$, the system energy variation reads $$\Delta {E}_{m,n}\equiv {E}_{m}^{{\rm{fin}}}-{E}_{n}^{{\rm{in}}}$$17,23. Thus, $${E}_{n}^{{\rm{in}}}$$ ($${E}_{m}^{{\rm{fin}}}$$) is the measured energy of the quantum system at the initial (final) time t0 (tfin).

The probability distribution of the energy variations ΔE can be then formally written as:

$${\rm{Prob}}(\Delta E)=\mathop{\sum}\limits_{m,n}\delta (\Delta E-\Delta {E}_{m,n})p({E}_{n}^{{\rm{in}}},{E}_{m}^{{\rm{fin}}})\ ,$$
(6)

where δ(x) is the Kronecker delta with argument x, and $$p({E}_{n}^{{\rm{in}}})=p({E}_{{\psi }_{A}{\phi }_{B}}^{{\rm{in}}})\equiv {\rm{Tr}}[{\rho }_{0}\ {\Pi }_{{\psi }_{A}{\phi }_{B}}^{{\rm{in}}}]$$ is the probability that the initial value of energy is $${E}_{n}^{{\rm{in}}}$$. Moreover,

$$p({E}_{n}^{{\rm{in}}},{E}_{m}^{{\rm{fin}}})={\rm{Tr}}\left[{\Pi }_{{\psi }_{A}{\phi }_{B}}^{{\rm{fin}}}{U}_{{t}_{{\rm{fin}}}}{\Pi }_{{\psi }_{A}{\phi }_{B}}^{{\rm{in}}}{U}_{{t}_{{\rm{fin}}}}^{\dagger }\right]p({E}_{n}^{{\rm{in}}})$$
(7)

denotes the joint probability to measure $${E}_{n}^{{\rm{in}}}$$ at t0 and $${E}_{m}^{{\rm{fin}}}$$ at tfin by performing local measurements at time t, whereby $${\Pi }_{{\psi }_{A}{\phi }_{B}}^{t}\equiv {\Pi }_{{\psi }_{A}}^{t}\otimes {\Pi }_{{\phi }_{B}}^{t}$$. More details can be found in the “Methods” section. Notice that we have denoted as ρ0 the initial state of the system before the first measurement of the TPM scheme is performed. The initial state ρ0 can be an arbitrary density operator, including the case of initial states with quantum coherence in the energy (Hamiltonian) basis of the system. This means that, by applying a TPM scheme, all the information about ρ0 is contained in the probability $$p({E}_{k}^{{\rm{in}}})$$34. Finally, it is worth observing that experimentally (as it will shown below) the conditional probabilities $$p({E}_{n}^{{\rm{in}}},{E}_{m}^{{\rm{fin}}})/p({E}_{n}^{{\rm{in}}})\equiv p({E}_{n}^{{\rm{in}}}| {E}_{m}^{{\rm{fin}}})$$ can be obtained by initializing the system in the product states $${\Pi }_{{\psi }_{A}{\phi }_{B}}^{{\rm{in}}}$$, letting it evolve according to $${{\mathcal{H}}}_{{\rm{tot}}}$$ and then measuring its energy at final time tfin.

### Experimental characterization

In the previous section, we have established a connection between the action of our gate in Fig. 1 and the dynamics encompassed in Eq. (2); we can thus proceed to its characterization.

We first address the energy fluctuations observed in the local energy basis. The specific structure of Eq. (2) imposes stringent constraints to the values assumed by the conditional probabilities $$p({E}_{m}^{{\rm{fin}}}| {E}_{n}^{{\rm{in}}})$$. In particular, one finds that the only conditional probabilities different from zero are $$p({E}_{{0}_{A}{0}_{B}}^{{\rm{fin}}}| {E}_{{0}_{A}{0}_{B}}^{{\rm{in}}})=p({E}_{{0}_{A}{1}_{B}}^{{\rm{fin}}}| {E}_{{0}_{A}{1}_{B}}^{{\rm{in}}})=1$$ and

$$\begin{array}{l}p({E}_{{1}_{A}{0}_{B}}^{{\rm{fin}}}| {E}_{{1}_{A}{0}_{B}}^{{\rm{in}}}),\quad p({E}_{{1}_{A}{0}_{B}}^{{\rm{fin}}}| {E}_{{1}_{A}{1}_{B}}^{{\rm{in}}}),\\ p({E}_{{1}_{A}{1}_{B}}^{{\rm{fin}}}| {E}_{{1}_{A}{0}_{B}}^{{\rm{in}}}),\quad p({E}_{{1}_{A}{1}_{B}}^{{\rm{fin}}}| {E}_{{1}_{A}{1}_{B}}^{{\rm{in}}}),\end{array}$$
(8)

which are all functions of h1(t) and h2(t). Notice that the trajectories associated with the conditional probabilities in Eq. (8) leave qubit A in the logical state $${\left|1\right\rangle }_{A}$$ and modify the state of qubit B. As first step, we have thus experimentally reconstructed the conditional probabilities using the experimental apparatus in Fig. 1. In this regard, in Fig. 2 we plot the comparison between the joint probabilities $$p({E}_{{1}_{A}{\phi }_{B}}^{{\rm{in}}},{E}_{{1}_{A}{\phi }_{B}}^{{\rm{fin}}})$$ as obtained by numerical simulations and the analysis of the experimental data. As $$p({E}_{k}^{{\rm{in}}})$$ depends on the specific choice of the initial state ρ0 of the two-qubit system, also the joint probabilities in Fig. 2 would bear a dependence on the value taken for ρ0. Although, in principle, any choice of ρ0 would be equally valid, the test of Landauer principle reported later requires a thermal initial density operator. We have thus considered

$${\rho }_{0} = \mathop {\bigotimes}\limits_{k = A,B}\frac{{e}^{-{\beta }_{k}{\omega }_{L}{\sigma }_{k}^{z}}}{{\rm{Tr}}[{e}^{-{\beta }_{k}{\omega }_{L}{\sigma }_{k}^{z}}]},$$
(9)

where $${\beta }_{A}=\frac{1}{2{\omega }_{L}}\mathrm{ln}\,\frac{\alpha }{1-\alpha }$$ with α [0, 1], and βB = 1/(2ωL). In our case, we have chosen α = 0.2, so as to ensure a prominent asymmetry among the populations of qubit A. Equation (9) has been simulated measuring single-photon orthogonal polarization states for a time-interval proportional to the probability that such polarization state occurs in ρ0. The desired state can be obtained by mixing the weights of the two polarization states.

In Fig. 3a we plot the first 5 statistical moments 〈ΔEh〉, h = 1, $$\ldots$$, 5, of the probability distribution pertaining to the energy variation during the implemented process, that is,

$$\langle \Delta {E}^{h}\rangle \equiv {\mathop{\sum}\limits _{n,m}}p({E}_{n}^{{\rm{in}}},{E}_{m}^{{\rm{fin}}})\Delta {E}_{m,n}^{h}\,,$$
(10)

depending on the evolution time t. From Fig. 3, one can observe that all the energy statistical moments have a periodic time behavior with maximum values in correspondence of $${\omega }_{L}t=k\pi /\sqrt{26}\approx 0.62$$, with k integer number. Moreover, being the error in the experimental data larger at $${\omega }_{L}t=k\pi /\sqrt{26}$$, it is worth also noting that the curves of 〈ΔEh〉 obtained by the experiment with h ≥ 4 lose in accuracy in such points. This generally holds also for the other figures. Deviations of the experimental data from theoretical expectations are mostly due to two factors. The first is the non-ideal visibility of quantum interference due to the differences between the effective values of the transmittivity of the PPBS used to implement our gate from the ideal one (cf. Fig. 1). The second is the presence of random accidental counts, which decrease this visibility even further. In terms of energetics, these imperfections are reflected in a smaller values of the observed high-order energy moments close to the maximum achieved at ωLt 0.62, which turns out to be a very sensitive working point. The energy lost to the environment limits the extent of the fluctuations.

Any non-equilibrium process results in the production of irreversible entropy Δσ22, which embodies a thermodynamic quantifier of the breakdown of time-reversal symmetry19 and a non-equilibrium restatement of the second law of thermodynamics. At the quantum level, its values are determined by the competition of two sources of randomness: a classical one associated with the choice of initial state [cf. Eq. (9)] and a quantum mechanical one induced by the stochastic nature of quantum trajectories, which renders entropy production an inherently aleatory quantity.

One can thus introduce the associated probability distribution for the quantum entropy production19,22 to study the statistics of such quantity. As illustrated in “Methods” section, for any unitary dynamical evolution, $$\Delta {\sigma }_{m,n}\equiv \Delta \sigma ({E}_{m}^{{\rm{fin}}},{E}_{n}^{{\rm{in}}})$$ obeys a quantum fluctuation theorem20,21,22 so that

$$\Delta {\sigma }_{m,n}=\mathrm{ln}\,[p({E}_{n}^{{\rm{in}}})/p({E}_{m}^{{\rm{fin}}})]\,,$$
(11)

where $$p({E}_{n}^{{\rm{in}}})$$ and $$p({E}_{m}^{{\rm{fin}}})$$ denote the probabilities to measure the nth and mth energy outcome at t0 and tfin, respectively. In particular, $$p({E}_{m}^{{\rm{fin}}})$$ is given by the following relation:

$$\begin{array}{ccc}p({E}_{m}^{{\rm{fin}}})&\equiv &{\rm{Tr}}[{\rho }_{{\rm{fin}}}\ {\Pi }_{{\psi }_{A}{\phi }_{B}}^{{\rm{fin}}}]\\ &=&{\rm{Tr}}[{{\mathcal{U}}}_{AB}({t}_{{\rm{fin}}})\ {\rho }_{{\rm{in}}}\ {{\mathcal{U}}}_{AB}^{\dagger }({t}_{{\rm{fin}}}){\Pi }_{{\psi }_{A}{\phi }_{B}}^{{\rm{fin}}}]\,,\end{array}$$
(12)

where ρfin is the density operator of the bipartite quantum system at the end of its dynamical evolution. ρfin can be experimentally obtained by preparing the quantum system in the ensemble average

$${\rho }_{{\rm{in}}}={\mathop{\sum}\limits _{{\psi }_{A}{\phi }_{B}}}p({E}_{{\psi }_{A}{\phi }_{B}}^{{\rm{in}}}){\Pi }_{{\psi }_{A}{\phi }_{B}}^{{\rm{in}}}$$
(13)

after the first energy measurement of the TPM scheme and then letting it evolve. Since the unitary operator $${{\mathcal{U}}}_{AB}(t)$$ acts separately on qubits A and B by means of product state operations, also the final probability $$p({E}_{m}^{{\rm{fin}}})$$ as well as the 16 realizations of the stochastic quantum entropy production have been obtained by experimental data. Further details are in “Methods” section.

The statistics of Δσ is determined by evaluating the corresponding probability distribution Prob(Δσ). As shown in “Methods”, this is given by

$${\rm{Prob}}(\Delta \sigma )={\mathop{\sum}\limits _{n,m}}\delta \left(\Delta \sigma -\Delta \sigma ({E}_{n}^{{\rm{in}}},{E}_{m}^{{\rm{fin}}})\right)p({E}_{n}^{{\rm{in}}},{E}_{m}^{{\rm{fin}}})\,,$$
(14)

where the joint probabilities $$p({E}_{n}^{{\rm{in}}},{E}_{m}^{{\rm{fin}}})$$ are the same of those used to derive the energy probability distribution. Thus, having experimentally measured the joint probabilities $$p({E}_{n}^{{\rm{in}}},{E}_{m}^{{\rm{fin}}})$$ [cf. Fig. 2] and then obtained the stochastic realizations of Δσ, we can directly derive the statistical moments of the entropy distribution. In Fig. 4 we plot the comparison between the experimental and theoretical statistical moments

$$\langle \Delta {\sigma }^{h}\rangle \equiv {\mathop{\sum}\limits_{n,m}}p({E}_{n}^{{\rm{in}}},{E}_{m}^{{\rm{fin}}})\Delta {\sigma }_{m,n}^{h}\,.$$
(15)

The experimental evidence shows a good agreement with the theoretical predictions. Moreover, an important physical point can be drawn: the black line and dots in Fig. 4, which show the behavior of the average stochastic entropy production, closely resembles the trend followed by the l1-norm of quantum coherence35

$${C}_{{l}_{1}}(\rho )={\mathop{\sum}\limits _{i\ne j}}| {\rho }_{ij}|,$$
(16)

with ρij denoting the (i, j) entry of the density matrix ρ. When evaluated for the last two trajectories in Eq. (2), $${C}_{{l}_{1}}$$ follows the same trend as shown in Fig. 5. The stationary points of $${C}_{{l}_{1}}$$ achieved at $${\omega }_{L}t=k\pi /\sqrt{26}\,(k=1,2,3)$$ correspond to analogous extremal points for 〈Δσ〉, thus corroborating the expectation that dynamically created quantum coherence play a crucial role in the determination of the amount of irreversible entropy generated across a non-equilibrium process36,37. As a matter of fact, quantum coherence embodies an additional source of entropy production that adds to the (classical) contribution provided by the populations of the density matrix under analysis. The experimental simulation of a non-equilibrium process discussed in this paper provides a striking instance of such interplay between classical and genuinely quantum contributions to entropy production and strikingly connects them to the functionality of the gate encompassing the dynamics that we have addressed.

Such connections are reinforced by the assessment of a Landauer-like relation connecting stochastic energetics between qubit A and B and the associated entropy production, which can be cast as38,39,40

$$\beta \langle \Delta E\rangle \ge \langle \Delta \sigma \rangle \ ,$$
(17)

where β is the inverse temperature of the initial reduced state of qubit B. Figure 6 compares the ratio 〈ΔE〉/〈Δσ〉 with 1/β, showing full agreement with the predictions of Landauer principle and demonstrating an enhanced energy-to-entropy trade-off at the time minimizing the entropy production. The experimental dataset underestimates the energy-to-entropy ratio close to the maximum achieved at ωLt 0.62. This is due to the fact that the experimental value of 〈Δσ〉 at such time deviates from the nearly null expected one, thus lowering the observed ratio 〈ΔE〉/〈Δσ〉.

While the results reported here refer to the initial thermal state in Eq. (9), as mentioned earlier, our general methodology for the inference of 〈ΔE〉 and 〈Δσ〉 do not depend on the specific choice of ρ0. Thus, it could be also used to measure Clausius-like relations for an arbitrary quantum system, without initializing the system in a thermal state, which would embody an interesting development of the endeavors reported here.

## Discussions

We have performed the theoretical and experimental characterization of the energetics of a quantum gate implementing a controlled two-qubit quantum gate. Using tools specifically designed for the quantification of energy changes resulting from a non-equilibrium process, we have inferred the statistics of quantum energy fluctuations and entropy production resulting from the implementation of such gate in a linear-optics platform where information carriers are encoded in the polarization of two photons.

The inferred statistics brings about clear signatures of the influence of quantum coherence generated in the state of the two qubits by the quantum gate, and allows for the test of the energy-to-entropy trade-off embodied by Landauer principle, thus connecting in a quantitative manner logical and thermodynamic irreversibility entailed by the experimental process that we have realized. Our investigation is aligned with current efforts aimed to bridge quantum thermodynamics and quantum information processing, which hold the promises to deliver a deeper understanding of the origin of quantum advantage, based on non-equilibrium thermodynamics.

Our experiment was purposely chosen as the simplest instance for the sake of clarity. It will be interesting to extend our study to recent coherence-preserving approaches to the quantification of the distribution of energy fluctuations28,29,30,31,32 to check the influences that such key quantity has on the energetic footprint of the gate. Moreover, consideration should also be given to multi-qubit gates to check if the full detail of the circuital scheme needs being taken into account for the drawing of suitable thermodynamic bounds.

## Methods

### Energy change distribution

At the nanoscale, non-equilibrium fluctuations play a crucial role and we expect that they are responsible for the irreversible exchange of energy between the system and the external environment. In this regard, the energy change $$\Delta {E}_{m,k}\equiv {E}_{m}^{{\rm{fin}}}-{E}_{k}^{{\rm{in}}}$$ during the evolution of the system is defined as the difference between the measured energy of the quantum system, respectively before (1st energy measurement at t0) and after (2nd energy measurement at tfin) its dynamics. The Hamiltonian of the system is assumed to be time-independent, so that the energy values that the system can take remain the same during all its dynamics: no coherent modulation of the Hamiltonian is indeed considered. For this reason, no “mechanical” work is produced by or on the system, with the result that all the energy variations have to be ascribed to loss into the environment in the form of heat. In case the Hamiltonian of the system is time-independent and energy changes are induced by measurement processes, one could refer to quantum-heat17,41.

As usual, the probability distribution of ΔE is given by the combinatorial combination of the Kronecker delta δE − ΔEm,k) weighted by the joint probability $$p({E}_{k}^{{\rm{in}}},{E}_{m}^{{\rm{fin}}})$$ to measure $${E}_{k}^{{\rm{in}}}$$ at t0 and $${E}_{m}^{{\rm{fin}}}$$ at tfin. Formally, one has

$${\rm{Prob}}(\Delta E)=\mathop{\sum}\limits _{k,m}\delta (\Delta E-\Delta {E}_{m,k})p({E}_{k}^{{\rm{in}}},{E}_{m}^{{\rm{fin}}})\,.$$
(18)

The expression of the joint probabilities $$p({E}_{k}^{{\rm{in}}},{E}_{m}^{{\rm{fin}}})$$, as well as the specific values of $${E}_{k}^{{\rm{in}}}$$ and $${E}_{m}^{{\rm{fin}}}$$, changes whether we apply global or local energy measurements on the bipartite quantum system. Here, we will analyze only the case of applying local energy measurements, for which we just take into account the local Hamiltonian $${{\mathcal{H}}}_{{L}_{A}}$$ and $${{\mathcal{H}}}_{{L}_{B}}$$ of A and B. They can be generally decomposed as

$${{\mathcal{H}}}_{{L}_{A}}=\mathop{\sum}\limits_{{\psi }_{A}\in \{H,V\}}{E}_{{\psi }_{A}}{\Pi }_{{\psi }_{A}},\ \ \ {{\mathcal{H}}}_{{L}_{B}}=\mathop{\sum}\limits_{{\phi }_{B}\in \{H,V\}}{E}_{{\phi }_{B}}{\Pi }_{{\phi }_{B}},$$
(19)

with $$\{\left|H\right\rangle ,\left|V\right\rangle \}$$ computational basis of the single partition (qubit). As a remark, observe that the complete (or maximally informative) characterization of energy and entropy production of a multipartite quantum system is achieved by performing global measurements, since also the effects of (quantum) correlations between each partition are properly taken into account. However, local measurements are simpler to be performed and sometimes they constitute the only experimentally possible solution.

Hence, if only local energy measurements are performed, the joint probabilities of the distribution Prob(ΔE) are generally provided by the following relation:

$$p({E}_{k}^{{\rm{in}}},{E}_{m}^{{\rm{fin}}})\equiv {\rm{Tr}}\left[({\Pi }_{{\psi }_{A}}^{{\rm{fin}}}\otimes {\Pi }_{{\phi }_{B}}^{{\rm{fin}}}){\Lambda }_{{t}_{{\rm{fin}}}}[{\Pi }_{{\psi }_{A}}^{{\rm{in}}}\otimes {\Pi }_{{\phi }_{B}}^{{\rm{in}}}]\right]p({E}_{k}^{{\rm{in}}}),$$
(20)

where Λt is a complete positive trace preserving map42 modeling the evolution of the system, while

$$p({E}_{k}^{{\rm{in}}})\equiv {\rm{Tr}}[({\Pi }_{{\psi }_{A}}^{{\rm{in}}}\otimes {\Pi }_{{\phi }_{B}}^{{\rm{in}}}){\rho }_{0}({\Pi }_{{\psi }_{A}}^{{\rm{in}}}\otimes {\Pi }_{{\phi }_{B}}^{{\rm{in}}})],$$
(21)

with ρ0 the initial density operator.

### Quantum entropy distribution

The fluctuations of the stochastic entropy production of a quantum system obey quantum fluctuation theorems16,20,21,22. They are determined by evaluating the forward and backward processes associated to the dynamical evolution of the system. In particular, one can find that the stochastic quantum entropy production Δσm,n equals to

$$\Delta \sigma ({a}_{m}^{{\rm{fin}}},{a}_{k}^{{\rm{in}}})\equiv \mathrm{ln}\,\frac{{p}_{{\rm{F}}}({a}_{m}^{{\rm{fin}}},{a}_{k}^{{\rm{in}}})}{{p}_{{\rm{B}}}({a}_{k}^{{\rm{in}}},{a}_{m}^{{\rm{ref}}})}\,,$$
(22)

where $${p}_{{\rm{F}}}({a}_{m}^{{\rm{fin}}},{a}_{k}^{{\rm{in}}})$$ and $${p}_{{\rm{B}}}({a}_{k}^{{\rm{in}}},{a}_{m}^{{\rm{ref}}})$$ are the joint probabilities to simultaneously measure the outcomes {a} in a single realization of the forward (F) and backward (B) process, respectively. Instead, {a} denotes the set of measurement outcomes from a generic TPM scheme in which the measurement observables $${\mathcal{O}}$$ are not necessarily the system Hamiltonian at t0 and tfin. However, in our case the measurement outcomes {a} are chosen equal to the energies {E} of the system. Then, as proved in ref. 20, the outcome $${a}_{m}^{{\rm{ref}}}$$ refers to the state after the 1st measurement of the backward process, which is called reference state. If the evolution of the system is unital (in our case, the dynamics is simply unitary), then the stochastic quantum entropy production Δσm,n becomes

$$\Delta \sigma ({E}_{m}^{{\rm{fin}}},{E}_{k}^{{\rm{in}}})=\mathrm{ln}\,\frac{p({E}_{k}^{{\rm{in}}})}{p({E}_{m}^{{\rm{ref}}})}\,,$$
(23)

with $$p({E}_{m}^{{\rm{ref}}})$$ denoting the probability to get the measurement outcome $${E}_{m}^{{\rm{ref}}}$$. Although the quantum fluctuation theorem can be derived without imposing a specific operator for the reference state16, it is worth choosing the latter equal to the final density operator after the 2nd measurement of the forward process. This choice appears to be the most natural among the possible ones to design a suitable measuring scheme of general thermodynamic quantities, consistently with the quantum fluctuation theorem and the asymmetry of the second law of thermodynamics. This means that for our purposes the stochastic quantum entropy production is

$$\Delta \sigma ({E}_{m}^{{\rm{fin}}},{E}_{k}^{{\rm{in}}})=\mathrm{ln}\,p({E}_{k}^{{\rm{in}}})-\mathrm{ln}\,p({E}_{m}^{{\rm{fin}}})\,,$$
(24)

where $$p({E}_{m}^{{\rm{fin}}})$$ denotes the probability to measure the mth energy outcome at the final time instant tfin.

Experimentally, it is not possible in general to derive the stochastic realizations of the quantum entropy production of a multipartite quantum system by just performing local measurements. Specifically, it becomes feasible if the dynamical map of the composite system acts separately on each partition of the system and ρ0 is a product state. In such a case, indeed, one can write

$${\rho }_{{\rm{in}}}=\mathop{\sum}\limits _{n}p({E}_{n}^{{\rm{in}}}){\Pi }_{n}^{{\rm{in}}}$$
(25)

and

$$\begin{array}{lll}p({E}_{m}^{{\rm{fin}}})&=&\mathop{\sum}\limits_{n}p({E}_{n}^{{\rm{in}}}){\rm{Tr}}\left[{\Lambda }_{{t}_{{\rm{fin}}}}[{\Pi }_{n}^{{\rm{in}}}]{\Pi }_{m}^{{\rm{fin}}}\right]\\ &=&\mathop{\sum}\limits_{n}p({E}_{m}^{{\rm{fin}}}| {E}_{n}^{{\rm{in}}})p({E}_{n}^{{\rm{in}}}),\end{array}$$
(26)

where $${\Pi }_{n}^{{\rm{in}}}\equiv {\Pi }_{A}^{{\rm{in}}}\otimes {\Pi }_{B}^{{\rm{in}}}$$. Thus, by experimentally measuring the conditional probabilities $$p({E}_{m}^{{\rm{fin}}}| {E}_{n}^{{\rm{in}}})$$ and the set $$\{p({E}_{n}^{{\rm{in}}})\}$$, one can also determine the set $$\{p({E}_{m}^{{\rm{fin}}})\}$$ of final probabilities, as well as the 16 realizations of the stochastic quantum entropy production—see Fig. 7. In Fig. 7, one can observe that only the black and red lines are not constant in time: they all correspond to the situation of finding qubit A at tfin in the eigenstate $${\left|1\right\rangle }_{A}$$ of the local Hamiltonian $${{\mathcal{H}}}_{{L}_{A}}$$.

Now, let us introduce the probability distribution Prob(Δσ). Depending on the values assumed by the measurement outcomes {Ein} and {Efin}, Δσ is a fluctuating variable. Thus, each time we repeat the TPM scheme, we have a different realization for Δσ within a set of discrete values. The probability distribution Prob(Δσ) is fully determined by the knowledge of the measurement outcomes and the respective probabilities. As proved in refs. 20,21, it is equal to

$${\rm{Prob}}(\Delta \sigma )=\mathop{\sum}\limits_{k,m}\delta \left(\Delta \sigma -\Delta \sigma ({E}_{k}^{{\rm{in}}},{E}_{m}^{{\rm{fin}}})\right)p({E}_{k}^{{\rm{in}}},{E}_{m}^{{\rm{fin}}}).$$

Once again, it is worth noting that the specific values of $${E}_{k}^{{\rm{in}}}$$ and $${E}_{m}^{{\rm{fin}}}$$ change whether we apply global or local energy measurements on the bipartite quantum system.

### Comparison between energy change and entropy distributions

The trends followed by the statistical moments of the energy changes and entropy production is markedly different. While the moments of ΔE (up to those reported in this work) are all positive within the time window that we have addressed, $$\langle \Delta \sigma^{3}\rangle$$ and $$\langle \Delta \sigma^{5} \rangle$$ can take negative values. These features have implications in the shape taken by the respective probability distributions, which are reported in Fig. 8 for two choices of the rescaled time: the distribution of energy changes showcases a larger skewness with a short and fat right tail. The indefinite signs taken by the moments of the entropy production, on the other hand, keep the corresponding distribution very symmetric around Δσ = 0.

### Error analysis

In Fig. 9 we report the absolute difference between the theoretical and experimental joint probabilities for various initial–final configurations of the system, against the rescaled time ωLt. The trend followed by such discrepancies is consistent across the various initial–final configurations that we have considered, with larger values showcases close to ωLt 0.62.

## Data availability

Data are available to any reader upon reasonable request.

## References

1. Preskill, J. Quantum computing in the NISQ era and beyond. Quantum 2, 79 (2018).

2. Degen, C. L., Reinhard, F. & Cappellaro, P. Quantum sensing. Rev. Mod. Phys. 89, 035002 (2017).

3. Ronnow, T. F. Defining and detecting quantum speedup. Science 345, 420 (2014).

4. Deffner, S. & Campbell, S. Quantum Thermodynamics: An Introduction to the Thermodynamics of Quantum Information (Morgan & Claypool Publishers, 2019).

5. Likharev, K. K. Classical and quantum limitations on energy consumption in computation. Int. J. Theor. Phys. 21, 311 (1982).

6. Parrondo, J. M., Horowitz, J. M. & Sagawa, T. Thermodynamics of information. Nat. Phys. 11, 131 (2015).

7. Pekola, J. P. Towards quantum thermodynamics in electronic circuits. Nat. Phys. 11, 118 (2015).

8. Passos, M. H. M., Santos, A. C., Sarandy, M. S. & Huguenin, J. A. O. Optical simulation of a quantum thermal machine. Phys. Rev. A 100, 022113 (2019).

9. 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 (2003).

10. Kosloff, R. & Levy, A. Quantum heat engines and refrigerators: continuous devices. Annu. Rev. Phys. Chem. 65, 365 (2014).

11. Uzdin, R., Levy, A. & Kosloff, R. Equivalence of quantum heat machines, and quantum-thermodynamic signatures. Phys. Rev. X 5, 031044 (2015).

12. Campisi, M., Pekola, J. & Fazio, R. Nonequilibrium fluctuations in quantum heat engines: theory, example, and possible solid state experiments. N. J. Phys. 17, 035012 (2015).

13. Gardas, B. & Deffner, S. Quantum fluctuation theorem to benchmark quantum annealers. Sci. Rep. 8, 17191 (2018).

14. Buffoni, L. & Campisi, M. Thermodynamics of a quantum annealer. Quantum Sci. Technol. 5, 035013 (2020).

15. Albash, T., Lidar, D. A., Marvian, M. & Zanardi, P. Fluctuation theorems for quantum process. Phys. Rev. A 88, 023146 (2013).

16. Sagawa, T. in Lectures on Quantum Computing, Thermodynamics and Statistical Physics (eds Nakahara, M. et al.) (World Scientific, 2013).

17. Gherardini, S. Nonequilibrium quantum-heat statistics under stochastic projective measurements. Phys. Rev. E 98, 032108 (2018).

18. Hernandez-Gomez, S. Experimental test of exchange fluctuation relations in an open quantum system. Phys. Rev. Res. 2, 023327 (2020).

19. Batalhao, T. B. Irreversibility and the arrow of time in a quenched quantum system. Phys. Rev. Lett. 115, 190601 (2015).

20. Gherardini, S., Müller, M. M., Trombettoni, A., Ruffo, S. & Caruso, F. Reconstructing quantum entropy production to probe irreversibility and correlations. Quantum Sci. Technol. 3, 035013 (2018).

21. Manzano, G., Horowitz, J. M. & Parrondo, J. M. R. Quantum fluctuation theorems for arbitrary environments: adiabatic and nonadiabatic entropy production. Phys. Rev. X 8, 031037 (2018).

22. Batalhão, T. B., Gherardini, S., Santos, J. P., Landi, G. T. & Paternostro, M. in Thermodynamics in the Quantum Regime (eds Binder, F., Correa, L. A., Gogolin, C., Anders, J., Adesso, G.) (Springer, 2018).

23. Talkner, P., Lutz, E. & Hänggi, P. Fluctuation theorems: work is not an observable. Phys. Rev. E 75, 050102(R) (2007).

24. Daley, A. J. Quantum trajectories and open many-body quantum systems. Adv. Phys. 63, 77 (2014).

25. Langford, N. K. et al. Demonstration of a simple entangling optical gate and its use in Bell-state analysis. Phys. Rev. Lett. 95, 210504 (2005).

26. Kiesel, N., Schmid, C., Weber, U., Ursin, R. & Weinfurter, H. Linear optics control-phase gate made simple. Phys. Rev. Lett. 95, 210505 (2005).

27. Okamoto, R., Hofmann, H. F., Takeuchi, S. & Sasaki, K. Demonstration of an optical quantum control-NOT gate without path interference. Phys. Rev. Lett. 95, 210506 (2005).

28. Allahverdyan, A. E. Nonequilibrium quantum fluctuations of work. Phys. Rev. E 90, 032137 (2014).

29. Miller, H. J. D. & Anders, J. Time-reversal symmetric work distributions for closed quantum dynamics in the histories framework. N. J. Phys. 19, 062001 (2017).

30. Levy, A. & Lostaglio, M. A quasiprobability distribution for heat fluctuations in the quantum regime. Phys. Rev. X Quantum 1, 010309 (2019).

31. Micadei, K., Lutz, E. & Landi, G. T. Quantum fluctuation theorems beyond two-point measurements. Phys. Rev. Lett. 124, 090602 (2020).

32. Gherardini, S., Belenchia, A., Paternostro, M. & Trombettoni, A. The role of quantum coherence in energy fluctuations. Preprint at https://arxiv.org/abs/2006.06208 (2020).

33. García Díaz, M., Guarnieri, G. & Paternostro, M. Quantum work statistics with initial coherence. Entropy 22, 1223 (2020).

34. Perarnau-Llobet, M., Bäumer, E., Hovhannisyan, K. V., Huber, M. & Acin, A. No-Go Theorem for the characterization of work fluctuations in coherent quantum systems. Phys. Rev. Lett. 118, 070601 (2017).

35. Baumgratz, T., Cramer, M. & Plenio, M. B. Quantifying coherence. Phys. Rev. Lett. 113, 140401 (2014).

36. Santos, J. P., Céleri, L. C., Landi, G. T. & Paternostro, M. The role of quantum coherence in non-equilibrium entropy production. npj Quant. Inf. 5, 23 (2019).

37. Francica, G., Goold, J. & Plastina, F. The role of coherence in the non-equilibrium thermodynamics of quantum systems. Phys. Rev. E 99, 042105 (2019).

38. Reeb, D. & Wolf, M. M. An improved Landauer principle with finite-size corrections. N. J. Phys. 16, 103011 (2014).

39. Goold, J., Paternostro, M. & Modi, K. Nonequilibrium quantum Landauer principle. Phys. Rev. Lett. 114, 060602 (2015).

40. Yan, L. L. Single-atom demonstration of the quantum Landauer principle. Phys. Rev. Lett. 120, 210601 (2018).

41. Elouard, C., Herrera-Martì, D. A., Clusel, M. & Aufféves, A. The role of quantum measurement in stochastic thermodynamics. npj Quant. Inf. 3, 9 (2017).

42. Caruso, F., Giovannetti, V., Lupo, C. & Mancini, S. Quantum channels and memory effects. Rev. Mod. Phys. 86, 1203 (2014).

## Acknowledgements

We thank A. Belenchia for a critical reading of the manuscript and useful comments. S.G., L.B., and F.C. were financially supported by the Fondazione CR Firenze through the project Q-BIOSCAN and QUANTUM-AI, PATHOS EU H2020 FET-OPEN Grant No. 828946, and UNIFI Grant Q-CODYCES. S.G. also acknowledges the MISTI Global Seed Funds MIT-FVG grant program. M.P. gratefully acknowledges support by the H2020 Collaborative Project TEQ (Grant Agreement 766900), the SFI-DfE Investigator Program through project QuNaNet (grant number 15/IA/2864), the Leverhulme Trust through the Research Project Grant UltraQuTe (grant number RGP-2018-266) and the Royal Society through the Wolfson Fellowship scheme (RSWF R3 183013), and the International Exchange scheme (grant number IEC R2 192220).

## Author information

Authors

### Contributions

S.G., M.B., and M.P. conceived the original idea. S.G. and M.B. performed the initial calculations, which were then developed with the help of L.B., V.C., M.P., and F.C. V.C. led the experimental endeavors, with assistance by I.G. and M.S. All authors discussed the results and their interpretation. S.G., V.C., M.P., and M.B. wrote the manuscript with input from all the other authors. M.P., M.B., and F.C. supervised the project.

### Corresponding author

Correspondence to M. Barbieri.

## Ethics declarations

### Competing interests

The authors declare no competing interests.

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

## Rights and permissions

Reprints and Permissions

Cimini, V., Gherardini, S., Barbieri, M. et al. Experimental characterization of the energetics of quantum logic gates. npj Quantum Inf 6, 96 (2020). https://doi.org/10.1038/s41534-020-00325-7

• Accepted:

• Published:

• DOI: https://doi.org/10.1038/s41534-020-00325-7