
1 Introduction
Motivation. Preparing Gibbs states is a major task for quantum computers. There are
several reasons for this. First, the Gibbs state is one of the most important states of mat-
ter. For quantum models comprised of many locally interacting particles, it describes a wide
range of physical situations, relevant to condensed matter physics, high energy physics, quan-
tum chemistry [Alh22]. Therefore, to use the quantum computer as a universal simulator
of quantum systems, it is desirable to be able to prepare Gibbs states. Second, for general
Hamiltonians, the Gibbs state is a crucial ingredient in some quantum algorithms such as
those for solving semidefinite programs [VAGGdW20,BKL+19,vAG19,GSLW19] and for
training quantum Boltzman machines [KW17]. Third, the problem of estimating the quan-
tum partition function, which is connected to the problem of approximately preparing the
Gibbs state, plays an important role in quantum complexity theory [BCGW21].
Background and overview of prior work. There are three main approaches to preparing
Gibbs states.
The first one is a Grover-based approach in which an initial state is mapped onto a
certain purification of the Gibbs state at inverse temperature β(see [PW09,CS17]). The
resulting running time is dictated by the overlap between the initial and target states, which
is exponentially small in the system size. The Gibbs state can be approximately prepared in
time on the order of qD/Zβ, where Ddenotes the dimension of the quantum system and
Zβthe partition function at inverse temperature β. In [HMS+22] a quantum algorithm is
presented for preparing a purification of the Gibbs state for the Hamiltonian H1=H0+Vat
inverse temperature βstarting from a purification of the thermal state of H0.
The second approach is based on Davies generators, which is a differential equation that
describes how nature thermalizes a quantum system to its thermal equilibrium [Dav76,Dav79].
Davies generators are special cases of Lindbladians [Lin76,BP02], which describe the most
general continuous-time Markovian dynamics of an open quantum system, i.e., a quantum
system that is weakly coupled to the environment and the dynamics of the environment are
fast enough so that the information only flows from the system to the environment while no
information is flowing back to the system. The method in [CB21] simulates a Davies generator
by attaching a heat bath and simulating time evolution on the joint system while repeatedly
refreshing the bath. Their algorithm in some sense follows the original derivation of the Davies
generator as the limit of such joint system-bath Hamiltonian time evolution. When the system
Hamiltonian satisfies the Eigenstate Thermalization Hypothesis (ETH), they show that the
implemented quantum map not only converges to the desired Gibbs state, but also does so in
polynomial time.
The third approach is based on the quantum Metropolis algorithm [TOV+11]. This
approach also avoids the exponential scaling when the system Hamiltonian satisfies ETH
[SC22,CB21].
The advantages of the second approach are two fold. First, for every quantum system that
thermalizes fast in nature, it is expected that our algorithms can also prepare its corresponding
Gibbs state efficiently without suffering from the exponential dependence on the number of
qubits. Second, this approach fits well for many physics-motivated applications. For example,
we can use our algorithm to prepare a “partially thermalized” (in the natural thermalization
Accepted in Quantum 2023-10-03, click title to verify. Published under CC-BY 4.0. 3