We study the transverse field Ising model, defined by the Hamiltonian H=21∑i,j∈[n]JijZiZj+∑i=1nhizZi+η∑iXi where J is the symmetric interaction matrix, and η is the transverse field strength. Let Δ(J)=λmax(J)−λmin(J) be the spectral width of J. When the inverse temperature β≥0 satisfies Δ(J)⋅ηtanh(βη)≤1, we give a randomized classical algorithm that approximates the partition function Z(β)=Tr(e−βH) to a given relative error ϵ∈(0,1) in time polynomial in n, β, the model parameters, and ϵ−1. When Δ(J)⋅ηtanh(βη)>1, we show that approximating Z(β) within an exp(o(n))-multiplicative factor is NP-hard, and thus unlikely to admit an efficient classical or quantum algorithms under standard complexity theoretic assumptions. Furthermore, in the regime Δ(J)⋅ηtanh(βη)≤1, we provide an efficient randomized classical algorithm that approximates Pauli string observables of the Gibbs state ρβ=Tr(e−βH)e−βH within an arbitrarily small additive error. In the special case when the observable is also diagonal in the X-basis, i.e. P∈{I,X}⊗n, the algorithm further achieves arbitrarily small relative error.
1 Introduction
Developing efficient algorithms to compute the partition function and observables of quantum Gibbs states is a central problem in quantum statistical mechanics, quantum information, and complexity theory. In this work, we study the problem of approximating the partition function and Gibbs observables for the transverse-field Ising model (TFIM). The TFIM has been extensively studied in quantum simulation and quantum annealing [13, 30, 45, 22, 39, 11, 38, 40]. It is the simplest and most studied stoquastic Hamiltonian [14] and characterizes StoqMA [15], one of the four complexity classes in Cubitt and Montanaro [21]'s classification of 2-local quantum Hamiltonians.
where Jij∈R is the interaction term, hiz∈R is the longitudinal field, η∈R is the transverse field.
Without loss of generality, we may assume that the interaction matrix J=(Jij)ij∈Rn×n is symmetric, as replacing J with 2J+J⊤ leaves the Hamiltonian unchanged. Since J is symmetric, its eigenvalues are real. We write λmax(J) and λmin(J) for its largest and smallest eigenvalues, respectively, and Δ(J):=λmax(J)−λmin(J) for its spectral width.
We consider the problem of computing the partition function Z(β)=Tr(e−βH) at inverse temperature β≥0. Prior works either require the system to be ferromagnetic [13] (i.e., −Jij≥0 and hiz=0) or at high temperature [20, 41].
*Department of Computer Science and Engineering, UC San Diego. thvuong@ucsd.edu
1Here for P∈{X,Y,Z,I} and i∈[n], Pi:=I⊗(i−1)⊗P⊗I⊗(n−i). X,Y,Z,I are the 2×2 Pauli matrices:
X:=[0110],Y:=[0i−i0],Z:=[100−1],I:=[1001]
Specifically, Crosson and Slezak [20] obtained an efficient classical approximation algorithm for Z(β) when β satisfies the Dobrushin-type condition
Very recently, [41] extended this result to a broader regime defined by the spectral condition βΔ(J)≤1.2 They also proved that this condition is tight when the transverse field strength ∣η∣ is sufficiently small relative to Δ(J). However, characterizing the tractability region under strong transverse fields remained an open problem (see [41, Remark 3]). We remark that understanding the TFIM in the strong transverse field regime and the qualitative changes induced by varying transverse field are of central importance to quantum annealing and condensed matter physics [27, 9, 34].
Our first result gives a computational phase diagram for the TFIM partition function for all transverse field strengths. In Theorem 1, Part 1, we give a randomized classical algorithm that approximates Z(β) to a relative error ϵ∈(0,1) in time polynomial in n, β, the model parameters, and ϵ−1 when Δ(J)⋅ηtanh(βη)≤1, 3 a weaker condition than βΔ(J)≤1 from [41]. In Theorem 2, we show that when Δ(J)⋅ηtanh(βη)>1, approximating the partition function within an exp(o(n))-multiplicative factor is NP-hard (Theorem 2) and thus is unlikely to admit an efficient classical or quantum algorithm under the standard complexity theoretic assumptions that NP ⊆ BQP and NP = RP. When the transverse field dominates the interaction strength, specifically Δ(J)≤∣η∣, our algorithm applies at any inverse temperature β≥0, and consequently enables approximating the ground state energy E0=λmin(H) to arbitrary additive precision (Remark 3).
As a further application of our techniques, we provide classical algorithms for estimating observables of the Gibbs state ρβ=Z(β)e−βH in the tractable regime Δ(J)ηtanh(βη)≤1. Specifically, we obtain an efficient classical algorithm to approximate Tr(Pρβ) for any Pauli string P∈{I,X,Y,Z}⊗n to arbitrary additive error (see Theorem 1, Part 2). For Pauli strings that are diagonal in the X-basis, our algorithm achieves the stronger guarantee of arbitrarily small relative error. Because Pauli strings form a basis for observables, our technique extends to any observable with an explicitly given polynomial-size Pauli expansion O=∑P∈{I,X,Y,Z}⊗ncPP, yielding an additive estimator whose runtime has an additional poly( ∑P∣cP∣) dependency. Finally, combining our techniques with the state preparation framework of Wong [46, Section 3.2], we also obtain an efficient quantum algorithm to prepare the Gibbs state (see Theorem 16).
Theorem 1 (Informal, see formal version at Theorem 10). Fix β≥0 such that 0≤Δ(J)⋅ηtanh(βη)≤1.
Fix ϵ,δ∈(0,1). There exists an efficient randomized classical algorithm that runs in time
poly(n,β,i,jmax∣Jij∣,max∣hiz∣,∣η∣,ϵ−1)⋅logδ−1
and:
Computes Z s.t. Pr[(1−ϵ)Z(β)≤Z≤(1+ϵ)Z(β)]≥1−δ.
Given a Pauli string O=∏i=1nPi, computes Tr(Oρβ) s.t. Pr[Tr(Oρβ)−Tr(Oρβ)≤ϵ]≥1−δ.
In the special case when O is also diagonal in the X-basis, i.e., Pi∈{Xi,Ii}∀i∈[n], we have the stronger guarantee Pr[Tr(Oρβ)−Tr(Oρβ)≤ϵ∣Tr(Oρβ)]≥1−δ.
Our algorithm extends more generally to systems with site-dependent transverse fields (see Theorem 10).
Theorem 2 (Informal, see formal version at Theorem 20). Fix η,β>0. For any ε>0, there exists a family of symmetric matrices J∈Rn×n with Δ(J)⋅ηtanh(βη)∈(1,1+ε), such that approximating Tr(e−β(21∑ijJijZiZj+η∑iXi)) within an exp(cn)-multiplicative factor is NP-hard, and thus unlikely to admit an efficient classical or quantum algorithm assuming NP ⊆ BQP and NP = RP. Here c is a constant dependent only on ε,η,β. Moreover, the matrices in this family can be chosen to have zero diagonal and rational entries of Oη,β,ε(1) bit length (see Remark 30).
2In particular, [41] applies when β≤2ΔB1, a condition that strictly improves upon [20]'s condition that β<2(Δ+2)B1. See [41] for further discussion.
3Throughout, we adopt the convention xtanhx=1 when x=0. In particular, ηtanh(βη)=β when η=0.
Remark 3 (Approximating the ground state energy when Δ(J)≤∣η∣). For β>0, let F(β):=−β1logZ(β) be the free energy. F(β) approximates the ground state energy E0=λmin(H): F(β)≤E0≤F(β)+βnlog2. Set β=ϵ3nlog2, and use Theorem 1 to compute Z^ in poly(n,maxi,j∣Jij∣,max∣hiz∣,∣η∣,ϵ−1)⋅logδ−1 time, where
Pr[21Z(β)≤Z^≤2Z(β)]≥1−δ
and output E^0=−β1logZ^. Then Pr[∣E^0−E0∣≤ϵ]≥1−δ.
1.1 Other related works
Most algorithms for computing partition functions and Gibbs observables of quantum spin systems apply only in the high-temperature regime [28, 26, 5, 6, 36, 32, 47]. When specialized to the TFIM, these general results are weaker than those of Crosson and Slezak [20] and Sinclair and Vuong [41]. Helmuth and Mann [29] consider low-temperature quantum systems that are sufficiently small perturbations of classical spin systems; for the TFIM, their result requires a sufficiently weak transverse field. Mann and Waite [33] consider a weak-interaction condition that, for the TFIM, implies the Dobrushin condition of [20].
1.2 Technical overview
For ease of exposition, we absorb −β into the Hamiltonian coefficients and assume η>0. The goal is to approximate Tr(eH) and Tr(Oρ) with ρ=Tr(eH)eH in the tractable region Δ(J)⋅ηtanhη≤1 and show hardness of approximating Tr(eH) beyond this region.
Fix an accuracy parameter ϵ>0, and a Trotter number M=poly(n,maxi,j∣Jij∣,max∣hiz∣,η,ϵ−1), and consider the Lie-Trotter approximation QM of eH, i.e.,
Here, each π(i) is an Ising model on a cycle graph on M vertices (a.k.a. a 1D Ising model with closed boundary conditions), with couplings ±KM(η) where KM(η)=21logcoth(η/M). The couplings take both positive and negative values when Pi∈{Xi,Yi}. For λ∈[0,1], let μλ be the tilt of π by λW, i.e., μλ(σ)=Eπ[eλW]eλW(σ)π(σ).
Choosing L≥n2maxi,j∣Jij∣ ensures that max{∣eW/Lf∣,∣eW/L∣}=O(1). We can then estimate Eπ[eWf] using samples from μλ with λ∈{Li−1∣i∈[L]}.
To sample from μλ, we use the Glauber dynamics: each step of this Markov chain chooses i∈[n] uniformly and resamples σi∈{±1}M conditioned on σ−i=(σj)j=i; resampling σi is equivalent to sampling from a 1D Ising model, and thus can be efficiently implemented.
Approximating the TFIM partition functions and Gibbs observables in the tractable region ( Δ(J)⋅ηtanhη≤1) thus reduces to proving rapid mixing of the Glauber dynamics on μλ. By the trickle down method of [3], this reduces to showing that the covariance matrices of all linear tilts of π(i) have operator norm at most
tanh(η/M)tanhη≈M⋅ηtanhη.
In Section 4.1, we prove the more general result that this covariance bound holds for any Ising model on a cycle with coupling terms in [−KM(η),KM(η)] and arbitrary external fields. The key idea is to bound each entry of the covariance matrix by relating the Ising model on the cycle to Ising models on paths.
We sketch the proof of hardness of approximation. We can relate the quantum partition function Tr(eH) to the partition function ZJclassical of a classical distribution μ~Jclassical. The hardness of approximation proof relies on the fact that the intractable regime is precisely where the Curie-Weiss TFIM is bimodal: the average σˉ=n1∑iσi, where (σ1,⋯,σn) is sampled from the corresponding classical distribution, is either close to m∗1 or −m∗1 with overwhelming probability, for some m∗∈(0,1). We prove this key property in Section 5.1 by establishing a large deviation principle for σˉ. Inspired by gadget construction techniques from [42, 43, 25], we use the bimodality of the Curie-Weiss TFIM to construct a hard TFIM instance from a hard MAXCUT instance G. We build a base gadget graph G^ by replacing each vertex v in G with a Curie-Weiss gadget Kv, and another gadget graph G by adding edges between these Curie-Weiss gadgets to represent the edges of G. We let V denote the common vertex set of G^ and G, and J^ and J~ be the adjacency matrices of G^ and G respectively. For each Curie-Weiss gadget Kv, we use a subset of vertices Rv⊆V(Kv) to encode the spin value of v: we set Y(σRv)=+1 if σˉRv=∣Rv∣−1∑i∈Rvσi is strictly closer to m∗1 than to −m∗1, and set it to −1 otherwise. Each configuration σ=(σi)i∈V thus maps to a configuration Y(σ)=(Y(σRv))v∈VG∈{±1}VG. For J∈{J^,J~} and y∈{±1}VG, let ZJ(y) be the contribution of configurations σ=(σi)i∈V with Y(σ)=y to ZJclassical; using the bimodality of the Curie-Weiss gadget, we can relate logZJ(y)ZJ(y) to the size of the cut defined by y. By adding sufficiently many antiferromagnetic edges between gadgets, we can make the contribution from the maximum cut(s) of G dominate, so that logZJclassicalZJclassical encodes MAXCUT( G), the maximum cut value of G. By a suitable choice of the gadget construction's parameters, we can ensure that both matrices J~ and J^ lie just beyond the tractable region, i.e., Δ(J)⋅ηtanh(η)∈(1,1+ε) for J∈{J~,J^}, while sufficiently accurate approximations to both ZJclassical and ZJclassical would give an approximation of MAXCUT( G) to a sufficiently small relative error. The APX-hardness of MAXCUT [2] then implies the hardness of approximation result in Theorem 2.
1.3 AI methodology
The author developed the high-level strategies for the approximation algorithms and the hardness of approximation proof. AI tools (GPT and Gemini) were used to develop the proofs of Lemma 13, Theorem 21, Proposition 8, and Proposition 9. The author also noted that elements of the AI-generated proof for Theorem 21 previously appeared in [18]. AI tools assisted with proofreading and typesetting. The author retains full responsibility for the paper's content.
1.4 Acknowledgement
We thank Benjamin Wong for insightful discussions.
1.5 Organization
In Section 3, we relate the partition function and Gibbs observables of the TFIM to the partition functions and expectations of classical distributions. We prove Theorem 1 in Section 4, and Theorem 2 in Section 5. In Appendix A.2.1, we analyze the Gibbs state preparation algorithm.
2 Preliminaries
For a measure ν and function V on an inner product space V, the tilt of ν by V is the measure TVν on V defined by
TVν(dσ)=Eσ∼ν[eV(σ)]eV(σ)ν(dσ)
For w∈V, we let Twν≡Tσ↦⟨w,σ⟩ν denote the linear tilt of ν by w.
For a matrix A∈Rn×n, let ∥A∥∞=maxi∑j∣Aij∣ denote its row norm, ∥A∥op denote its operator norm, and ∥A∥1 denote its Schatten-1 norm.
For symmetric A, let λmax(A) and λmin(A) denote its (real) maximum and minimum eigenvalues, and Δ(A)=λmax(A)−λmin(A) denote its spectral width.
For a vector v∈Rn, let ∥v∥∞=maxi∣vi∣, ∥v∥2=∑i∈[n]vi2 and ∥v∥1=∑i∈[n]∣vi∣. Unless otherwise noted, we use ∥v∥ to denote the L2-norm ∥v∥2.
Let S=R/Z be the circle of unit length; we identify S with [0,1) with 0 and 1 identified. Let L2(S) denote the collection of equivalence classes of square-integrable measurable functions f:S→R4 where two functions are equivalent if they agree almost everywhere. We view L2(S) as a vector space, so that for any function f∈L2(S) and scalar c∈R, cf is the function that maps t to cf(t) for t∈S. We let 1:S→R be the function that maps t to 1 for all t∈S. This vector space is equipped with the inner product ⟨f,g⟩=∫Sf(t)g(t)dt and L2-norm ∥f∥22=⟨f,f⟩. We also define the L1 norm, ∥f∥1=∫S∣f(t)∣dt and note that ∥f∥1≤∥f∥2 by Holder's inequality. Unless otherwise noted, we use ∥f∥ to denote the L2-norm ∥f∥2.
Throughout, A=exp(±r)B means that A=θB for some θ∈[e−r,er].
Computational model. Unless otherwise noted, we analyze our algorithms in the classical Real RAM model of computation [12, 35, 17], where the following operations take constant time: (1) accessing the content of any memory cell, (2) generating a uniformly distributed real number in [0,1], and (3) performing basic arithmetical operations involving real numbers like addition, multiplication, division, comparison, truncation, exponential, and logarithm. In Appendix B, we discuss how to implement our algorithms with finite-precision arithmetic and analyze their costs in the Word RAM model.
3 Relating Quantum Observables to Classical Expectations
In this section, we rewrite observables of the TFIM as expectations over classical distributions. To this end, we introduce the following definitions.
Construct the probability measure νη,(p) over functions σ:S→{±1} as follows:
Sample D∼Pois(η,p), where Pois(η,p) is the Poisson distribution Pois(η) conditioned on D≡pmod2.
For η>0, Pois(η,p) is defined by
D∼Pois(η,p)Pr[D=d]=d!Zη,(p)ηd,d≥0,d≡pmod2.
For η=0, taking the limit as η→0, we have PrD∼Pois(0,p)[D=d]=1[d=p]; thus Pois(0,p) places all probability mass on p.
Conditional on D=d, sample d independent uniform points t(1),…,t(d) in (0,1) and, independently, a uniform sign u∈{−1,+1}. Define σ:S→{±1}5 by: for t∈[0,1), set σ(t)=u(−1)#{j∈[d]:t(j)≤t}. Let J(σ):={t(1),…,t(d)}.
Let νη,(p) be the law of σ.
Definition 5. For interaction K=(K(k))k=0M−1∈RM and external field w=(w(k))k=0M−1∈RM, the 1D Ising model with closed boundary conditions (CBC) πK,w1DIsing,CBC is the probability distribution over {±1}M defined by: for any
This definition extends to allow infinite fields, i.e., w(k)∈{±∞} by taking limits. Infinite fields are interpreted as conditioning on s(k)=sign(w(k)) whenever w(k)∈{±∞}.
Fix M∈N≥3. We let ν^η,(p),M be the push-forward distribution of νη,(p) by the map
σ↦ValM(σ)=(σ(0),σ(M1),⋯,σ(MM−1))∈{±1}M.
We will show that ν^η,(p),M is a 1D Ising model with closed boundary conditions.
Proposition 6. ν^η,(p),M, the push-forward distribution of νη,(p) by the map σ↦ValM(σ), is exactly πKη,(p),01DIsing,CBC, where Kη,(p)=(K(k))k=0M−1 s.t. K≡KM(η)=21logcoth(η/M),
K(0)=⋯=K(M−2)=KM(η),K(M−1)=KM(η)(−1)p.
At η=0, the Ising representation is understood as the limit when η↓0.
In what follows, fix a symmetric matrix J=(Jij)i,j=1n∈Rn×n, a longitudinal field hz=(hiz)i=1n∈Rn and η=(ηi)i∈R≥0n. Define the Ising potential function v≡vJ,hz:{±1}n→R by:
Consider an observable O that is a product of Pauli matrices, i.e., O=∏i=1nPi.
Let S={i:Pi∈{Xi,Yi}}, XS=∏i∈SXi. For i∈[n], let pi=1i∈S, ν(i)=νηi,(pi) as in Definition 4. Fix an integer M≥3. Let ν^(i)=ν^ηi,(pi),M=πKηi,(pi),01DIsing,CBC as in Proposition 6 and
The following proposition follows from standard applications of the Lie–Trotter product formula (cf. [1, 31, 13, 20, 41]). In what follows, let QM=(eHz/MeHx/M)M.
The following propositions show that, for a suitable choice of M, Tr(OQM) is a good approximation of Tr(OeH).
Proposition 8. Let c=2maxi(∑j=i∣Jij∣+∣hiz∣). Fix ϵ∈(0,1). Suppose M≥ϵc((c+1)n+2∑i∣ηi∣). Then
Tr(XSeH)e−ϵ≤Tr(XSQM)≤Tr(XSeH)eϵ.
Proposition 9. Fix ϵ∈(0,1). Let c=∥J∥∞+∥hz∥∞+∥η∥∞. Suppose M≥C(max{ϵnc,ϵ(nc)3}) where C=15. Let ρ=eH/Tr(eH). We have:
Tr(QM)Tr(OQM)−Tr(Oρ)≤ϵ.
We defer the proofs to Appendix A.1.
4 Tractable regime
In this section, we will prove the following theorem, which immediately implies Theorem 1:
Theorem 10. Consider a symmetric matrix J=(Jij)i,j∈[n]∈Rn×n, hz=(hiz)i=1n∈Rn, η=(ηi)i∈Rn.
Let ηmin=mini∣ηi∣. Let α(η)=ηtanhη6. Suppose Δ(J)⋅α(ηmin)≤1.
Let H=21∑i,jJijZiZj+∑i=1nhizZi+∑iηiXi and ρ=eH/Tr(eH).
Fix ϵ,δ∈(0,1). There exists a randomized classical algorithm that runs in poly(n,maxi,j∣Jij∣,max∣hiz∣,max∣ηi∣,ϵ−1). logδ−1 time and:
Compute Tr(eH) s.t. Pr[Tr(eH)=e±ϵTr(eH)]≥1−δ.
Given S⊆[n] and XS=∏i∈SXi, compute Tr(XSρ) s.t. Pr[Tr(XSρ)=e±ϵTr(XSρ)]≥1−δ.
Given a Pauli string O=∏i=1nPi, compute Tr(Oρ) s.t. Pr[Tr(Oρ)−Tr(Oρ)≤ϵ]≥1−δ.
We need the following result:
Theorem 11. Fix an integer M≥3. Let Ω={±1}M.
For i∈[n], consider Ki=(Ki(k))k=0M−1, wi=(wi(k))k=0M−1, and let πi=πKi,wi1DIsing,CBC.
Consider a symmetric matrix J=(Jij)i,j∈[n]∈Rn×n, and let W be as in (7), i.e., W(s)=2M1∑i,jJij⟨si,sj⟩.
Let π=⨂i=1nπi and for λ∈[0,1], let μλ=TλWπ. We view μλ as a distribution over Ωn. We let μ≡μ1.
Suppose ∀i,k:∣Ki(k)∣≤K for K∈(0,+∞]. Let η≥0 be s.t. K=21lncoth(η/M), and let αM(η)=Mtanh(η/M)tanhη.
6Here, we follow the convention xtanh(x)=1 when x=0.
7Here, we follow the convention xtanh(x)=1 when x=0, so that αM(η)=1 when η=0.
In particular, this condition holds when Ki∈{Kηi,(p)∣p∈{0,1}} with ηi≥η, where Kηi,(p) is as defined in Proposition 6.
Let L=n⌈∥J∥∞⌉+1. The following holds:
Fix λ∈[0,1]. Suppose λΔ(J)αM(η)<1. Let ρ(t) be the distribution of the Glauber dynamics8 with respect to μλ initialized at ρ(0)≪μλ after t steps. Each step of the Glauber dynamics contracts KL-divergence by (1−Cn1), i.e.,
Let ρ(0)=π. Fix ϵTV∈(0,1). If t≥2(Cnlog(L/ϵTV)), then dTV(ρ(t),μλ)≤ϵTV. Sampling from π and implementing each step of the Glauber dynamics take O(nM) (classical) time. Hence, there exists a classical algorithm that samples from μ^λ with dTV(μ^λ,μλ)≤ϵTV in time O(1−λΔ(J)αM(η)nlog(L/ϵTV)⋅nM).
Suppose (1−1/L)Δ(J)αM(η)<1. For ϵ,δ∈(0,1), there exists a classical algorithm that runs in time
and outputs an approximation Z^ of Z=Eπ[eW] so that Pr[Z^=exp(±ϵ)Z]≥1−δ.
To prove Theorem 11, we need the following variant of [3, Theorem 9].
Theorem 12 (Variant of [3, Theorem 9]). Suppose that μ=⨂i=1nμ(i) is a product measure where each μ(i) is a probability measure on (SN−1)⊆RN. Let J⪰0, and define the measure ν by its density dμdν(x)∝exp(21∑i,jJij⟨xi,xj⟩). Suppose that for all i∈[n], the measure μ(i) is ρ semi-log concave, meaning that for all w, ∥Cov(Twμ(i))∥op≤ρ, with ∥J∥opρ<1. Then approximate tensorization of entropy (ATE) for ν holds with constant at most C=1−∥J∥opρ1, and thus each step of the Glauber dynamics on ν contracts KL-divergence by (1−Cn1). 9
To apply Theorem 12, we need the following covariance bound:
Lemma 13. Let π~K,w be the push-forward distribution of πK,w1DIsing,CBC in Definition 5 by the scaling map s↦M1s. Let K>0 be s.t. ∣K(k)∣≤K∀k, and η>0 be s.t. tanhK=e−2η/M, i.e., K=21lncoth(η/M). Then ∥Cov(π~K,w)∥op≤αM(η).
We also need the following propositions:
Proposition 14. Given K, w, there exists a classical algorithm that samples from πK,w1DIsing,CBC:{±1}M→R≥0 in O(M) time. In particular, this applies when K∈{Kη,(p)∣p∈{0,1}} where η≥0 and Kη,(p) is as in Proposition 6, provided that the distribution is well-defined.
Proposition 15. Consider a normalized density function ν over Ω and a function V:Ω→[−L,L] with L∈N≥1. For λ∈[0,1], let μλ=TλVν, i.e., μλ(σ)=Z(λ)exp(λV(σ))ν(σ), where Z(λ)=Eν[exp(λV(σ))]. For any ϵ,δ∈(0,1), there exists a classical algorithm that outputs a strictly positive estimator Z^ such that
Pr[(1−ϵ)Z(1)≤Z^≤(1+ϵ)Z(1)]≥1−δ.
Let K=Θ((L/ϵ)2) and K′=Θ(Klog(1/δ)). The algorithm uses K′ independent samples from μ^λ (where dTV(μ^λ,μλ)≤8K1 and λ∈{i/L∣i∈[0,L−1]∩N}) and K′ evaluations of V, and uses O(K′) additional arithmetic operations.
We will prove Lemma 13 in Section 4.1. We defer the proofs of Propositions 14 and 15 and Theorem 12 to Appendix A.2.
8Each step of the Glauber dynamics chooses i∈[n] uniformly and resamples si∈{±1}M conditioned on s−i=(sj)j=i.
9For background on ATE and Glauber dynamics, see [3, Sections 2.2 and 2.3].
Proof of Theorem 11. Part 1 is a corollary of Theorem 12 and Lemma 13. We replace J with J~=J−λmin(J)I⪰0; this does not change the distribution μ. Let π~i and μ~λ be the pushforward distributions of πi and μλ by s↦M1s respectively.
We will show π~i is αM(η)-semi log concave for each i∈[n], i.e., show that ∥Cov(Twπ~i)∥op≤αM(η) for all w.
This is trivial for η=0, since Twπ~i is supported on the ball of radius 1, so ∥Cov(Twπ~i)∥op≤1=αM(0). Assume η>0. Since Twπ~i is the pushforward of Tw′πi≡πKi,wi+w′1DIsing,CBC by s↦Ms, with w′=w/M, Lemma 13 gives ∥Cov(Twπ~i)∥op≤αM(η) as required.
By Theorem 12, the Glauber dynamics on μ~λ (and thus μλ) satisfies KL-divergence contraction
DKL(ρ(t+1)∥μλ)≤(1−Cn1)DKL(ρ(t)∥μλ)
with
C=1−∥λJ~∥opαM(η)1=1−λαM(η)Δ(J)1.
Hence, using Pinsker's inequality, DKL(ρ(t)∥μλ)≤(1−Cn1)tDKL(ρ(0)∥μλ), and the fact that sups∈suppπμλ(s)π(s)≤e2L since sups∈Ωn∣W(s)∣≤L, the next statement follows. Each step of the Glauber dynamics samples from a 1D Ising model with closed boundary conditions, whose parameters can be computed in O(nM) time, and thus can be done in O(nM) time by Proposition 14. Similarly, we can sample from π in O(nM) time by using Proposition 14 to sample from each πi in O(M) time.
We prove part 2. To compute Z, we apply Proposition 15 with relative accuracy ϵ/2, which reduces estimating Eπ[eW] to approximately sampling from μλ=TλWπ for λ∈{0,1/L,…,1−1/L}. Let K=Θ((L/ϵ)2) and K′=Θ(Klog(1/δ)). For each λ∈[0,1−1/L], we sample from μ^λ where dTV(μ^λ,μλ)≤ϵTV:=8K1 using part 1, which takes time T′=O(1−(1−1/L)Δ(J)αM(η)n2Mlog(L/ϵ)). Hence, the total runtime is
Let O be an arbitrary Pauli string observable. Conjugating by U=∏i:ηi<0Zi yields UHU†=H′:=Hz+∑i=1n∣ηi∣Xi and UOU†=sO, for s∈{±1} computable in O(n) time. Thus Tr(OeH)=sTr(OeH′). Hence, it suffices to estimate Tr(OeH′). We therefore assume without loss of generality that ηi≥0∀i.
Let η≡ηmin. We use the same notation and setup as in Proposition 7.
For part 1, we apply the above procedure to S=∅. For part 2, we apply the above procedure for S and ∅, compute Tr(XSeH) and Tr(eH), and output Tr(XSρ)=Tr(eH)Tr(XSeH). We have:
(12) is trivially true when η=0. When η>0, note that the choice of M implies M≥ϵ10Lη, thus tanh(η/M)≥Mη(1−M2η2) and (1−1/L)Δ(J)αM(η)≤1−100L2ϵ21−1/L⋅Δ(J)α(η)≤1−2L1.
Next, we prove part 3. Let ϵ′=100ϵ. Applying Proposition 9, we have Tr(Oρ)−Tr(QM)Tr(OQM)≤ϵ′, where we recall that by Proposition 8, Tr(QM)>0. Fix λ=1−1/L. Using Proposition 7, we can rewrite
Let B^=Tr(QM)DEν~[eλW]. Then, with probability ≥1−δ/2, we have:
0≤e−2ϵ′B≤B^≤e2ϵ′B.
We approximate A:=Eμλ[eW/Lf]. Note that ∣eW/Lf∣≤e, thus ∣A∣≤e. Let A^=Eμλ[eW/Lf] be the empirical average of eW/Lf over Θ(ϵ2log(1/δ)) independent samples from μ^λ where dTV(μ^λ,μλ)≤ϵ′/(4e). By Hoeffding's inequality, with probability ≥1−δ/2, we have: ∣A−A^∣≤ϵ′. The algorithm outputs Tr(Oρ)=i{i:Pi=Yi}∣R^ with R^=A^B^. With probability ≥1−δ, we have:
To sample from μ^λ, we use Theorem 11. By (12), the total runtime is O(T) with T as in (11).
[46, Section 3.2] reduces Gibbs state preparation for stoquastic Hamiltonians to approximately computing conditional marginals of the corresponding classical distribution (see Theorem 33 from Appendix A.2.1 for details). Using Theorem 11, we can approximate these conditional marginals, and thus obtain an efficient quantum algorithm that prepares ρ=Tr(eH)eH. We defer the proof to Appendix A.2.1.
Theorem 16. Fix ϵTV∈(0,1). In the same setting as Theorem 10, there exists a quantum algorithm that runs in poly(n,maxi,j∣Jij∣,max∣hiz∣,max∣ηi∣,ϵTV−1) time and outputs a quantum state ρ^ where ∥ρ^−ρ∥1≤ϵTV.
4.1 Bounding the covariance of the 1D Ising model
In this subsection, we prove Lemma 13. We recall the definition of πK,w1DIIsing,CBC.
where the last inequality follows from Lemma 17. Indeed, by relabeling, we only need to bound ∑j∣Cov(π)i,j∣ for i=1. Let a=tanhK=e−2η/M∈(0,1). By Lemma 17, ∣Cov(π)i,j∣≤1+aMaj−1+aM+1−j for i=1 and j∈[M], thus
To prove Lemma 17, we relate the entries of Cov(πK,w1DIIsing,CBC) to those of certain Ising models on a path (a.k.a. 1D Ising with open boundary condition) using Proposition 18, Eqs. (14) and (15), then bound the latter using Proposition 19.
Proposition 18. Consider ρ:{±1}2→R>0. We can write ρ uniquely as the (unnormalized) density function of an Ising model as follows. Let
Proposition 19. Let μ≡πK,w1DIsing,OBC. Then ∀i,j∈[M],i≤j:∣Cov(μ)i,j∣≤∣∏k=ij−1tanh(K(k))∣.
Proof of Lemma 17. The case i=j is trivial; below we assume i=j. By relabeling, we can assume i=1 w.l.o.g. Let μ0 be the unnormalized density function corresponding to πK,w1DIsing,CBC, defined by:
We observe that μ0(s(1),⋯,s(M))=μ1(s(1),⋯,s(j))μ2(s(j),⋯,s(M),s(1)). For t∈{0,1,2}, let ρt:{±1}2→R>0 be the unnormalized density induced on (s(1),s(j)) by μt. Explicitly, for (x,y)∈{±1}2:
where in the last equality, we use the identities tanh(x+y)=1+tanh(x)tanh(y)tanhx+tanhy and AB=∏k=1M∣tanh(K(k))∣. When ∣K(k)∣≤K∀k, using monotonicity of tanh, we have A≤aj−i, B≤aM−(j−i) and
Proof of Proposition 19. For any i,j∈[M], let Ψ(i→j)=21(Es∼μ[s(j)∣s(i)=1]−Eμ[s(j)∣s(i)=−1]). For i≤j, a standard calculation (see e.g. [8, Eq. (21)]) gives:
We note that the case η=0 corresponds to the classical Ising model case, and Theorem 2 follows from [25], so we will focus on the case η=0. Fix η=0 and b′>bmin:=η/tanhη. Following [25], to formally state the result, we define the following computational problem.
Problem: SPECTRALTFIM(η, b')
Input: A symmetric matrix J∈Rn×n with Δ(J)∈(bmin,b′).
Output: The partition function Z=Tr(exp(21∑i,jJijZiZj+η∑iXi)).
Theorem 20. For every fixed η=0 and b′>η/tanhη, there is a constant c>0 dependent only on η and b′ such that approximating SPECTRALTFIM( η,b′) within a factor ecn is NP-hard. A polynomial-time randomized (respectively quantum) algorithm for this task would imply NP = RP (respectively NP ⊆ BQP).
Our hard instance involves gluing together multiple copies of Curie-Weiss gadgets. In Section 5.1, we prove properties of the transverse field Curie-Weiss model that would be used in our analysis (see Theorem 21 and Corollary 22). Section 5.2 describes the hard instance(s), and Section 5.3 gives the proof of Theorem 20.
As explained in the proof of Theorem 10, for Hz=21∑ijJijZiZj, Hz+η∑iXi and Hz+∣η∣∑iXi are unitarily equivalent, so we can assume wlog that η>0. For the rest of this section, fix η>0 and let νη≡νη,(0) be as defined in Definition 4. Recall that νη is a distribution over functions from S=R/Z to {±1}. It will be convenient to view νη as a distribution over the separable Hilbert vector space L2(S) by identifying a function σ:S→{±1} with its equivalence class in L2(S).
5.1 The transverse-field Curie-Weiss model
Fix η>0 and b>0 such that
ηbtanh(η)−1>0.(16)
For n∈N≥1, we let μn≡μn,b,ηCurie-Weiss denote the classical distribution corresponding to the Curie-Weiss TFIM model with Hamiltonian H=2nb(∑i=1nZi)2+η∑i=1nXi.
There exists r0≡r0(δ,t,b,η)>0 so that for r≥r0, the following holds:
Qs(τ)=exp(±3btδ)⋅A0⋅exp(bsm∗j∈S∑⟨τj,1⟩)
where A0=∫1σˉ∈B+1e2br∥σˉ∥2dνR(σ).
We prove Theorem 21 by establishing a large deviation principle (LDP) for σˉ=n1∑i=1nσi where σ=(σ1,⋯,σn)∼μn with a suitable rate function.
All LDPs below have speed n and use the norm topology on the Hilbert space L2(S).
Definition 23. A sequence of probability measures {ρn}n≥1 satisfies the large deviation principle with rate function I10 if, for every measurable set Γ,
where Γ∘ and Γ denote the interior and closure of Γ, respectively.
Proposition 24. Let σ1,…,σn be i.i.d. samples from νη, and let ρ~n be the distribution of their average σˉ=n1∑i=1nσi.
Let F(σ)=2b∥σ∥2 and ρn=TnFρ~n, i.e., dρn(σ)=Eρ~n[exp(nF(σ))]exp(nF(σ))dρ~n(σ). Then ρn is exactly the law of the average σˉ′=n1∑i=1nσi′ where (σ1′,…,σn′)∼μn.
The sequence (ρ~n)n∈N satisfies a large deviation principle (LDP) with rate
Proof of Proposition 24. That the sequence (ρ~n)n∈N satisfies an LDP with rate I~ follows from Cramer's theorem for Banach spaces [24, Theorem 2.3]: L2(S) is a separable Banach space (see [16, Section 4.3, Theorem 4.13] and [4, Section 7B, Theorem 7.24]), and for any t>0, Ex∼νη[exp(t∥x∥)]<∞ since νη is supported on the set of functions with L2 norm bounded by 1, i.e., B={f∈L2(S):∥f∥2≤1}. Since B is convex, the measures (ρ~n)n are also supported on B. Since F is continuous and bounded on B, the first statement and Varadhan's theorem (see [37, Chapter 3, Exercise 3.9]) imply that the sequence of measures (ρn)n satisfies an LDP with rate J(x)=I(x)−infI, where I=I~−F. Next, substituting λ=bx in the definition of I~, we obtain:
I~(x)≥b∥x∥2−Λνη(bx)
thus
I(x)=I~(x)−F(x)≥F(x)−Λνη(bx)=−Φb,η(bx)
10Here, we implicitly assume that I is a lower semicontinuous map into [0,∞].
Next, we analyze the functional Φb,η from (23). We need the following proposition, which follows from similar arguments as in [18]. We defer the proof to Appendix A.3.
Proposition 25. Let ϕ(r)=Φb,η(r1), R(r)=η2+r2. We have:
drdΦb,η(r1)=ϕ′(r)=r(R(r)tanhR(r)−b1)(24)
There exists a unique m∗∈(0,1), such that, writing R∗=R(bm∗), we have:
The following proposition characterizes the rate function J from Proposition 24.
Proposition 27. For I from (22) and m∗ from Proposition 25, infI=I(m∗1)=−Φb,η(bm∗1). Hence, the sequence (ρn)n from Proposition 24 satisfies a large deviation principle (LDP) with rate
Remark 28. [18] asserts the same LDP rate as in Proposition 27, but their proof has a gap: it relies on the false statement that ∥q∥−m∗1∥2≥c′mins∈{±1}∥q−sm∗1∥2 for some constant c′>0 (see [18, Eq (7.4)]). To see why this statement is false, take q(t)={m∗−m∗t∈[0,1/2)t∈[1/2,1). Then ∥q∥−m∗1∥2=0 but mins∈{±1}∥q−sm∗1∥2=2m∗2>0. Proposition 29 in the proof of Lemma 26 addresses this gap.
Proof of Proposition 27. By [31, Lemma 4.1], Λνη is convex, and its Gâteaux derivative is
∇Λνη(f)=eΛνη(f)Eσ∼νη[σexp(⟨f,σ⟩)].
Convexity implies that ∇Λνη(f) is a subgradient of Λνη at f. In particular, for f=bm∗1 where m∗ is as defined in Proposition 25, a calculation gives ∇Λνη(f)=m∗1. Indeed, by the translational invariance of νη, ∇Λνη(bm∗1)=c~1, with R(r)=η2+r2 and
where we use (24) and (25). Since I~ is the Legendre transform of Λνη, the Fenchel-Young identity (see e.g. [7, Proposition 16.10]) at x=m∗1 and f=bm∗1 gives
I~(x)=⟨x,f⟩−Λνη(f)=b∥x∥2−Λνη(bx)
hence
I(m∗1)=I~(x)−F(x)=F(x)−Λνη(bx)=−Φb,η(bm∗1)
On the other hand, (23) and Lemma 26 together imply
Thus, for c=min{c2,c3′}=min{13c1,c3}>0, Φ(bm∗1)−Φ(bq)≥cmins∈{±1}∥q−sm∗1∥2 as desired.
We are finally ready to prove Theorem 21 and Corollary 22.
Proof of Theorem 21. The law of σˉ is exactly ρn from Proposition 24. Let m∗ be as in Proposition 25. Let Γ:=L2(S)∖(B(m∗1,δ)∪B(−m∗1,δ)). By Proposition 27, Definition 23, where c′ is the constant c from Lemma 26, we have:
Note that φ^(Γ)=Z⋅μr,b,ηCurie−Weiss{σˉ∈Γ} where Z=EνR[e2br∥σˉ∥2]. Let D=L2(S)∖(B+1∪B−1). Let c0 be the constant c from Theorem 21 and n0(δ) be as in Theorem 21. Set c=c0/2 and increase n0(δ) so that e−crδ2≤1/2 whenever r≥n0(δ). Since Z=2A0+φ^(D), Theorem 21 gives
As usual, we identify an Ising interaction matrix J with a weighted graph, where the weight between vertices i,j stands for the entry Jij of J.
Consider a 3-regular graph G=(VG,EG) with ∣VG∣=n0 vertices, an instance of MAXCUT.
Let b,w∈R and r,t′∈N be parameters to be chosen later. Let K be the Curie-Weiss gadget graph on n1:=r+3t′ vertices, where the interaction between any pair of vertices of K, including self-loops, is rb. Let t=3t′.
• We replace each node v∈VG with a distinct copy Kv of K on a set of vertices Wv. Let G^ be the disjoint union of Kv for v∈VG, and J^ be the corresponding interaction matrix.
• We now describe how to encode the edges of G using connections between the gadgets. For each neighbor v of u, let Suv be a subset of Wu with ∣Suv∣=t′, so that Suv∩Suw=∅ for v=w. For each edge {u,v}∈EG, we add a perfect matching Euv between Suv and Svu, where each edge in the perfect matching has weight w. Let Su=⋃vSuv, Rv=Wv∖Sv.
We let G be the graph obtained by adding these edges to G^, and J~ be the corresponding interaction matrix. Let V=⋃v∈VGWv, R=⋃v∈VGRv, S=⋃v∈VGSv.
5.3 Proof of Theorem 20
We use the same setup and notation as in Section 5.2. Recall that bmin=tanhηη>0. Let b=2b′+bmin>bmin and w=5bmin−b′<0
For a nonempty subset M⊆V, let σM=(σi)i∈M,σˉM=∣M∣1∑i∈Mσi, and νM=⨂i∈Mνη. When M=V, we omit the superscript and write ν≡νV.
As in Corollary 22, let Y(σM)={1−1if ∥σˉM−m∗1∥<∥σˉM+m∗1∥else and let Y(σR)=(Y(σRv))v∈VG.
For τS=(τi)i∈S, and y=(yv)v∈VG∈{±1}VG, we let
The second equality is because wZ1Z2+bm∗(yuZ1+yvZ2)+η(X1+X2) and wyuyvZ1Z2+bm∗(Z1+Z2)+η(X1+X2) are unitarily equivalent via conjugation by X1(yu−1)/2X2(yv−1)/2.
For w′∈R, let F(w′)=Tr(ew′Z1Z2+bm∗(Z1+Z2)+η(X1+X2)). In Appendix A.3, we show that
Note that J^ is a block matrix consisting of blocks Jv=rb⋅11⊤ for v∈VG, and thus Δ(J^)=b⋅rn1. Let J′=J~−J^ and note that the added edges form a matching, so J′ is a direct sum of 2×2 blocks of the form [0w′w′0] with w′∈{0,w}, thus ∥J′∥op=∣w∣. By Weyl's eigenvalue perturbation bound (see [10, Chapter 3]), we have:
∣Δ(J~)−Δ(J^)∣≤2∥J′∥op=2∣w∣.
Clearly, max{∥J~∥∞,∥J^∥∞}≤b⋅rn1+∣w∣. Recall that n1=3t′+r. Choose r s.t. r≥16t′⋅b′−bminb′+bmin. Then for J∈{J~,J^}, we have Δ(J)∈(bmin,b′) and ∥J∥∞≤b′.
Since MAXCUT is APX-hard even for 3-regular graphs [2, 25], we can choose a constant ζ∈(0,1) s.t. there exists a family of 3-regular graphs where given a graph G from this family, it is NP-hard to compute maxcut(G) s.t. ∣maxcut(G)−maxcut(G)∣≤ζmaxcut(G).
Let c>0 be chosen later, and suppose an algorithm approximates SPECTRALTFIM(η,b′) within a factor ec∣V∣. We run this algorithm separately on the two valid inputs J~ and J^. When both calls succeed, their outputs satisfy Tr(eH)=e±c∣V∣Tr(eH) and Tr(eH)=e±c∣V∣Tr(eH^).
Both J~ and J^ have spectral widths in (bmin,b′). Thus, running an approximation algorithm for SPECTRALTFIM (η,b′) separately on these two inputs would give a ζ-relative approximation to maxcut(G). If the algorithm succeeds on each input with probability greater than 2/3, taking the median of a constant number of independent runs makes both estimates correct with probability greater than 9/10. This contradicts the hardness of approximating MAXCUT unless NP = RP. The same reduction with a quantum approximation algorithm would imply NP ⊆ BQP.
Remark 30. The hardness from Theorem 20 persists even if we restrict to matrices J with zero diagonal and rational entries of bit length bounded by a constant depending only on η and b′. Indeed, choose rational b,w satisfying for D=5b′−bmin>0,
bmin+209D<b<bmin+2D,10D<−w<5D,
and take r such that b(1+3t′/r)+2∣w∣<b′, the same hardness reduction holds. Since b,w,r depend only on η and b′, and every entry of J^ and J~ belongs to {0,b/r,w}, their entries are rational numbers with Oη,b′(1) bit length.
Subtracting rb⋅I from J^ and J~ yields matrices J^o, J~o with zero diagonal entries, while keeping the spectral widths and the ratio between the corresponding partition functions, and thus the hardness reduction, unchanged.
References
[1] A. Adhikari and C. Brennecke. Free energy of the quantum sherrington–kirkpatrick spin-glass model with transverse field. Journal of Mathematical Physics, 61(8), 2020.
[2] P. Alimonti and V. Kann. Hardness of approximating problems on cubic graphs. In Italian conference on algorithms and complexity, pages 288–298. Springer, 1997.
[3] N. Anari, F. Koehler, and T. D. Vuong. Trickle-down in localization schemes and applications. Proceedings of the 56th Annual ACM Symposium on Theory of Computing, 2024.
[4] S. J. Axler. Measure, integration & real analysis, volume 282. Springer, 2020.
[5] A. Bakshi, A. Liu, A. Moitra, and E. Tang. High-temperature gibbs states are unentangled and efficiently preparable. 2024 IEEE 65th Annual Symposium on Foundations of Computer Science (FOCS), pages 1027–1036, 2024.
[6] A. Bakshi and X. Tan. Rapid mixing for high-temperature gibbs states with arbitrary external fields. ArXiv, abs/2604.08408, 2026.
[7] H. Bauschke and P. Combettes. Convex Analysis and Monotone Operator Theory in Hilbert Spaces. 01 2017.
[8] N. Berger, C. Kenyon, E. Mossel, and Y. Peres. Glauber dynamics on trees and hyperbolic graphs. Probability Theory and Related Fields, 131(3):311–340, 2005.
[9] M. Bernaschi, I. González-Adalid Pemartín, V. Martín-Mayor, and G. Parisi. The quantum transition of the two-dimensional ising spin glass. Nature, 631(8022):749–754, 2024.
[10] R. Bhatia. Perturbation bounds for matrix eigenvalues. SIAM, 2007.
[11] S. Boixo, T. F. Rønnow, S. V. Isakov, Z. Wang, D. Wecker, D. A. Lidar, J. M. Martinis, and M. Troyer. Evidence for quantum annealing with more than one hundred qubits. Nature physics, 10(3):218–224, 2014.
[12] A. Borodin and I. Munro. The computational complexity of algebraic and numeric problems. 1975.
[13] S. Bravyi. Monte carlo simulation of stoquastic hamiltonians. Quantum Inf. Comput., 15:1122–1140, 2014.
[14] S. Bravyi, D. P. DiVincenzo, R. I. Oliveira, and B. M. Terhal. The complexity of stoquastic local hamiltonian problems. Quantum Inf. Comput., 8:361–385, 2006.
[15] S. Bravyi and M. Hastings. On complexity of the quantum ising model. Communications in Mathematical Physics, 349(1):1–45, 2017.
[16] H. Brezis. Functional analysis, Sobolev spaces and partial differential equations, volume 2. Springer.
[17] K. Bringmann and K. Panagiotou. Efficient sampling methods for discrete distributions. Algorithmica, 79(2):484–508, 2017.
[18] L. Chayes, N. Crawford, D. Ioffe, and A. Levit. The phase diagram of the quantum curie-weiss model. Journal of Statistical Physics, 133:131–149, 2008.
[19] Y. Chen and R. Eldan. Localization schemes: A framework for proving mixing bounds for markov chains. arXiv preprint arXiv:2203.04163, 2022.
[20] E. Crosson and S. Slezak. Classical simulation of high temperature quantum ising models. Quantum, 9:1788, 2025.
[21] T. Cubitt and A. Montanaro. Complexity classification of local hamiltonian problems. SIAM Journal on Computing, 45(2):268–316, 2016.
[22] A. Dutta, G. Aeppli, B. K. Chakrabarti, U. Divakaran, T. F. Rosenbaum, and D. Sen. Quantum Phase Transitions in Transverse Field Spin Models: From Statistical Physics to Quantum Information. Cambridge University Press, 2015.
[23] M. Dyer and A. Frieze. Computing the volume of convex bodies: a case where randomness provably helps. Probabilistic combinatorics and its applications, 44(123-170):0754–68052, 1991.
[24] P. Eichelsbacher. Cramér's theorem in banach spaces. 05 1999.
[25] A. Galanis, A. Kalavasis, and A. V. Kandiros. On Sampling from Ising Models with Spectral Constraints. In A. Kumar and N. Ron-Zewi, editors, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2024), volume 317 of Leibniz International Proceedings in Informatics (LIPics), pages 70:1–70:14, Dagstuhl, Germany, 2024. Schloss Dagstuhl – Leibniz-Zentrum für Informatik.
[26] J. Haah, R. Kothari, and E. Tang. Learning quantum hamiltonians from high-temperature gibbs states and real-time evolutions. Nature Physics, 20:1027 – 1031, 2021.
[27] R. Harris, Y. Sato, A. J. Berkley, M. Reis, F. Altomare, M. Amin, K. Boothby, P. Bunyk, C. Deng, C. Enderud, et al. Phase transitions in a programmable quantum spin glass simulator. Science, 361(6398):162–165, 2018.
[28] A. W. Harrow, S. Mehraban, and M. Soleimanifar. Classical algorithms, correlation decay, and complex zeros of partition functions of quantum many-body systems. In Proceedings of the 52nd Annual ACM SIGACT Symposium on Theory of Computing, pages 378–386, 2020.
[29] T. Helmuth and R. L. Mann. Efficient algorithms for approximating quantum partition functions at low temperature. Quantum, 7:1155, Oct. 2023.
[30] A. D. King, J. Carrasquilla, J. Raymond, I. Ozfidan, E. Andriyash, A. Berkley, M. Reis, T. Lanting, R. Harris, F. Altomare, et al. Observation of topological phenomena in a programmable lattice of 1,800 qubits. Nature, 560(7719):456–460, 2018.
[31] H. Leschke, S. Rothlauf, R. Ruder, and W. Spitzer. The free energy of a quantum sherrington–kirkpatrick spin-glass model for weak disorder. Journal of Statistical Physics, 182(3):55, 2021.
[32] R. L. Mann. Fast algorithms for stoquastic spin systems, 2026.
[33] R. L. Mann and G. Waite. Efficient algorithms for weakly interacting quantum spin systems. Physical Review A, 114(1):012432, 2026.
[34] P. Narasimhan, S. Humeniuk, A. Roy, and V. Drouin-Touchette. Simulating the transverse-field ising model on the kagome lattice using a programmable quantum annealer. Physical Review B, 110(5):054432, 2024.
[35] F. P. Preparata and M. I. Shamos. Computational geometry: an introduction. Springer Science & Business Media, 2012.
[36] H. Putterman, A. Zlokapa, and J. Cotler. When quantum thermal states look classical. 2026.
[37] F. Rassoul-Agha and T. Seppäläinen. A course on large deviations with an introduction to Gibbs measures, volume 162. American Mathematical Society Providence, RI, 2015.
[38] T. F. Rønnow, Z. Wang, J. Job, S. Boixo, S. V. Isakov, D. Wecker, J. M. Martinis, D. A. Lidar, and M. Troyer. Defining and detecting quantum speedup. science, 345(6195):420–424, 2014.
[39] S. Sachdev. Quantum phase transitions. Physics world, 12(4):33–38, 1999.
[40] S. W. Shin, G. Smith, J. A. Smolin, and U. Vazirani. How" quantum" is the d-wave machine? arXiv preprint arXiv:1401.7087, 2014.
[41] A. Sinclair and T.-D. Vuong. A sharp computational phase transition for the partition function of the transverse-field ising model. In 21st Conference on the Theory of Quantum Computation, Communication and Cryptography (TQC 2026). Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 2026.
[42] A. Sly. Computational transition at the uniqueness threshold. In 2010 IEEE 51st Annual Symposium on Foundations of Computer Science, pages 287–296. IEEE, 2010.
[43] A. Sly and N. Sun. The computational hardness of counting in two-spin models on d-regular graphs. 2012 IEEE 53rd Annual Symposium on Foundations of Computer Science, pages 361–369, 2012.
[44] D. Stefankovic, S. S. Vempala, and E. Vigoda. Adaptive simulated annealing: A near-optimal connection between sampling and counting. 48th Annual IEEE Symposium on Foundations of Computer Science (FOCS'07), pages 183–193, 2006.
[45] J. Tindall, A. F. Mello, M. Fishman, E. M. Stoudenmire, and D. Sels. Dynamics of disordered quantum systems with two-and three-dimensional tensor networks. Science, 392(6800):868–872, 2026.
[46] B. Wong. Lee-yang tensors in quantum information and algorithms for local hamiltonian problems. 2026.
[47] C. Yin and A. Lucas. Polynomial-time classical sampling of high-temperature quantum gibbs states. arXiv preprint arXiv:2305.18514, 2023.
A Deferred proofs
A.1 From Section 3
Proof of Proposition 6. We prove the proposition for the case η>0; the case η=0 follows by taking the limit η→0. Fix s=(s(0),⋯,s(M−1))∈{±1}M, and let s(M)=(−1)ps(0). Recall the definition of J(σ) from Definition 4.
Proof of Proposition 7. We prove the identities assuming ηi>0 for every i; the cases with ηi=0 follow by taking the corresponding limits ηi↓0 on both sides. Recall v from (5) and V,V(M),W,f from (7).
For QM=(eHz/MeHx/M)M, inserting resolutions of the identity in the Z-basis gives
and take the limit M→+∞. By the Schatten-Holder inequality and the Lie-Trotter product formula (∥QM−exp(Hz+Hx)∥opM→∞0), we have:
Tr(OQM)−Tr(OeH)≤∥O∥1⋅∥QM−eH∥opM→∞0
11Here we abuse notation slightly and use Pi to denote the corresponding 2×2 matrix that acts on site i.
thus limM→∞Tr(OQM)=Tr(OeH). Almost every path has finitely many jumps, so V(M)→V. Moreover, v is bounded on {±1}n and ∣f∣≤1. Dominated convergence therefore gives
M→∞limEν[eV(M)(σ)f(σ)]=Eν[eV(σ)f(σ)],
thus
Tr(OeH)=i∣{i:Pi=Yi}∣Tr(XSeHx)Eν[eV(σ)f(σ)]
□
Proof of Proposition 8. We prove the identities assuming ηi>0 for every i; the cases with ηi=0 follow by taking the limit ηi↓0 on both sides.
Recall V,V(M) from (7), Hz,Hx and ν from Section 3. Let μ=TVν. (8) and (9) give Tr(XSQM)=Tr(XSeH)RM where
RM:=Eν[eV]Eν[eV(M)]=Eμ[exp(V(M)−V)]
For σ as constructed in Definition 4, and k∈[0,M−1]∩N, let Nk(σ)=∣J(σ)∩(Mk,Mk+1)∣ be the number of jumps in (Mk,Mk+1], and N(σ)=∣J(σ)∣=∑k=0M−1Nk(σ). Since each jump changes v by at most c, we have:
Next, we bound Eμ[ecN/M] by performing a change of measure from μ to ν. Assuming c/M≤1, the function f(x)=xc/M is concave, thus Jensen's inequality gives
Eμ[ecN/M]=Eμ[f(eN)]≤f(Eμ[eN])=Eμ[eN]c/M
Since Eν[eV]eV≤ecn, Eμ[eN]=Eν[Eν[eV]eV⋅eN]≤ecnEν[eN]. Hence
logEμ[ecN/M]≤Mc(cn+logEν[eN])(39)
Note that ν=⊗iν(i), so Eν[eN]=∏iEν(i)[eN]. We show
logEν(i)[eN]=logEνηi,(pi)[eN]≤2ηi+1(40)
then conclude that
logEν[eN]=i=1∑nlogEν(i)[eN]≤2i∑ηi+n
We set M≥ϵc((c+1)n+2∑iηi)≥c. Then (38), (39) give the desired result.
We finish the proof by proving (40), i.e., we want to show that logEνη,(p)[eN]≤2η+1. This is obviously true when η=0. Assume η>0.
To prove Proposition 9, we need the following helper proposition.
Proposition 31. For Hermitian matrices K,C∈Cd×d,
Tr(eK+C)eK+C−Tr(eK)eK1≤∥C∥op.
Proof of Proposition 31. Set ρ=eK+C/Tr(eK+C), σ=eK/Tr(eK), and δ=∥ρ−σ∥1. Assume wlog that δ>0. Write D(ρ∥σ)=Tr[ρ(logρ−logσ)]. Quantum Pinsker's inequality and Schatten–Holder give
Since ν^0,(0),M and ν^0,(1),M have support size at most 2M, sampling Twν^0,(p),M in O(M) time is straightforward.
Let S+1={k:w(k)=+∞}, S−1={k:w(k)=−∞}, S0={k:w(k)∈R}, and S=S+1∪S−1.
For r∈[M], we compute Wr=∑k∈S0∩[0,r−1]w(k), which takes O(M) time in total.
For p=0, the distribution Twν^0,(p),M is well-defined iff either S+1 or S−1 is empty; in this case, we sample u∈{±1} with probability proportional to euWM1S−u=∅ and output u1.
We let
au=max(Su∪{−1}),bu=min(S−u∪{M}).
Computing au,bu for both signs takes O(M) time, after which each compatibility test takes O(1) time.
For p = 1, the vector vu,r equals u before r and -u afterward, so it is compatible with the infinite fields iff
S−u∩[0,r−1]=∅andSu∩[r,M−1]=∅⇔au<r≤bu.
12Here δs is the Dirac delta distribution at s.
The distribution Twν^0,(1),M is well-defined iff at least one pair (u,r) satisfies these conditions.
In this case, sample (u,r)∈{±1}×[M] with probability proportional to
and output vu,r. The total runtime in both cases is O(M).
Proof of Proposition 15. We will use the following result.
Proposition 32 ([23], restated in [44, Theorem 2.2]). Let W1,…,Wℓ be independent random variables that take positive real values, and satisfy E[Wi]2E[Wi2]≤B for i∈[ℓ]. Let W=W1⋯Wℓ. Let Si be the average of ⌈16Bℓ/ϵ2⌉ independent random samples from Wi for i∈[ℓ]. Let S=S1S2⋯Sℓ. Then
Pr[(1−ϵ)E[W]≤S≤(1+ϵ)E[W]]≥43.
Let λi=Li∀i∈[0,L]∩N. For i∈[L], let Wi be the random variable eV(σ)/L, where σ is (independently) sampled from μλi−1. We have E[Wi]=Eσ∼μλi−1[eV(σ)/L]=Z(λi−1)Z(λi) and E[Wi]2E[Wi2]≤B for B=e2. Let W=W1W2⋯WL. Then
E[W]=i=1∏LE[Wi]=Z(0)Z(1)=Z(1)
Let Si be the average of ⌈16BL/ϵ2⌉ independent random samples from Wi for i∈[L], and let S=∏i∈[L]Si. The algorithm outputs Z^=S. By Proposition 32,
The total number of samples used is K=L⌈16BL/ϵ2⌉=Θ(L2/ϵ2). Let Z^′ be the estimate obtained by running the above algorithm with μλ replaced by μ^λ where dTV(μ^λ,μλ)≤8K1 for λ=λi,i∈{0,⋯,L−1}. We couple the samples from μ^λ and μλ so that, with probability ≥1−K⋅8K1, all K samples drawn from μ^λ are identical to samples from μλ and thus Z^′=Z^. Hence, with probability ≥5/8, (1−ϵ)Z(1)≤Z^′≤(1+ϵ)Z(1). To boost the success probability to 1−δ, we take the median of Θ(log(1/δ)) independent trials; the proof is via Chernoff's bound.
Proof of Theorem 12. The proof is a simplified version of the proofs of [3, Theorem 64] (the formal version of [3, Theorem 9]), and also uses elements from [3, Theorem 54]. We elaborate in the most detail on the parts which differ.
Let J′=J⊗IN and note that ∥J∥op=∥J′∥op. We view the spin system as a distribution on (SN−1)n, and let (νt)t∈[0,1] be the stochastic localization process with the time-invariant driving matrix Ct=(J⊗IN)1/2 initialized at ν0≡ν. This yields
Applying the scalar comparison as in [3, Lemma 55] yields ∥Cov(νt)∥op≤1−ρ∥J∥op(1−t)ρ. The ATE for ν then follows from a similar argument as in the proof of [3, Theorem 54], using entropic stability and the supermartingale property. For an arbitrary tilt w, applying the same localization argument starting at Twνt and running for time 1−t gives ∥Cov(Twνt)∥op≤1−ρ∥J∥op(1−t)ρ. Hence, νt is 1−ρ∥J∥op(1−t)ρ∥J∥op-entropically stable with respect to the function ψ(x,y)=21∥J′1/2(x−y)∥22. Therefore, for any nonnegative function f,
where in the first inequality we used [3, Proposition 35] ([19, Proposition 39]), the second inequality is tensorization for the product measure ν1, and the last inequality is the supermartingale property ([3, Lemma 39]). Thus ν satisfies ATE with constant at most C=exp(∫011−ρ∥J∥op(1−t)ρ∥J∥opdt)=1−ρ∥J∥op1. Hence, the Glauber dynamics on ν contracts KL-divergence by (1−Cn1).
A.2.1 Gibbs state preparation
We use the convention from the proof of Proposition 7. We let ∣+1⟩=[10], ∣−1⟩=[01].
For s=(s1,⋯,sn)∈{±1}n, we let ∣s⟩=⨂i=1n∣si⟩ be the corresponding Z-basis vector.
We need the following theorem, which follows from [46, Corollary 3].
Theorem 33. Let ϵTV∈(0,1) and let H,RM∈C2n×2n be Hermitian with ∥RM∥op≤ϵTV/8. Set ρ=eH/Tr(eH) and suppose UM=e(H+RM)/2 is entrywise nonnegative in the Z-basis, ⟨x∣UM∣y⟩≥0 for all x,y∈{±1}n. For partial configurations a∈{0,±1}n, where 0 denotes an unspecified spin, define
Suppose there exists a randomized classical algorithm that runs in time T and returns nonnegative estimates qM(ℓ,r;ω)13 such that for every ℓ,r∈{0,±1}n,
Then there exists a quantum algorithm that prepares a state ρ such that ∥ρ−ρ∥1≤ϵTV in time poly(n,T,log(1/ϵTV)). 14
13Here ω denotes the algorithm’s random tape.
14We assume that the classical algorithm admits a finite-precision implementation preserving the stated guarantees with poly(n,T,log(1/ϵTV)) bit complexity.
taking pω(b∣y)=1/2 if the denominator is zero. Each step computes the two child estimates coherently, performs the rotation, and uncomputes the estimates. Let ∣Ψω⟩ be the state obtained after these 2n exact rotations. Writing x<j:=(x1,…,xj−1), we have
∣Ψω⟩=x∈{±1}2n∑(j=1∏2npω(xj∣x<j))1/2∣x⟩.
In poly(n, T, log(1/ϵTV)) time, we can implement an approximation of these rotations with operator-norm error at most ϵTV/(16n) for each controlled rotation, so that the resulting state ∣Ψω⟩ satisfies:
∥ρ−ρ∥1≤2EωΨω⟩−Ψω⟩2≤4ϵTV,(44)
where ρ:=Eω[TrR(∣Ψω⟩⟨Ψω∣)], ρ:=Eω[TrR(∣Ψω⟩⟨Ψω∣)].
On G, zero-mass prefixes are never reached, and whenever q(y)>0, pω(b∣y)=e±2ϵq(y)q(yb).
On G, for every x∈{±1}2n, ⟨x∣Ψω⟩≥e−2nϵq(x)=e−2nϵ⟨x∣ΨM⟩. Thus
Proof of Theorem 16. Define Hz,Hx as in (6). Conjugating by ∏i:ηi<0Zi, we may assume ηi≥0; we undo this conjugation on the output state. Let ϵ,δ∈(0,1) be as in Theorem 33. Let
Let UM:=(eHz/(2M)eHx/(M)eHz/(2M))M′=e(H+RM)/2. By [13, Lemma 3] and the choice of M, RM is Hermitian and ∥RM∥op≤8ϵTV. We note also that UM is the product of matrices with nonnegative entries, and thus has nonnegative entries. We apply Theorem 33.
For partial configurations ℓ,r∈{0,±1}n, let Pℓ,Pr be as in Theorem 33, and let:
We compute π(Eℓ,r) in O(nM) time. Note that if π(Eℓ,r)=0, then qM(ℓ,r)=0, so we simply return qM(ℓ,r)=0. We assume π(Eℓ,r)=0, which implies the distribution ρ~≡π(⋅∣Eℓ,r) is well-defined, and
We use Theorem 11 with accuracy parameters ϵ/4, δ/2 to compute approximations Eρ~[eW] of Eρ~[eW] and Eπ[eW] of Eπ[eW], and obtain qM(ℓ,r)=π(Eℓ,r)Eπ[eW]Eρ~[eW] which satisfies:
Pr[qM(ℓ,r)=e±ϵqM(ℓ,r)]≥1−δ.
We justify the runtime using the same argument as in the proof of Theorem 10 (see (12) and (11)). As in (12), our choice of M gives
In Appendix B, we show that this estimator admits a finite-precision implementation that preserves its approximation guarantees with only polynomial overhead. Theorem 33 then gives a quantum algorithm that runs in time poly(n,maxi,j∣Jij∣,maxi∣hiz∣,maxi∣ηi∣,ϵTV−1)16 and prepares a quantum state ρ such that ∥ρ−ρ∥1≤ϵTV.
A.3 From Section 5
Proof of Proposition 25. Let Λ:=Λνη and Φ:=Φb,η. (8) gives
since the eigenvalues of ηX+rZ=[rηη−r] are ±R(r). Let ϕ(r)=Φ(r1)=logcosh(η)cosh(R(r))−2br2. Then
drdΦ(r1)=ϕ′(r)=r(R(r)tanhR(r)−b1).
The function g(R)=RtanhR is strictly decreasing on (0,∞).
Indeed, g′(R)=R2Rsech2(R)−tanhR. Let h(R):=(Rsech2(R)−tanhR). Then h vanishes at 0 and has derivative h′(R)=−2RtanhRsech2R<0 for R>0, so g′(R)<0 for R>0. Since g(η)>1/b by (16) and limR→+∞g(R)=0<1/b, there exists a unique R∗>η satisfying g(R∗)=1/b. Let m∗=b−1R∗2−η2. Then ϕ′(r)∣r=±bm∗=0, and m∗∈(0,1), since bm∗≤R(bm∗)=R∗=btanhR∗<b.
15Recall from Definition 5 that conditioning is equivalent to taking external fields to ±∞.
16We assume rational input coefficients of polynomial bit length and suppress the polynomial overhead of finite-precision arithmetic.
Since G′′(R)=−2tanh(R)sech2(R), G is concave on (0,+∞). Let c0=R∗−ηG(η)>0. Using concavity and G(R∗)=0, we have ∣G(R)∣≥c0∣R∗−R∣ for R≥η. Thus, for m≥0:
The summand corresponding to each k is nonnegative. The k=1 term is strictly positive, since by Holder's inequality ∫SEνη[eaAσσ(t)]2dt≥(∫SEνη[eaAσσ(t)]dt)2 and
where we recall the definition of J(σ) from Definition 4. Hence F(v)>F(−v) for every v>0.
B Finite precision
Assume the notation of Theorem 10. Suppose all model parameters Jij,hiz,ηi are rational numbers with bit length bounded by b. Let Λ=max{n,maxi,j∣Jij∣,maxi∣hiz∣,maxi∣ηi∣}.
We show how to implement the algorithms for approximating Tr(XSeH) and Tr(Oρ) from Theorem 10 and the subroutines to approximate qM(ℓ,r) in Theorem 16 with poly(b,Λ,ϵ−1)⋅logδ−1 cost in the word-RAM model. This allows implementing the quantum state-preparation algorithm in the quantum circuit model over a fixed finite universal gate set with poly(b,Λ,ϵTV−1) cost.
We use the same notation and setup as in the proof of Theorem 10; in particular, we assume ηi≥0∀i, and for the algorithms from Theorem 10 and Theorem 16, choose M,L as in the corresponding proofs. These algorithms and subroutines call the sampler from Theorem 11 part 1, which in turn calls the sampler from Proposition 14 with input K~=Kηi,(pi) from Proposition 6, and w~ where
∀k:eitherw~(k)∈{±∞}or∣w~(k)∣≤O(Λ)
and ∀k:∣K~(k)∣=KM(ηi). If ηi=0, KM(ηi)=+∞, else KM(ηi)=21logcoth(Mηi)≤21logηi2M≤O(b+logM) by [41, Proposition 18], and the facts that Mηi≤1 by the choice of M and that ηi=0 has bit length bounded by b.
For εTV∈(0,1), we sample from π^K~,w~1DIsing,CBC s.t. dTV(π^K~,w~1DIsing,CBC,πK~,w~1DIsing,CBC)≤εTV by rounding the arithmetic operations in the sampler from Proposition 14 17 using O(B) bits of precision, with
B=O(M(b+logM+Λ)+logεTVM).
Set εTV=4NϵTV with N=O(nLlog(L/ϵTV)). Recall that N gives an upper bound for the number of calls to the sampler from Proposition 14 by the (approximate) sampler for μλ with λ∈{Li∣i∈[0,L−1]∩N} from Theorem 11 part 1. Hence, by a standard coupling argument, the above rounding procedure, plus other standard approximations,
17In the sampler from Proposition 14, all arithmetic used to compute probabilities involves finite real numbers: infinite external fields are handled exactly, and the case ηi=0 is treated separately.
e.g., for sampling i∼Uniform([n]), gives an algorithm that samples from μ^λ with dTV(μ^λ,μλ)≤ϵTV by operating on O(B)-bit numbers and having runtime bounded by
O(n2MLlogϵTV2Lpoly(B))=poly(b,Λ,M,L,ϵTV−1).
Plugging this sampler into the algorithms in Theorem 10 and subroutines in Theorem 1618 gives the desired result.
18We use a similar rounding procedure to approximate D, C, π(Eℓ,r), and eW/L with relative accuracy; the case π(Eℓ,r)=0 can be detected exactly.