Abstract
Quantum computers promise to tackle quantum simulation problems that are classically intractable1. Although a lot of quantum algorithms2,3,4 have been developed for simulating quantum dynamics, a general-purpose method for simulating low-temperature quantum phenomena remains unknown. In classical settings, the analogous task of sampling from thermal distributions has been largely addressed by Markov Chain Monte Carlo (MCMC) methods5,6. Here we propose an efficient quantum algorithm for thermal simulation that—akin to MCMC methods—exhibits detailed balance, respects locality and serves as a toy model for thermalization in open quantum systems. The enduring impact of MCMC methods suggests that our new construction may play an equally important part in quantum computing and applications in the physical sciences and beyond.
Similar content being viewed by others
Main
The equations governing quantum many-body physics are too complex to be solved analytically. Therefore, an arsenal of computational methods—including density functional theory7, tensor network representations8,9, and quantum Monte Carlo techniques10—has been developed for understanding low-temperature phenomena, ranging from phase transitions and reaction times to ground and thermal state equilibrium properties. However, these classical methods often break down in the presence of strong quantum correlations, for example, exhibited by heavy nuclei, high-temperature superconductors and catalysts.
Future quantum computers promise to solve quantum many-body problems that are classically intractable1. At present, a variety of increasingly sophisticated quantum algorithms have been developed for simulating quantum dynamics2,11,12. By contrast, for equilibrium properties, the search for particular physical instances in which quantum computers can substantially outperform classical methods remains an area of debate. The efficiency of most existing quantum algorithmic proposals for low-temperature physics13,14,15,16 relies on additional assumptions, which have been challenged in numerical studies17.
Classically, the many-body thermal simulation problem has been thoroughly addressed, largely by Markov Chain Monte Carlo methods (MCMC). Across a wide range of systems, Metropolis sampling5 and Glauber dynamics6 have been successful because of two key features. First, they satisfy detailed balance, which simultaneously lets us (1) prescribe a desired stationary distribution and (2) analyse their convergence (that is, mixing times and spectral gaps). Second, MCMC methods are often local algorithms, that is, the update rule depends only on very few particles at a time; locality gives not only efficient algorithms but also physical connections to how nature thermalizes in a heat bath.
However, quantum computing still lacks a definitive counterpart to MCMC algorithms, as existing proposals18,19,20,21 are nonlocal, break detailed balance, lack conceptual simplicity or require additional hard-to-verify assumptions. Moreover, the algorithm and its analysis in the promising early approach18 turns out to be incomplete (see Appendix H of ref. 22). As a consequence, progress in quantum thermal simulation remained limited for decades, raising the question whether exact quantum detailed balance should be compatible with the time–energy uncertainty principle—the primary source of difficulties rooted in quantum many-body Hamiltonians with noncommuting terms.
Here, we settle the open problem by giving an efficient quantum algorithm for quantum thermal simulation that satisfies quantum detailed balance exactly while also inheriting the locality of the Hamiltonian, up to a range depending on the temperature. Moreover, our algorithm resembles effective descriptions of open quantum system dynamics when coupling a system to a heat bath. Qualitatively, we expect our algorithm to serve as a minimal, self-contained toy model of thermalization: converging rapidly whenever a system thermalizes in nature and capturing what may physically happen in the case of slow mixing. We speculate that our algorithm might be among the first useful quantum simulation algorithms for low-temperature properties in the forthcoming fault-tolerant era of quantum computing. Furthermore, given the key role played by MCMC algorithms in problems across bioinformatics, social sciences, finance, Bayesian inference and machine learning, we expect an efficient and reliable quantum MCMC algorithm to be a cornerstone of quantum algorithmic development and quantum applications in physical sciences and beyond.
Quantum MCMC by master equations for thermalization
Our algorithmic solution to thermal simulation hinges on insights into how physical systems thermalize when coupled to a heat bath. In essence, we introduce a conceptually clear, physically motivated toy model of the thermalization process of nature that is also algorithmically efficient. Although early proposals for simulating thermalization directly considered simulating the global system–bath Hamiltonian evolution23, more tractable approaches use a master equation, or Lindbladian, to capture the effect of a large bath on the small system using a continuous-time Markovian process24,25. However, previous approaches inherited issues of the prototypical Davies generator26,27, which worked well in quantum optics but has unphysical features in noncommuting many-body systems because of the exponentially small level spacing. Our nature-inspired algorithm takes precisely the form of a Lindbladian, inherits the locality from the physical model, exactly satisfies detailed balance and resembles the interactions we expect from weak coupling to a Markovian thermal bath.
Continuous-time Markov chains and detailed balance
We begin by reviewing classical MCMC methods, in particular, continuous-time Markov chains defined using the rate matrix L describing infinitesimal transitions on probability distributions p(t)
where L satisfies that \({L}_{{s}^{{\prime} }s}\ge 0\) for each pair of distinct configurations s ≠ s′ and \({L}_{ss}=-\sum _{{s}^{{\prime} }\ne s}{L}_{{s}^{{\prime} }s}\) for each configuration s. These structural properties ensure that the time evolution can be described by the stochastic matrix p(t) = eLtp(0).
The detailed balance condition plays an important part in MCMC methods, requiring that the probability mass transfer between configuration pairs s, s′ is symmetric with respect to a target distribution π
If the target distribution π is the unique stationary state, we say the dynamics eLt is ergodic, and the algorithmic cost to sample from the stationary state is the simulation cost (per unit time t) multiplied by the convergence time (the mixing time) of the process.
Given an energy function H(s) of the configurations s, an inverse temperature β ≥ 0, and any real nonnegative symmetric transition rate matrix \({A}_{{s}^{{\prime} }s}\), Glauber dynamics6 is a specific continuous-time Markov chain satisfying detailed balance such that \({L}_{{s}^{{\prime} }s}={\gamma }_{{s}^{{\prime} }s}{A}_{{s}^{{\prime} }s}\,-\) \({\delta }_{{s}^{{\prime} }s}\sum _{{s}^{{\prime\prime} }}{\gamma }_{{s}^{{\prime\prime} }s}{A}_{{s}^{{\prime\prime} }s}\), where \({\gamma }_{{s}^{{\prime} }s}:= \frac{1}{1+{{\rm{e}}}^{\beta (H({s}^{{\prime} })-H(s))}}\). The process eLt can be efficiently simulated as long as the energy differences \(H({s}^{{\prime} })-H(s)\) can be computed efficiently for any pair of configurations s′, s. For example, in classical Ising models, the Hamiltonian is a sum over local interactions, and the energy difference H(s′) − H(s) can be computed locally (for transitions that only flip a few neighbouring spins at a time), leading to particularly simple update rules and a deep analytic understanding of mixing times. The robustness and simplicity of Glauber dynamics have led to a comprehensive understanding of phase transitions and thermal properties of classical magnets28.
Lindbladians and quantum detailed balance
The natural quantum counterpart, which arises in the study of open quantum systems, is a master equation, a continuous-time quantum Markov chain, or Lindbladian described by a set of Lindblad operators {Lj} and a coherent term C:
The above generic form is necessary and sufficient for the evolution \({{\rm{e}}}^{{\mathcal{L}}t}\) at every t ≥ 0 to be a valid quantum Markov chain; that is, a completely positive and trace-preserving map. Unlike in the classical case, quantum mechanics allows an additional Hermitian coherent term C = C† corresponding to the closed-system Schrödinger equation.
Consider an arbitrary noncommuting Hamiltonian with eigen decomposition \(H=\sum _{i}{E}_{i}| {\psi }_{i}\rangle \langle {\psi }_{i}| \). The quantum detailed balance condition with respect to the Gibbs state ρβ ∝ e−βH requires
which ensures exact stationarity \({\mathcal{L}}[{\rho }_{\beta }]=0\) such that \({{\rm{e}}}^{{\mathcal{L}}t}[{\rho }_{\beta }]={\rho }_{\beta }\) for all t ≥ 0 (refs. 18,29). The above reduces to classical detailed balance (equation (2)) when the states are diagonal in the energy basis (that is, \(| {\psi }_{1}^{{\prime} }\rangle =| {\psi }_{2}^{{\prime} }\rangle \) and |ψ1⟩ = |ψ2⟩). In general, the input quantum state can be a mixture of superpositions of different energy eigenstates, and quantum detailed balance (equation (4)) (specifically, the Kubo–Martin–Schwinger (KMS) detailed balance) requires the transition amplitudes between matrix elements to be related by a Boltzmann factor corresponding to the average of the energy differences \({E}_{1}^{{\prime} }-{E}_{1}\) and \({E}_{2}^{{\prime} }-{E}_{2}\) (Fig. 1).
a, Classical: for classical Gibbs distributions, the detailed balance condition is a pairwise relation between heating (red, ν > 0) and cooling (blue, ν < 0) transition rates, depending on the energy difference ν between states. b, Quantum: for quantum Gibbs states, the detailed balance condition refers to matrix elements of the density operator in the energy eigenbasis. Therefore, the relation depends on the respective energy differences ν1 and ν2 of the corresponding ‘kets’ and ‘bras’. In classical Markov chains, detailed balance can be achieved by rejecting a jump with a probability proportional to the energy difference. However, two key obstacles arise in implementing quantum detailed balance: (i) measuring energy difference precisely is algorithmically expensive and may disturb the state and (ii) undoing a jump on a quantum state is intricate as we do not have a priori knowledge of the quantum state beyond its energies, and we cannot keep a copy of quantum states before the jump because of quantum no-cloning theroems. Our construction circumvents these obstacles by smoothly manipulating the transition amplitudes using operator Fourier transforms with energy uncertainty of about 1/β and introducing a Lindbladian with a corrective coherent term.
Davies generators, the prototype of quantum detailed balance
In 1974, Davies26 rigorously derived a Lindbladian from first principles by considering a physical system interacting with a large thermal bath in the weak-coupling and infinite-time limit. Suppose that A is a Hermitian jump operator through which the system is perturbed by the bath (for example, a local Pauli operator); then, the corresponding Lindblad operators Lν in the Davies generator are given by a certain Fourier transform of the Heisenberg dynamics
These Lindblad operators Lν are labelled by the Bohr frequencies ν = Ei − Ej ∈ B(H), that is, energy differences between any two eigenstates of the Hamiltonian. Colloquially, Aν contains ‘the transition amplitudes in A that change the energy by ν’, which is precisely what the above operator Fourier transform extracts. The transition weights γ(ν) satisfy the relation γ(ν)eβν = γ(−ν), whereas their exact form depends on the relaxation dynamics of the bath (see section ‘Comparison with physically derived master equations’, Methods). The transition weights γ(ν) favour cooling (where energy decreases, ν < 0) and exponentially suppress heating (where energy increases, ν > 0). For diagonal input states and jumps A that preserve diagonal states, taking γ(ν) = 1/(1 + eβν) or \(\gamma (\nu )={{\rm{e}}}^{-\max (\beta \nu ,0)}\), the Davies generator recovers the classical Glauber or Metropolis dynamics, respectively.
Issues with the Davies generator and previous works
The Davies generator fails to be the definite quantum analogue of Glauber dynamics: while satisfying quantum detailed balance and thus enjoying the desirable mathematical properties, it cannot be implemented efficiently for general many-body systems. The crucial problem is the infinite time integral (equation (5)), which is necessary, because of energy–time uncertainties, for identifying the exact energy difference between eigenstates. The derivation of the Davies generator intends to capture an infinite-time weak-coupling system–bath dynamics and, therefore, has been considered only physical for models in which the integration time can be effectively reduced because of large structured gaps in the spectrum (such as single-particle or commuting Hamiltonians). Although it is possible to truncate the time integral, all existing schemes18,19,20,21 fail to satisfy detailed balance, and some also lead to highly nonlocal Lindblad operators.
Our new Lindbladian satisfying quantum detailed balance
Now, we construct our Lindbladian that generates a continuous-time quantum Markov chain featuring the key properties of Glauber and Metropolis dynamics: detailed balance and locality. We can view our proposed Lindblad operators as smoothened versions of those from Davies’s \({L}_{\nu }=\sqrt{\gamma (\nu )}{A}_{\nu }\) (equation (5)).
The key idea is to replace the nonphysical transition amplitudes Aν, which refer to exact energies, with a smooth quantum operator Fourier transform,
which enjoys the sought properties. First, as \(\widehat{A}(\omega )\) is given by a Gaussian-damped integral of Heisenberg evolutions of A, it approximately preserves the locality of the jump A and the Hamiltonian H up to a radius β (by Lieb–Robinson bounds, see equation (21) and ref. 30). This (quasi-)locality of \(\widehat{A}(\omega )\) reflects that detailed balance only depends on the energy difference before and after the jump rather than global energies. Second, the operator \(\widehat{A}(\omega )\) can be naturally implemented by a phase estimation for operators that selects the transition amplitudes of A that change the energy by roughly ω (Fig. 3). Technically, equation (6) corresponds to a new variant of quantum phase estimation with a guaranteed Gaussian error profile, which has already found independent applications31.
Our Lindbladian \({\mathcal{L}}={\sum }_{a\in A}{{\mathcal{L}}}^{a}\) consists of the following carefully constructed Lindbladian terms \({{\mathcal{L}}}^{a}\) associated with the corresponding Hermitian jump operator Aa:
A curious feature of Gaussian energy uncertainty is that the above shifted Metropolis transition weights γ(ω) achieve exact detailed balance for the transition part (equation (15)) despite the presence of energy uncertainty—generalizing the analogous classical case32. To fully achieve detailed balance, an extra coherent term Ca is necessary to accompany the decay term Da, if it does not commute with the system Hamiltonian H. It is intriguing that the physical derivation of the Davies generator (equation (5)) also introduces a Lamb-shift term that somewhat resembles our coherent term. However, that Lamb-shift term does not play a part in the stationarity of the Gibbs state because Davies’s decay term already satisfies detailed balance as it commutes with H (Methods, Lemma 1).
Finally, note that by directly working with Lindbladians, similarly to ref. 20, we circumvent difficulties around implementing the usual MCMC reject step that arose in earlier approaches because of the no-cloning theorem18. See the Methods for more details about our construction and its implementation.
Simulation costs and guarantees
As inputs to our algorithm, we require access to a set of Hermitian jumps {Aa: a ∈ A}, which is analogous to the symmetric transition rate matrix in the classical case. The jump operators Aa can be as simple as local Pauli operators, but more complex jumps may give faster mixing (for example, cluster updates in Ising models). Our construction can be extended to non-Hermitian jumps, as long as their adjoints are contained in the set33, but we restrict to Hermitian jumps for simplicity throughout this paper. We quantify the algorithmic cost by the required Hamiltonian simulation time, a subroutine that has been thoroughly studied. The \(\widetilde{{\mathcal{O}}}(\cdot )\) notation absorbs logarithmic dependencies on the evolution time t, inverse temperature β, the strength of the Hamiltonian ∥H∥, the number of qubits n, the inverse trace distance error 1/ϵ and the number of jump operators \(|A|\).
Theorem 1: efficiency, locality and exact detailed balance
For any β > 0, Hamiltonian H on n-qubits, and self-adjoint jump operators Aa = Aa† normalized by \(\parallel \sum _{a}{({A}^{a})}^{2}\parallel \le 1\), the Lindbladian \({\mathcal{L}}=\sum _{a\in A}{{\mathcal{L}}}^{a}\) satisfies the following:
-
Each \({{\mathcal{L}}}^{a}\) satisfies quantum detailed balance (equation (4)), and the Gibbs state is stationary \({{\mathcal{L}}}^{a}[\,{\rho }_{\beta }]=0\).
-
For any time t ≥ 1, the Lindbladian evolution \({{\rm{e}}}^{{\mathcal{L}}t}\) can be implemented up to ϵ-error (in diamond distance), using
\(\widetilde{{\mathcal{O}}}(t)\) applications of the block encoding (and its inverse) for the jumps \(\sum _{a\in A}| a\rangle \otimes {A}^{a}\), \(\widetilde{{\mathcal{O}}}(t)\) two-qubit gates and (apart from those in the block encoding and the Hamiltonian simulation) \(\widetilde{{\mathcal{O}}}(1)\) ancillas.
-
If the Hamiltonian H is geometrically local, then each summand \({{\mathcal{L}}}^{a}\) is well-approximated by a local Lindbladian acting on \(\widetilde{{\mathcal{O}}}(\beta )\)-radius ball surrounding the jump operator Aa.
-
If the set of jump operators {Aa} has no nontrivial invariant subspace (for example, all single-site Pauli X and Z operators), then the Gibbs state ρβ is the unique fixed point.
Detailed balance has been a central feature in the study of Markov chain mixing time. The lack of exact quantum detailed balance, mainly rooted in imprecise energy measurements, has been an obstacle for noncommuting Hamiltonians. Here, achieving exact quantum detailed balance makes a formal connection to the existing framework and enables clean mathematical reasoning, as demonstrated by a series of recent works34,35,36 that used our Lindbladian to prove rapid mixing for lattice Hamiltonians at high temperatures.
Detailed balance also enables mapping our Lindbladian to a frustration-free parent Hamiltonian \({\mathcal{H}}\) acting on a doubled, purifying system19,20,37, whose zero-eigenstate is a certain purified Gibbs state \(| \sqrt{{\rho }_{\beta }}\rangle \) (known as the thermal field double in high-energy physics) (Fig. 2). This gives a coherent Gibbs sampler, in which we prepare the purified Gibbs state by a natural adiabatic path parametrized by the inverse temperature β. Of course, the purified Gibbs state reduces to the (mixed) Gibbs state once we trace out the purifying replica system, but the purification opens doors to advanced quantum algorithmic tools, such as verification (for example, through the swap test or measuring the energy of the parent Hamiltonian) or faster mean estimation38.
For a lattice Hamiltonian, our Lindbladian is a sum over quasi-local terms \({{\mathcal{L}}}^{a}\) surrounding each jump Aa with radius approximately β, with an exponentially decaying tail controlled by the Lieb–Robinson bounds. This locality remains to hold for the parent Hamiltonian \({\mathcal{H}}=\sum _{a}{{\mathcal{H}}}^{a}\) of the purified Gibbs state \(| \sqrt{{\rho }_{\beta }}\rangle \) defined on two copies of the system.
The key to the efficiency of our proposal lies in the revelation that detailed balance generally does not require high-precision metrology. The Hamiltonian simulation time ~β (suppressing other dependencies) used in our Lindbladian is not enough for any quantum algorithm to learn energies beyond precision ~1/β. Yet, it is sufficient for coherently modulating the transition amplitudes according to the quantum detailed balance condition (equation (4)), leading to improved implementation methods that are analogous to the exponentially more precise quantum linear equation solvers39, which circumvent the metrology step of the original phase-estimation-based proposal40.
We can further exploit that the modulation depends only on the energy differences before and after jumps. Thus, for geometrically local Hamiltonians, our Lindbladian diagnoses energy differences by (quasi-)localized Hamiltonian patches of radius ~β, which, in turn, could further improve the efficiency of implementation by truncating faraway Hamiltonian terms. For classical or commuting Hamiltonians, the energy difference depends only on a strictly local neighbourhood, regardless of β, which simplifies the corresponding Gibbs samplers. This aspect of locality contrasts with earlier quantum methods, which typically involve global energy measurements, for example, through phase estimation.
To implement our synthetic Lindbladian, we also develop high-precision Lindbladian simulation algorithms (Theorem 2), giving an explicit quantum Gibbs sampler with provable accuracy guarantees. However, from a practical perspective, we expect there to be opportunities for heuristic optimization of the actual circuit implementation, for example, by simulating the Lindblad dynamics to low orders (see Fig. 3 for a first-order implementation), truncating the Lindbladian operator depending on the state, or tuning the discretization parameters.
a, Circuit implementation for the isometry Ua representing the discrete quantum operator Fourier transform \({\widehat{A}}^{a}(\bar{\omega })\), evaluated on input \(| \bar{0}\rangle \otimes | \psi \rangle \), in which we assumed for simplicity that Aa is a Hermitian unitary. The subroutines include Gaussian filter state preparation \(| \,f\rangle \) (equation (6)), controlled-Hamiltonian simulation and quantum Fourier transform. The label \(\bar{\omega }\) is a rough estimate of the energy difference before and after Aa (that is, the Bohr frequency). b, Quantum circuit implementation of an approximate δ-time step corresponding to a single jump operator Aa. This weak-measurement scheme uses the quantum operator Fourier transform isometry Ua and its inverse, a controlled single-qubit rotation \({Y}_{\theta }=\left[\begin{array}{l}\sqrt{1-\theta }\,-\sqrt{\theta }\\ \sqrt{\theta }\quad \quad \sqrt{1-\theta }\end{array}\right]\), Hamiltonian simulation of the coherent part Ca and ancilla resets. To simulate the full Lindbladian, this circuit should be repeatedly applied with the jump operator Aa for a uniformly random a ∈ A. We can implement a block encoding of Ca by a linear combination of unitaries11 according to equation (8). Alternatively, ignoring the Ca term, detailed balance becomes approximate, with error controlled by the precision of energy difference estimation22.
Mixing times
We have shown that given a local Hamiltonian H, our new construction allows for a step-wise efficient quantum MCMC algorithm. However, just as in the classical case, the mixing times can depend crucially on the specific problem at hand. Although large-scale numerical exploration of mixing times for strongly interacting systems seems to be intractable without fault-tolerant quantum computers, we can exactly diagonalize the Lindbladian for small systems, which can, for example, reveal interesting phenomena related to the choice of jump operators41. For illustration, we choose to look at the transverse field Ising model \({H}_{{\rm{TFI}}}=-\,\sum _{j}{Z}_{j}{Z}_{j+1}+\lambda {X}_{j}\) and the XXZ model \({H}_{{\rm{XXZ}}}=\sum _{j}{X}_{j}{X}_{j+1}+{Y}_{j}{Y}_{j+1}+\gamma {Z}_{j}{Z}_{j+1}\) on a ring. Here, X, Y and Z are the single-site Pauli operators, and λ and γ are the parameters of the models. Neither model exhibits a phase transition in its thermal states, as it is on a one-dimensional lattice42. Hence, we expect a system-size-independent gap in the spectrum of the Lindbladian at all temperatures (when each jump is normalized to have unit strength ∥Aa∥ = 1). By contrast, the models show quantum phase transitions in their ground states.
In Fig. 4, we simulate the two models for system size n = 8 by exactly diagonalizing the Lindbladian in its matrix representation (diagonalizing larger systems is prohibitive because the number of matrix elements grows as 24n). At high temperatures (β ≪ 1), we observe a large spectral gap in all parameter regimes for both models with the Lindbladian constructed from local Pauli X, Y and Z operators only, in agreement with the recent theoretical analysis34,35. At low temperatures, both models exhibit a critical slowdown at certain values of the parameters λ and γ. However, adding a global jump X⊗n = ∏jXj lifts the critical slowdown in the ferromagnetic phases, while adding two-body terms {XjXj+1} lifts the gap in the antiferromagnetic phase of the XXZ model. This is consistent with classical Glauber dynamics, in which slow mixing of the two-dimensional Ising model at low temperatures can be resolved by applying global flips. We take this as positive preliminary evidence that our quantum Gibbs samplers are consistent and can be expected to allow for model-specific heuristic improvements, similar to classical MCMC.
a, The transverse field Ising model with periodic boundary conditions on n = 8 qubits at various temperatures, with single Pauli jumps. As expected, the Lindbladian is gapped at high temperatures throughout the phase diagram, and the gap closes exponentially in β in the ferromagnetic regime (which is well-known in the λ = 0 case from the classical literature). The inset in the top outer corner shows the same gaps on a logarithmic scale. Vertical dotted lines highlight the parameter values at which a quantum phase transition happens in the ground state of the models, and the phases are labelled above. The dashed line shows that, even for the lowest temperature β = 5, the Lindbladian gap can be opened by including global spin-flip X⊗n. b, The Heisenberg XXZ model with periodic boundary conditions on n = 8 qubits at a low temperature β = 5, with (i) only local Pauli jumps, (ii) local Pauli jumps and a global Pauli X⊗n jump and (iii) local Pauli jumps and the nearest-neighbour Pauli XX jumps. The dynamics can freeze with single-site jumps, but adding global and nearest-neighbour Pauli XX jumps speeds up mixing by opening the gap.
Future directions and applications
A central challenge in quantum simulation is the preparation of thermal states. For this purpose, we have constructed a physically inspired, algorithmically efficient and theoretically clean Lindbladian that matches the celebrated features of classical MCMC algorithms. Our new construction opens up several avenues for further studies:
-
A provable quantum simulation algorithm: the study of spectral gaps and mixing times of classical Markov chains has been a fruitful and persistent subject28,43,44. Our construction gives a well-defined, quasi-local map with exact detailed balance and invites a systematic study for noncommuting Hamiltonians. Recently, rapid mixing at perturbative regimes or high temperatures has been proved34,35,36 using our Lindbladians; through a dedicated mixing time analysis, refs. 34,45 show that closely related cooling processes at low temperatures are universal for quantum computation, suggesting that simulating low-temperature cooling dynamics can be classically hard. Ultimately, directly showing that physically relevant systems (for example, the Fermi–Hubbard model) mix rapidly at classically intractable regimes gives quantitative evidence of practical quantum advantage in quantum simulation.
-
A dynamical angle to quantum Gibbs states: the mixing time of a Lindbladian is naturally connected to the correlation decay and complexity of quantum Gibbs states. It was a celebrated result in classical Gibbs sampling that rapid mixing is deeply tied with the decay of Gibbs correlation28, and only recently has the equivalence been extended to some commuting quantum Hamiltonians46,47. Our newly defined map gives a dynamic angle for rigorously studying intricate quantum correlations, such as the area-law of entanglement, conditional mutual information48,49,50, and topological order in noncommuting Gibbs states.
-
A self-contained toy model of open-system thermodynamics: as a quantum analogue of Glauber dynamics, the qualitative parallel to physical master equations poses our construction as a succinct toy model of open-system physics. Thus, in cases in which we cannot prepare the Gibbs state due to a mixing time slowdown, we may still uncover properties of new thermal phases. Our Lindbladian provides a theoretical starting point for studying metastability, energy landscapes, quantum spin glasses and self-correcting quantum memories, whose precise formulation for noncommuting Hamiltonians has also been lacking. The explicit form of our Lindbladian also enables direct numerical studies regarding the above notions.
In light of the key theoretical and empirical success of MCMC methods in classical computing, we expect quantum Gibbs sampling to serve similarly important roles in quantum computing. Given the current scepticism about the practical applicability of quantum computers, we anticipate our results will initiate a new set of diverse research directions covering theory, experiment, numerics and applications.
Methods
We provide the explicit form of our construction and explain how exact detailed balance can be achieved through the key algorithmic subroutines and circuits.
Constructing the full Lindbladian
Recall that our main result considers the following Lindbladian in the Schrödinger picture:
Roughly, it resembles the Davies generator (equation (5)) but is carefully modified to maintain quantum detailed balance while ensuring locality and efficiency. We begin by reviewing the detailed balance condition for the Davies generator to illustrate the key ingredients and differences in our construction. We may regroup the above according to the jumps \({\mathcal{L}}={\sum }_{a\in A}{{\mathcal{L}}}^{a}\), and study each term individually, so in what follows we drop the label a for simplicity, that is, substitute Aa ← A.
Detailed balance of the Davies generator
For a Hermitian jump A, recall that the Davies generator \({{\mathcal{L}}}_{Davies}[\cdot ]\,:= \,\sum _{\nu }\gamma (\nu ){A}_{\nu }[\cdot ]{A}_{\nu }^{\dagger }-\) \(\frac{\gamma (\nu )}{2}\{{A}_{\nu }^{\dagger }{A}_{\nu },\cdot \}\) satisfies the KMS-detailed balance condition (equation (4)), that is, satisfies the superoperator equation
where \({{\mathcal{L}}}^{\dagger }\) is the superoperator adjoint of \({\mathcal{L}}\) defined by \({\rm{Tr}}[{({\mathcal{L}}[X])}^{\dagger }Y]={\rm{Tr}}[{X}^{\dagger }{{\mathcal{L}}}^{\dagger }[Y]]\) for all X, Y. Here, detailed balance hinges on the following exact operator-valued symmetries: for all Bohr frequency ν ∈ B(H),
The conjugation identity is rooted in that Aν are eigenoperators [H, Aν] = νAν of the commutator [H, ⋅ ], highlighting a special role played by the Bohr-frequency decomposition Aν. The adjoint property says that for a Hermitian jump A, the transition amplitudes associated with energy difference ν are paired with the reverse difference –ν, reminiscent of a Fourier transform symmetry of real functions.
As a consequence, the decay part readily satisfies detailed balance by itself because of the adjoint property, because the operator \({({A}_{\nu })}^{\dagger }{A}_{\nu }={A}_{-\nu }{A}_{\nu }\) in the decay part preserves the energies and commutes with the Hamiltonian (and hence with ρ). For the transition part,
The second equality uses the Kubo–Martin–Schwinger condition (in the frequency domain) for the transition weights
The main obstacle towards a Lindbladian with exact detailed balance and efficient implementation is the lack of algorithmic access to Aν in the presence of a dense spectrum, as approximations to Aν can easily break the exact symmetry conditions in detailed balance18,20,51.
Operator Fourier transforms
The key to both efficiency and exact detailed balance is a careful relaxation of Aν that preserves some aspects of the symmetries using the operator Fourier transform damped by a Gaussian filter \(f(t)\,:= \,{{\rm{e}}}^{-{\sigma }^{2}{t}^{2}}\sqrt{\sigma \sqrt{2/{\rm{\pi }}}}\) (normalized by \({\int }_{-\infty }^{\infty }{| f(t)| }^{2}{\rm{d}}t=1\)) with a tunable width ∝ 1/σ (setting \(\sigma =\frac{1}{\beta }\) recovers (equation (6)):
Like Aν in the Davies generator (equation (5)), our operator Fourier transforms \(\widehat{A}(\omega )\) are labelled by energy differences, but here the parameter ω ∈ [−∞, ∞] takes continuous values, without referring to the true Bohr frequencies. When the uncertainty vanishes σ → 0, we recover \(\mathop{\mathrm{lim}}\limits_{\sigma \to 0}\sqrt{\sigma \sqrt{2{\rm{\pi }}}}\widehat{A}(\omega )=\sum _{\nu \in B(H)}{\mathbb{1}}(\nu =\omega ){A}_{\nu }\); when the energy uncertainty is finite σ ≠ 0, the operator Fourier transforms still maintain exact algebraic properties crucial for detailed balance. First, conjugating with the Gibbs state preserves the form of operator Fourier transforms, albeit causing a shift and rescaling
which reflects the fact that multiplying a Gaussian distribution by an exponential weight must shift the mean \({{\rm{e}}}^{{(x-a)}^{2}-2bx}={{\rm{e}}}^{{(x-a-b)}^{2}-2ab-{b}^{2}}\). Second, even though the operator Fourier transform is a linear combination of different Bohr frequencies, the adjoint property holds exactly when A = A† as
The above two exact symmetries appear to be absent in previous approaches that attempted to directly measure energy differences. Now we show that quantum detailed balance is a consequence of these exact symmetries and related algebraic properties of the Gaussian uncertainty in operator Fourier transforms, which hold exactly despite not measuring energies to high precision.
Exact detailed balance with finite uncertainty
Although the operator Fourier transform does not yield an exact representation of Aν, the uncertainty has a specific structure with distinctive symmetries—arising from the interplay between the Gaussian weighing and the exponential form of the Boltzmann factors—and consequently can be exactly compensated by an appropriate shift in the transition weights. In the following, we prove that the transition part (equation (9)) satisfies detailed balance (equation (10)): \({\mathcal{T}}\,[\cdot ]={\rho }^{\frac{1}{2}}{{\mathcal{T}}}^{\dagger }[\,{\rho }^{-\frac{1}{2}}\cdot {\rho }^{-\frac{1}{2}}]{\rho }^{\frac{1}{2}}\). The above shift-rescale and adjoint symmetries yield
showing that we may compensate for the uncertainty by imposing a shifted KMS condition (equation (12))
Therefore, we can take any transition weight function satisfying the KMS condition γ0(ν)eβν = γ0(−ν) and pretend we underestimated the Bohr frequency by \(\frac{{\sigma }^{2}\beta }{2}\), that is, substitute \(\nu \leftarrow {\omega }_{+}:= \omega +\frac{{\sigma }^{2}\beta }{2}\) to obtain our shifted γ(ω). The canonical examples include the Metropolis and Glauber weights
See ref. 33 for the original step-by-step detailed derivation; the above streamlined derivation draws partly from subsequent simplification and development (Lemma 7.1 of ref. 52 and Lemma IX.2 of ref. 49).
Under the natural normalization γ(ω) ∈ [0, 1], the shifted symmetry (equation (15)) implies a low transition rate \(\gamma (0)\le \exp (-{\sigma }^{2}{\beta }^{2}/2)\) around ω = 0. Therefore, to avoid unnecessary idling of the process, it is imperative to choose an uncertainty σ ≤ 1/β not exceeding the temperature; in the main text, we have simply set \(\sigma =\frac{1}{\beta }\). This is why implementing a single step uses ~β Hamiltonian simulation time in our construction. By contrast, for classical or commuting systems with gapped periodic spectrum, the uncertainty can be discretized, and there is no need to scale the Hamiltonian simulation time with β.
Achieving full detailed balance by tuning the coherent term
Even if the transition part (equation (9)) satisfies detailed balance exactly, the decay part D of the Lindbladian may still break detailed balance when it does not commute with the Hamiltonian H.
A second insight of our construction is to prescribe and efficiently implement a dedicated coherent term C that perfectly cancels out the deviation from quantum detailed balance in a uniquely quantum way, as shown by the following lemma.
Lemma 1: prescribing the coherent term
(Lemma II.1 of ref. 33) For any full-rank density operator \(0\,\prec \,\rho \in {{\mathbb{C}}}^{d\times d}\) and Hermitian operator \(D\in {{\mathbb{C}}}^{d\times d}\), there is a unique Hermitian operator \(C\in {{\mathbb{C}}}^{d\times d}\) (up to adding any scalar multiples of the identity I) such that the superoperator
satisfies ρ-detailed balance. For a Gibbs state \(\rho \propto \exp (-\beta H)\), we can express C as
Proof
The detailed balance condition is equivalent to the following matrix being self-adjoint:
This is self-adjoint because \({({D}_{\nu })}^{\dagger }={D}_{-\nu }\), \(\cosh (x)=\cosh (-x)\), and B(H) = −B(H). □
See also ref. 53 on prescribing fixed points in general, without necessarily assuming detailed balance. The coherent term C is a Hermitian matrix obtained by reweighing the given D operator with the profile \({\rm{i}}\,\tanh (\beta \nu /4)/2\) on each Bohr frequency component Dν. The coherent term is completely determined by ρ and D (ref. 54), and we found a particularly simple and useful closed-form representation in the time domain (recall \({\rm{sinhc}}(x)\,:= \,\sinh (x)/x\) for real x ≠ 0)
which in turn implies the algorithmic efficiency and quasi-locality of the coherent term. The above integral form and the exponential decay in t allow using the linear combination of unitaries technique to implement a block encoding of C (refs. 33,55) by truncating and discretizing the time integral. For the Davies generator (equation (5)), we have that [H, D] = 0. Therefore, the dissipative part readily satisfies detailed balance, and Dν = 0 for all ν ≠ 0, implying that the above coherent term prescription simply vanishes.
Quasi-locality
A salient feature of our construction is the quasi-locality of the Lindbladian terms, inherited from the operator Fourier transform in systems that feature a Lieb–Robinson bound. For all \(\omega \in {\mathbb{R}}\) and geometrically local jump A, truncating the Hamiltonian to a local Hamiltonian patch Hℓ within distance ℓ from the jump yields an error
For a wide variety of local Hamiltonian systems, off-the-shelf Lieb–Robinson bounds30 for the Heisenberg dynamics eiHtAe−iHt state that the integrand in equation (21) exponentially reduces with the distance ℓ but degrades with the evolution time t. As the Gaussian weight function f(t) of equation (13) effectively dampens the integral to small values of t ~ 1/σ, the operator \({\widehat{A}}_{(H)}(\omega )\) is well-approximated by a Hamiltonian patch with radius scaling with the energy uncertainty σ, which can be independent of the system size. See, for example, Appendix A of ref. 49 for a quantitative estimate for both the transition and coherent parts. Of course, after truncation, the resulting strictly local Lindbladian may no longer satisfy exact quantum detailed balance.
Fixed point and its uniqueness
The detailed balance condition (equation (10)) directly implies that the Gibbs state ρ is a fixed point for the Lindbladian \({\mathcal{L}}\).
where the last equality used the trace-preservation property \({{\mathcal{L}}}^{\dagger }[I]=0\) of Lindbladians.
We now explain why the Gibbs state is the unique fixed point whenever the set of jump operators has no (nontrivial) invariant subspaces, which holds, for example, when the jumps include all single-site Pauli X and Z operators. Decomposing each jump operator by the operator Fourier transform \({A}^{a}\propto {\int }_{-\infty }^{\infty }{\widehat{A}}^{a}(\omega ){\rm{d}}\omega \) cannot create new invariant subspaces; likewise, multiplying by strictly positive transition weights γ(ω) cannot. Thus, the resulting set of Lindblad operators \(\sqrt{\gamma (\omega )}{\widehat{A}}^{a}(\omega )\) has no invariant subspaces, which is known56 to imply the uniqueness of the fixed point. But this uniqueness argument says little about the quantitative convergence rate, and the mixing times can depend on the particular Hamiltonian.
A single-qubit example
Let us illustrate the details of our Lindbladian construction through a pedagogical example. Consider a single-qubit Hamiltonian with a single jump:
The eigenvalues of the Hamiltonian are ±1, and the Bohr frequencies, their differences, are B(H) = {2, 0, −2}. We can decompose the jump by the Bohr frequencies, into the ν = 2 and ν = −2 components as follows:
We can then directly obtain the Davies generator for any transition weights satisfying γ(2)e2β = γ(−2). By contrast, our operator Fourier transform yields
Thus, for all \(\omega \in {\mathbb{R}}\) the resulting \(\widehat{A}(\omega )\) has contributions coming from both the A2 and A−2 components; these components only get separated in the σ → 0 limit. Nevertheless, detailed balance still holds at every finite uncertainty σ with suitable choices of γ(ω) (equation (15)) and the additional coherent term.
Recovering the Davies generator
As we show here, our Lindbladian exactly recovers the Davies generator in the σ → 0 limit. Moreover, the Davies generator reduces to Glauber dynamics when the Hamiltonian H is a classical function of bitstrings and the jumps A map a bitstring to another: in this case, inputs that are a probabilistic mixture of bitstrings undergo a classical Glauber dynamics (see section ‘Quantum MCMC by master equations for thermalization’).
For any bounded, continuous function γ0 satisfying the KMS condition γ0(ν)eβν = γ0(−ν), consider the shift \({\gamma }_{\beta \sigma }(\omega )\,:= \,{\gamma }_{0}\left(\omega +\frac{{\beta }^{2}{\sigma }^{2}}{2}\right),\) then the transition part (similarly for the decay term) converges to
When we expand the left-hand side as a sum over \({A}_{{\nu }_{1}}[\cdot ]{({A}_{{\nu }_{2}})}^{\dagger }\), the coefficients for each ν1, ν2
approach the corresponding value in the Davies generator. By contrast, the coherent term vanishes, because the decay term commutes with the Hamiltonian in the σ → 0 limit and tanh(0) = 0 (see Lemma 1).
Implementation
In this section, we give low-level quantum algorithmic implementations of our Lindbladian dynamics.
A phase estimation for operators
The most general form of the discrete operator Fourier transform is a subroutine similar to quantum phase estimation: it combines controlled Hamiltonian simulation with the quantum Fourier transform, as shown in Fig. 3a, acting on the time–frequency and system registers. To approximately implement the (continuous) operator Fourier transform, we need to discretize the time integral by introducing a time mesh \(\bar{t}\in {S}_{{t}_{0}}\) and a corresponding frequency mesh \(\bar{\omega }\in {S}_{{\omega }_{0}}\) for the QFT, each having M points, resulting in the discretized operation
As given in Corollary C.2 of ref. 22, choosing
the above equation (25) recovers the advertised continuous operator Fourier transform (equation (13)) in the M → ∞ limit. As f is a smooth Gaussian function, we can achieve any finite precision ϵ-approximation of the dissipative part of \({\mathcal{L}}\) with a moderately scaling dimension \(M \sim {\rm{Poly}}(\parallel H\parallel ,\beta ,1/{\epsilon },\sigma +1/\sigma ,| A| )\), which requires only \(\log (M)=\widetilde{{\mathcal{O}}}(1)\)-many ancilla qubits, and no more than \({\mathcal{O}}(\sqrt{\log (1/{\epsilon })}\,/\sigma )\) (controlled) Hamiltonian simulation time, because of the truncation of the Gaussian tail.
A general-purpose Lindbladian simulation algorithm
Another key algorithmic component is an improved black-box Lindbladian simulation subroutine. It achieves the sought nearly linear dependence on t even for Lindbladians with high Kraus rank, as long as the Lindblad operators are given in a block-encoded form, which represents an improvement on previous Lindbladian simulation algorithms51,57.
Definition 1: block encoding for Lindblad operators
(Definition I.2 of ref. 22) We say that a unitary U is a block encoding for Lindblad operators {Lj: j ∈ J}, if
In particular, discretized operator Fourier transforms (equation (25)) naturally give block encodings of this form, where J refers to the discretized set of frequency labels \({S}_{{\omega }_{0}}\). Given a block encoding U of the Lindblad operators as above, we can directly obtain a block encoding of the decay term D by a single use of U and U† by standard multiplication of block-encoded matrices11. As a consequence of the exponentially decaying tails in the integral representation of equation (20), by using an additional ~ β-time controlled Hamiltonian simulation and the linear combination of unitaries (LCU) technique55, we can also obtain a sufficiently good approximate block encoding of the coherent term C.
We begin with a brief analysis of the first-order simulation circuit shown in Fig. 3b. Assuming the system register is in the pure state |ψ⟩, the first three gates act as follows (for simplicity, we drop the superscripts Aa ← A):
where \(| {0}^{q}\perp \rangle \) is a quantum state such that \(\parallel | {0}^{q}\perp \rangle \parallel \le 1\) and \((\langle {0}^{q}| \otimes I)\cdot | {0}^{q}\perp \rangle =0\), see Theorem III.1 of ref. 22, for details.
Let \(| {\psi }^{{\prime} }\rangle \) be the resulting state in equation (28), and let us denote the dissipative part \({{\mathcal{L}}}^{{\prime} }:= {{\mathcal{L}}}^{a}+{\rm{i}}[{C}^{a},\cdot ]\). Tracing out the first q + 1 qubits, we get that \(| {\psi }^{{\prime} }\rangle \) is \({\mathcal{O}}({\delta }^{2})\)-close to the desired state, ignoring the coherent term. We now show that
by observing that
Convexity and the triangle inequality imply that equation (29) also holds for mixed input states. By including the δ-time Hamiltonian simulation for Ca, we get an \({\mathcal{O}}({\delta }^{2})\) approximation of δ-time evolution by \({{\mathcal{L}}}^{a}\). Once again, owing to linearity and the triangle inequality, this also implies that performing the circuit Fig. 3b for a uniformly random jump Aa we get a δ-time evolution by \(\frac{1}{|A|}\sum _{a\in A}{{\mathcal{L}}}_{a}\) up to \({\mathcal{O}}({\delta }^{2})\) error in trace distance, see Corollary III.1 of ref. 22. Repeating the entire argument after replacing the jump operators Aa by Aa ⊗ I, we can see that actually the above results in a \({\mathcal{O}}({\delta }^{2})\)-precise implementation of the quantum channel \(\exp \left(\frac{\delta }{|A|}\sum _{a\in A}{{\mathcal{L}}}_{a}\right)\) in the completely bounded 1-1 superoperator norm, that is, the diamond-norm.
Choosing \(\delta =\varTheta \left(\frac{{\epsilon }}{t}\right)\) ensures that the error in a single time step is bounded by \({\mathcal{O}}\left(\frac{{{\epsilon }}^{2}}{{t}^{2}}\right)\), and repeating the process \(\varTheta \left(\frac{{t}^{2}}{{\epsilon }}\right)\)-times induces an error that is bounded by ϵ for the entire time-t evolution. The complexity is then \(\varTheta \left(\frac{{t}^{2}}{{\epsilon }}\right)\) times the cost of implementing the circuit in Fig. 3b.
Building on the compression techniques in ref. 57, we can bootstrap the first-order weak-measurement circuit of Fig. 3b by observing that for very small time steps, the circuit is very close to identity. Exploiting this by effectively only using the circuit Fig. 3b in parts of the trajectories that are nontrivial, we can achieve almost linear scaling in t and polylogarithmic scaling in the desired diamond-norm accuracy of the simulation. However, we need to apply some modifications, as it turns out the original compressed measurement scheme described in ref. 57 does not work as intended. Thus, we use a variant of the analogous measurement scheme described in ref. 58 (see Appendix F of ref. 22, for more details). This amounts to our ultimate near-linear-time simulation result.
Theorem 2: almost linear-time Lindbladian simulation
(Theorem III.2 of ref. 22) Suppose U is a unitary block encoding of the Lindblad operators of \({\mathcal{L}}\) as in Definition 1, and V is a block encoding of the coherent term C. Let t ≥ 1 and ϵ ≤ 1/2, then we can simulate the map \({e}^{{\mathcal{L}}t}\) to error ϵ in diamond norm using
where q is the number of ancilla qubits used for the block encodings.
To place the above general result in context, we give some simple bounds on the resources required for implementing our Lindbladian. For instance, if the jump operators are K different Pauli strings, then \(q={\log }_{2}(K)+1\) ancilla qubits suffice for block encoding them. The overall gate complexity should be dominated by the controlled Hamiltonian simulation subroutine. Thus, we focus on estimating the required Hamiltonian simulation time per call to U and V (assuming an operator Fourier transform width \(\sigma =\frac{1}{\beta }\)). Under the normalization \(\parallel \sum _{a\in A}{A}^{a\dagger }{A}^{a}\parallel \le 1\), the Lindblad operators from our construction (equation (7)) can be ϵ-accurately block-encoded by discretized operator Fourier transform using \({\mathcal{O}}(\beta \sqrt{\log (1/{\epsilon })})\) (controlled) Hamiltonian simulation time by truncating the Gaussian integrand in equation (6). Meanwhile, as implied by Corollary III.2 of ref. 33, a slightly subnormalized coherent term C/α for \(\alpha ={\mathcal{O}}\left(\log \left(\frac{\beta \,\parallel \,H\,\parallel }{{\epsilon }}\right)\right)\) can be ϵ-accurately block-encoded by LCU by using a mere \({\mathcal{O}}(\beta \,\log (1/{\epsilon }))\) (controlled) Hamiltonian simulation time. The extra subnormalization factor α can be absorbed into the number of uses of the block encoding V using state-of-the-art block-encoded Hamiltonian simulation techniques4,11.
To approximate \({e}^{{\mathcal{L}}t}\) to ϵ-diamond distance, we can control the accumulation of errors by setting an increased accuracy goal of \({\rm{poly}}({\epsilon }/(t\beta \parallel H\parallel ))\) for the approximate block encodings U, V. This results in an overall \({\mathcal{O}}(\beta \sqrt{\log (t\beta \parallel H\parallel /{\epsilon })})\) and \({\mathcal{O}}(\beta {\log }^{2}(t\beta \parallel H\parallel /{\epsilon }))\) (controlled) Hamiltonian simulation time overhead for implementing sufficiently accurate block encodings U and V, respectively.
Comparison with physically derived master equations
Our synthetic Lindbladian is mainly presented as an algorithmic construction. In this section, we compare it with physically motivated master equations derived from first-principles open-system calculations. Overall, we believe that our Lindbladian can serve as a self-contained toy model of thermalization. Nevertheless, for quantitative modelling of particular system–bath interactions, the role of strict detailed balance is less clear, and it may be preferable to use a physically derived master equation.
The textbook setup in open-system thermalization24,59 considers a system governed by a Hamiltonian HS that couples weakly to a large thermal bath with Hamiltonian HB, which are together governed by the total Hamiltonian \({H}_{{\rm{tot}}}={H}_{{\rm{S}}}\otimes {I}_{{\rm{B}}}+{I}_{{\rm{S}}}\otimes {H}_{{\rm{B}}}+\lambda \sum _{a\in A}{A}^{a}\otimes {B}^{a}\). The Hermitian operators {Aa: a ∈ A} act on the system (mirroring our jump operators, hence the same notation) and {Ba: a ∈ A} acts on the bath, whereas λ represents the coupling strength. Tracing out the bath, we can obtain an effective master equation governing the system dynamics under the assumptions that the thermal bath is Markovian and the coupling λ is sufficiently weak.
The aforementioned Davies generator was originally derived in the weak-coupling limit λ → 0 (relative to all other energy scales). In this limit, the rotating-wave approximation (or the secular approximation) removes the cross terms \({A}_{{\nu }_{1}}[\cdot ]{A}_{{\nu }_{2}}^{\dagger }\); this perfect isolation of Bohr frequencies causes the Davies generator to satisfy detailed balance, but at the same time, makes it implausible for many-body systems with exponentially small level spacings. To focus on issues related to detailed balance, here we studied only the simplest form of the Davies generator. In principle, different jumps Aa may have different transition weights, as they correspond to the Fourier transform of the bath correlation function \(\langle {{\rm{e}}}^{{\rm{i}}{H}_{B}t}{B}^{a}{{\rm{e}}}^{-{\rm{i}}{H}_{B}t}{B}^{a}\rangle \), but for algorithmic purposes, it is natural to use universal transition weights. Also, we have studied only the dissipative part of the Davies generator (equation (5)). However, the full Davies generator also includes a Lamb-shift term that somewhat resembles our coherent term, but depends on additional details of the bath correlation functions. As the Lamb-shift term commutes with the Hamiltonian, adding this term keeps the Gibbs state stationary.
Recently, there have been several attempts to derive more realistic master equations for many-body systems by avoiding the λ → 0 limit needed for the rotating-wave approximation. This essentially translates to introducing Lindblad operators with a finite energy uncertainty, or, equivalently, in the time domain, integrals over Heisenberg-evolved jump operators weighted by a finite-width window function. In particular, the coarse-grained master equation59 takes a very similar form as ours (equation (7)), but its operator Fourier transform features a uniform integral \(\frac{1}{\sqrt{2{\rm{\pi }}T}}{\int }_{-\frac{T}{2}}^{\frac{T}{2}}{{\rm{e}}}^{{\rm{i}}Ht}{A}^{a}{{\rm{e}}}^{-{\rm{i}}Ht}{{\rm{e}}}^{-{\rm{i}}\omega t}{\rm{d}}t\), and its coherent term also resembles ours (equation (19)) but does not seem to strictly enforce detailed balance. The universal Lindblad equation60 combines (square root of) the transition weights into the operator Fourier transforms and is closer to subsequent constructions61,62. Very recently63 derived a master equation with exact KMS-detailed balance using slightly different operator Fourier transform weights compared with ours. All the above recent master equations feature some finite energy uncertainty, derived from various system–bath parameters, that parallels our tunable Gaussian width σ.
Data availability
The data that support the findings of this study are available from the corresponding author upon reasonable request.
Code availability
The code for numerical plots is available upon reasonable request.
References
Feynman, R. P. Simulating physics with computers. Int. J. Theor. Phys. 21, 467–488 (1982).
Lloyd, S. Universal quantum simulators. Science 273, 1073–1078 (1996).
Berry, D. W., Ahokas, G., Cleve, R. & Sanders, B. C. Efficient quantum algorithms for simulating sparse Hamiltonians. Commun. Math. Phys. 270, 359–371 (2007).
Low, G. H. & Chuang, I. L. Hamiltonian simulation by qubitization. Quantum 3, 163 (2019).
Metropolis, N., Rosenbluth, A. W., Rosenbluth, M. N., Teller, A. H. & Teller, E. Equation of state calculations by fast computing machines. J. Chem. Phys. 21, 1087–1092 (1953).
Glauber, R. J. Time-dependent statistics of the Ising model. J. Math. Phys. 4, 294–307 (1963).
Hohenberg, P. & Kohn, W. Inhomogeneous electron gas. Phys. Rev. 136, B864–B871 (1964).
White, S. R. Density matrix formulation for quantum renormalization groups. Phys. Rev. Lett. 69, 2863–2866 (1992).
Perez-Garcia, D., Verstraete, F., Wolf, M. M. & Cirac, J. I. Matrix product state representations. Quantum Inf. Comput. 7, 401–430 (2007).
Ceperley, D. & Alder, B. Quantum Monte Carlo. Science 231, 555–560 (1986).
Gilyén, A., Su, Y., Low, G. H. & Wiebe, N. Quantum singular value transformation and beyond: Exponential improvements for quantum matrix arithmetics. In Proc. 51st Annual ACM SIGACT Symposium on Theory of Computing (eds Charikar, M. & Cohen, E.) 193–204 (ACM, 2019).
Low, G. H. & Chuang, I. L. Optimal Hamiltonian simulation by quantum signal processing. Phys. Rev. Lett. 118, 010501 (2017).
Lee, J. et al. Even more efficient quantum computations of chemistry through tensor hypercontraction. PRX Quantum 2, 030305 (2021).
von Burg, V. et al. Quantum computing enhanced computational catalysis. Phys. Rev. Res. 3, 033055 (2021).
Babbush, R. et al. Low-depth quantum simulation of materials. Phys. Rev. X 8, 011044 (2018).
Chamberland, C. et al. Building a fault-tolerant quantum computer using concatenated cat codes. PRX Quantum 3, 010329 (2020).
Lee, S. et al. Evaluating the evidence for exponential quantum advantage in ground-state quantum chemistry. Nat. Commun. 14, 1952 (2023).
Temme, K., Osborne, T. J., Vollbrecht, K. G., Poulin, D. & Verstraete, F. Quantum Metropolis sampling. Nature 471, 87–90 (2011).
Yung, M.-H. & Aspuru-Guzik, A. A quantum–quantum Metropolis algorithm. Proc. Natl Acad. Sci. USA 109, 754–759 (2012).
Wocjan, P. & Temme, K. Szegedy walk unitaries for quantum maps. Commun. Math. Phys. 402, 3201–3231 (2023).
Shtanko, O. & Movassagh, R. Algorithms for Gibbs state preparation on noiseless and noisy random quantum circuits. Preprint at arxiv.org/abs/2112.14688 (2021).
Chen, C.-F., Kastoryano, M. J., Brandão, F. G. S. L. & Gilyén, A. Quantum thermal state preparation. Preprint at arxiv.org/abs/2303.18224 (2023).
Terhal, B. M. & DiVincenzo, D. P. Problem of equilibration and the computation of correlation functions on a quantum computer. Phys. Rev. A 61, 022301 (2000).
Breuer, H.-P. & Petruccione, F. The Theory of Open Quantum Systems (Oxford Univ. Press, 2007).
Redfield, A. G. in Advances in Magnetic Resonance (ed., Waugh, J. S.) Vol. 1, 1–32 (Academic Press, 1965).
Davies, E. B. Markovian master equations. Commun. Math. Phys. 39, 91–110 (1974).
Davies, E. B. Markovian master equations. II. Math. Ann. 219, 147–158 (1976).
Martinelli, F. in Lectures on Probability Theory and Statistics (ed. Bernard, P.) 93–191 (Springer, 1999).
Temme, K., Kastoryano, M. J., Ruskai, M. B., Wolf, M. M. & Verstraete, F. The χ2-divergence and mixing times of quantum Markov processes. J. Math. Phys. 51, 122201 (2010).
Chen, C.-F. A., Lucas, A. & Yin, C. Speed limits and locality in many-body quantum dynamics. Rep. Prog. Phys. 86, 116001 (2023).
Chen, Y., Gilyén, A. & de Wolf, R. A quantum speed-up for approximating the top eigenvectors of a matrix. In Proc. 2025 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA) (eds Azar, Y. & Panigrahi, D.) 994–1036 (2025).
Ceperley, D. & Dewing, M. The penalty method for random walks with uncertain energies. J. Chem. Phys. 110, 9812–9820 (1999).
Chen, C.-F., Kastoryano, M.J. & Gilyén, A. An efficient and exact noncommutative quantum Gibbs sampler. Preprint at arxiv.org/abs/2311.09207 (2023).
Rouzé, C., França, D. S. & Alhambra, Á. M. Efficient thermalization and universal quantum computing with quantum Gibbs samplers. In Proc. 57th Annual ACM Symposium on Theory of Computing (eds Koucký, M. & Bansal, N.) 1488–1495 (2025).
Rouzé, C., França, D. S. & Alhambra, Á. M. Optimal quantum algorithm for Gibbs state preparation. Preprint at arxiv.org/abs/2411.04885 (2024).
Tong, Y. & Zhan, Y. Fast mixing of weakly interacting fermionic systems at any temperature. PRX Quantum 6, 030301 (2025).
Szegedy, M. Quantum speed-up of Markov chain based algorithms. In Proc. 45th Annual IEEE Symposium on Foundations of Computer Science, 32–41 (IEEE, 2004).
van Apeldoorn, J., Cornelissen, A., Gilyén, A. & Nannicini, G. Quantum tomography using state-preparation unitaries. In Proc. 2023 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA) (eds Bansal, N. & Nagarajan, V.) 1265–1318 (2023).
Childs, A. M., Kothari, R. & Somma, R. D. Quantum algorithm for systems of linear equations with exponentially improved dependence on precision. SIAM J. Comput. 46, 1920–1950 (2017).
Harrow, A. W., Hassidim, A. & Lloyd, S. Quantum algorithm for linear systems of equations. Phys. Rev. Lett. 103, 150502 (2009).
Kastoryano, M. J., Kristensen, L. B., Chen, C.-F. & Gilyén, A. A little bit of self-correction. Quantum 9, 1820 (2025).
Araki, H. Gibbs states of a one dimensional quantum lattice. Commun. Math. Phys. 14, 120–157 (1969).
Levin, D. A., Peres, Y., Wilmer, E. L., Propp, J. & Wilson, D. B. Markov Chains and Mixing Times (American Mathematical Society, 2017).
Anari, N., Liu, K. & Gharan, S. O. Spectral independence in high-dimensional expanders and applications to the hardcore model. SIAM J. Comput. 53, 20–12037 (2024).
Chen, C.-F., Huang, H.-Y., Preskill, J. & Zhou, L. Local minima in quantum systems. Nat. Phys. 21, 654–660 (2025).
Kastoryano, M. J. & Brandão, F. G. S. L. Quantum Gibbs samplers: the commuting case. Commun. Math. Phys. 344, 915–957 (2016).
Capel, Á., Rouzé, C. & Stilck França, D. The modified logarithmic Sobolev inequality for quantum spin systems: classical and commuting nearest neighbour interactions. Preprint at arxiv.org/abs/2009.11817 (2021).
Kuwahara, T. Clustering of conditional mutual information and quantum Markov structure at arbitrary temperatures. Preprint at arxiv.org/abs/2407.05835 (2024).
Chen, C.-F. & Rouzé, C. Quantum Gibbs states are locally Markovian. Preprint at arxiv.org/abs/2504.02208 (2025).
Kato, K. & Kuwahara, T. On the clustering of conditional mutual information via dissipative dynamics. Preprint at arxiv.org/abs/2504.02235 (2025).
Rall, P., Wang, C. & Wocjan, P. Thermal state preparation via rounding promises. Quantum 7, 1132 (2023).
Ramkumar, A. & Soleimanifar, M. Mixing time of quantum Gibbs sampling for random sparse Hamiltonians. Preprint at arxiv.org/abs/2411.04454 (2024).
Guo, J., Hart, O., Chen, C.-F., Friedman, A. J. & Lucas, A. Designing open quantum systems with known steady states: Davies generators and beyond. Quantum 9, 1612 (2025).
Amorim, É. & Carlen, E. A. Complete positivity and self-adjointness. Linear Algebra Appl. 611, 389–439 (2021).
Childs, A. M. & Wiebe, N. Hamiltonian simulation using linear combinations of unitary operations. Quantum Inf. Comput. 12, 901–924 (2012).
Wolf, M. M. Quantum Channels & Operations: Guided Tour https://mediatum.ub.tum.de/download/1701036/1701036.pdf (2012).
Cleve, R. & Wang, C. Efficient quantum algorithms for simulating Lindblad evolution. In Proc. 44th International Colloquium on Automata, Languages, and Programming (ICALP 2017) (eds Chatzigiannakis, I., Indyk, P., Kuhn, F. & Muscholl, A.) 17–11714 (2017).
Berry, D. W., Cleve, R. & Gharibian, S. Gate-efficient discrete simulations of continuous-time quantum query algorithms. Quantum Inf. Comput. 14, 1–30 (2014).
Mozgunov, E. & Lidar, D. Completely positive master equation for arbitrary driving and small level spacing. Quantum 4, 227 (2020).
Nathan, F. & Rudner, M. S. Universal Lindblad equation for open quantum systems. Phys. Rev. B 102, 115109 (2020).
Ding, Z., Li, B. & Lin, L. Efficient quantum Gibbs samplers with Kubo–Martin–Schwinger detailed balance condition. Commun. Math. Phys. 406, 67 (2025).
Gilyén, A., Chen, C.-F., Doriguello, J. F. & Kastoryano, M. J. Quantum generalizations of Glauber and Metropolis dynamics. Preprint at arxiv.org/abs/2405.20322 (2024).
Scandi, M. & Alhambra, Á. M. Thermalization in open many-body systems and KMS detailed balance. Preprint at arxiv.org/abs/2505.20064 (2025).
Moussa, J. E. Low-depth quantum Metropolis algorithm. Preprint at arxiv.org/abs/1903.01451 (2019).
Moussa, J. E. Quantum Metropolis-Hastings algorithm. Preprint at arxiv.org/abs/2503.14970 (2025).
Acknowledgements
We thank J. Moussa for raising the question of whether exact detailed balance is possible and pointing us to his related work64,65. We also thank A. J. Friedman, J. Guo, O. Hart and A. Lucas for collaborations on related inspiring topics53. C.F.C. was supported by the Caltech Eddlemen Fellowship and the AWS Center for Quantum Computing internship, and later by a Simons-CIQC postdoctoral fellowship through NSF QLCI Grant No. 2016245. A.G. is supported by the AWS Center for Quantum Computing. M.J.K. acknowledges support from the Novo Nordisk Foundation (grant no. NNF23OC0083524). We also thank the Simons Institute for hosting C.F.C. and A.G.
Author information
Authors and Affiliations
Contributions
The thread of ideas for this study was initiated by discussions between M.J.K. and F.B. in 2016 and was later brought to fruition by C.F.C. and A.G. The main calculations and proofs were developed by C.F.C. and A.G., with C.F.C. focusing on the analytic properties and A.G. on the quantum algorithmic constructions. A.G. and M.J.K. collaborated on the numerical aspects. All authors contributed to the conceptual discussions and manuscript writing.
Corresponding author
Ethics declarations
Competing interests
A.G. acknowledges funding from the AWS Center for Quantum Computing. Other authors do not have any competing interests.
Peer review
Peer review information
Nature thanks the anonymous reviewers for their contribution to the peer review of this work. Peer reviewer reports are available.
Additional information
Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary information
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 licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence 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 licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Chen, CF., Kastoryano, M., Brandão, F.G.S.L. et al. Efficient quantum thermal simulation. Nature 646, 561–566 (2025). https://doi.org/10.1038/s41586-025-09583-x
Received:
Accepted:
Published:
Version of record:
Issue date:
DOI: https://doi.org/10.1038/s41586-025-09583-x