Introduction
Computing log partition functions is a fundamental problem in statistical physics and quantum computing. For an n n n -qubit Hamiltonian H H H at inverse temperature β \beta β , the quantities
Z ( β ) = Tr ( e − β H ) , f ( β ) = ln Z ( β ) Z(\beta)=\operatorname{Tr}(e^{-\beta H}), \qquad f(\beta)=\ln Z(\beta) Z ( β ) = Tr ( e − β H ) , f ( β ) = ln Z ( β )
determine the free energy and encode equilibrium thermodynamics. Their estimation also connects thermal simulation to counting and optimization, and to free-energy calculations in quantum chemistry [14 , 21 ] [26]. Our aim is to achieve Heisenberg scaling O ~ ( 1 / ϵ ) \widetilde{O}(1/\epsilon) O ( 1/ ϵ ) for general quantum Hamiltonians, i.e. to obtain an estimate of f ( β ) f(\beta) f ( β ) with additive error 0 < ϵ ≤ 1 0<\epsilon\leq1 0 < ϵ ≤ 1 , equivalently an estimate of Z ( β ) Z(\beta) Z ( β ) within a multiplicative factor e ± ϵ e^{\pm\epsilon} e ± ϵ , while minimizing dependence on system size and on the resources related to thermal state access.
We give quantum algorithms for this problem in two access models. In the first model, a temperature is specified classically, and the algorithm can call the corresponding thermofield-double preparation unitary, its inverse, and the required controlled operations. We estimate the local terms separately, using nearly unbiased quantum estimators so that errors accumulate through their variance, building upon the approach of [10 ] . Optimizing the precision allocated to each term gives, for a supplied schedule of length ℓ S V = O ~ ( n ) \ell_{\mathrm{SV}} = \widetilde{O}(\sqrt{n}) ℓ SV = O ( n ) ,
O ~ ( n 5 / 4 ϵ ) \widetilde{O}\left(\frac{n^{5/4}}{\epsilon}\right) O ( ϵ n 5/4 )
expected calls to purified-state preparation and to a Hamiltonian block encoding with normalization α = Θ ( h ) \alpha= \Theta(h) α = Θ ( h ) , at constant failure probability (Theorem 4.3 ). More generally, the bound depends on the distribution of interval lengths, rather than only their number. This gives a Heisenberg-precision reconstruction for arbitrary real spectra using coherent access at separately chosen temperatures.
The second model allows temperatures and reconstruction terms to be selected coherently. We use the classical inverse-binomial idea of estimating a log probability from a harmonic function of the waiting time to the first success [23] to build a quantum version of this estimator. Coherent truncation and reversible evaluation give a logarithmic sample with controlled bias and bounded second moment. Preparing a superposition over the reconstruction terms then lets us estimate their weighted sum with one quantum mean-estimation procedure. Under this stronger access model, for the same supplied schedule of length ℓ S V = O ~ ( n ) \ell_{\mathrm{SV}} = \widetilde{O}(\sqrt{n}) ℓ SV = O ( n ) , the expected reconstruction query counts improve to
O ~ ( n ϵ ) \widetilde{O}\left(\frac{n}{\epsilon}\right) O ( ϵ n )
for both coherent-temperature preparation and Hamiltonian block-encoding access (Theorem 5.4 ). Coherent access to temperature-labeled preparations can carry substantial implementation overhead: a direct selector has a gate cost that grows with the number of required temperatures. A common circuit whose parameters are computed reversibly from the temperature label provides a sufficient route to a gate-complexity advantage, when selection and parameter-loading costs are small; see § 7 .
Quantum algorithms for partition-function estimation have developed along several lines. Annealing methods estimate successive partition-function ratios using thermal states, whereas direct methods estimate traces of approximations to the exponential operator; hybrid approaches offer further alternatives [9 , 21 ] [24, 25]. We focus on algorithms with access to purified Gibbs states. Preparing thermal states can itself be the dominant computational task, and its cost depends strongly on the Hamiltonian and temperature [7 , 21 , 22 ] . We therefore separate the number of calls to state-preparation unitaries and Hamiltonian block encodings from their circuit implementations. This distinction also makes the access assumptions essential: a supply of mixed Gibbs states, coherent access to a purification at a classically chosen temperature, and preparation controlled by a quantum temperature register are different resources.
For classical systems, adaptive cooling schedules and bounded-variance ratio estimators form the basis of efficient counting algorithms [16 , 17 ] [26]. Quantum algorithms build on this framework using coherent encodings of classical Gibbs distributions, often called quantum samples [2 , 10 , 12 , 19 ] [24]. These works establish quadratic improvements in precision dependence, non-destructive estimation and state reuse, and efficient construction of slowly-varying schedules. Cornelissen and Hamoudi [10 ] further obtain sublinear dependence on the logarithm of the configuration space size by combining nearly unbiased estimates through their variance. These results exploit classical energy-evaluation access; several are formulated for nonnegative integer-valued energies, as arise naturally in counting problems. Their algorithms and bounds therefore do not transfer directly to an arbitrary quantum Hamiltonian supplied through a block encoding.
General quantum partition-function estimation has a substantial history [9 , 18 , 21 ] . The issue here is how to retain favorable precision and system-size scaling without assuming ingredients that are naturally present classically, like an integer spectrum or efficient evaluation of individual energies. Indeed, consider, e.g., the approach of [2 ] , which uses the quantum samples to put energy samples into bins as an integral part of the estimator. Resolving sharp energy bins for a quantum Hamiltonian can require additional spectral precision, especially when eigenvalues lie close to bin boundaries. To overcome this issue, we instead use smooth quantities: overlaps of canonical purified Gibbs states, or thermofield doubles, and short imaginary-time reweighting expectations. These quantities can be implemented without resolving individual energy levels, using purified-state access and quantum singular value transformation [11 ] .
Our reconstruction applies to any known shifted energy window 0 ⪯ H ⪯ h I 0 \preceq H \preceq hI 0 ⪯ H ⪯ h I . To state the system-size benchmarks, we take an extensive bound h = O ( n ) h = O(n) h = O ( n ) , conventionally h = n h = n h = n , and constant inverse temperature β = Θ ( 1 ) \beta= \Theta(1) β = Θ ( 1 ) . This includes bounded-strength local Hamiltonians with O ( n ) O(n) O ( n ) interaction terms, after a known scalar shift. Bounds for general h h h and β \beta β are retained in the main theorems.
The common starting point is a slowly-varying cooling schedule, i.e. a sequence of inverse temperatures along which neighboring thermofield doubles have constant overlap. Such schedules have long been central to classical and quantum annealing [2 , 6 , 12 ] [26]. In the constant-temperature regime, schedules with O ( n ) O(\sqrt{n}) O ( n ) length exist for all Hamiltonians; see § 6 . We use overlap-based adaptive schedule generation and analyze the reconstruction cost separately from the cost of obtaining the schedule.
On each schedule interval, a recursive-doubling identity similar to one observed in [18 ] expresses the change in f f f as a weighted sum of logarithms of overlap and reweighting probabilities. Here we combine this identity with short reweighting steps and a slowly-varying schedule so that all elementary probabilities stay uniformly bounded away from zero. Our contribution is the resulting reconstruction and its variance-sensitive quantum estimation, with two implementations distinguished by their access requirements.
A matching lower bound explains the linear system-size dependence in the stronger model compared to the sublinear results for classical systems of [10 ] . A scalar shift H ↦ H + c I H \mapsto H + cI H ↦ H + c I leaves every Gibbs state unchanged but changes f ( β ) f(\beta) f ( β ) by − β c -\beta c − β c . When this offset is accessible only through an α \alpha α -normalized Hamiltonian block encoding, estimating the absolute log partition function requires Ω ( α β / ϵ ) \Omega(\alpha\beta/\epsilon) Ω ( α β / ϵ ) block-encoding queries in the worst case for 0 < ϵ ≤ β min { h , α } / 16 0 < \epsilon\leq\beta\min\{h,\alpha\}/16 0 < ϵ ≤ β min { h , α } /16 , even with free coherent access to thermofield doubles at every temperature (Theorem A.3 ). Thus, for α = Θ ( h ) = Θ ( n ) \alpha= \Theta(h) = \Theta(n) α = Θ ( h ) = Θ ( n ) and constant β \beta β , the coherent-temperature algorithm is optimal up to logarithmic factors in this query model. The separately chosen-temperature algorithm is within a factor O ( n 1 / 4 ) O(n^{1/4}) O ( n 1/4 ) of this benchmark.
Finally, we translate the oracle bounds into circuit resource estimates for one-dimensional systems with efficient preparation [5 ] . We also explain how finite-temperature estimates yield ground-state degeneracy estimates when the ground energy and a suitable excitation-gap bound are available.
A direct fixed-temperature benchmark combines coherent adaptations of the uniform-grid ratio estimator of Rouzé et al. [22 ] with nearly unbiased estimation [10 ] . For extensive Hamiltonians at constant inverse temperature and fixed failure probability, our short-schedule reconstruction improves its O ~ ( n 3 / 2 / ϵ ) \widetilde{O}(n^{3/2}/\epsilon) O ( n 3/2 / ϵ ) query cost to O ~ ( n 5 / 4 / ϵ ) \widetilde{O}(n^{5/4}/\epsilon) O ( n 5/4 / ϵ ) . Coherent-temperature access gives O ~ ( n / ϵ ) \widetilde{O}(n/\epsilon) O ( n / ϵ ) , also on a uniform grid when its temperatures are supported at comparable per-call cost. Remark 5.6 derives these benchmarks and explains their relation to the original sampling bound.
Problem Setup and Main Results
We study partition-function estimation for quantum Hamiltonians with real-valued spectra. We first state the problem and the two thermal-state access models, then present query-complexity upper bounds for both algorithms and a lower bound for block-encoding queries. We next explain the common algorithmic framework, followed by the cooling-schedule guarantees and applications.
Estimation problem and access models
Let H = ∑ a E a ∣ a ⟩ ⟨ a ∣ H = \sum_a E_a \lvert a\rangle\langle a\rvert H = ∑ a E a ∣ a ⟩ ⟨ a ∣ be an n n n -qubit Hamiltonian with 0 ⪯ H ⪯ h I 0 \preceq H \preceq hI 0 ⪯ H ⪯ h I , where h > 0 h > 0 h > 0 is known. § 3 explains this normalization and its effect on the partition function. For a finite inverse temperature β ≥ 0 \beta\ge0 β ≥ 0 , define
Z H ( β ) : = Tr ( e − β H ) , f H ( β ) : = ln Z H ( β ) , ρ β H : = e − β H Z H ( β ) . Z_H(\beta) := \operatorname{Tr}(e^{-\beta H}), \qquad f_H(\beta) := \ln Z_H(\beta), \qquad\rho^H_\beta:= \frac{e^{-\beta H}}{Z_H(\beta)}. Z H ( β ) := Tr ( e − β H ) , f H ( β ) := ln Z H ( β ) , ρ β H := Z H ( β ) e − β H .
We omit the subscript or superscript H H H when the Hamiltonian is clear from context. Our goal is to solve the following estimation problem.
Definition 2.1 (Partition-function estimation). Given a Hamiltonian H H H , a finite inverse temperature β ≥ 0 \beta\ge0 β ≥ 0 , a desired precision 0 < ϵ ≤ 1 0 < \epsilon\le1 0 < ϵ ≤ 1 , and a failure probability 0 < p < 1 0 < p < 1 0 < p < 1 , output an estimate f ^ ( β ) \widehat{f}(\beta) f ( β ) satisfying
∣ f ^ ( β ) − f ( β ) ∣ ≤ ϵ \left\lvert\widehat{f}(\beta) - f(\beta) \right\rvert\le\epsilon f ( β ) − f ( β ) ≤ ϵ with probability at least 1 − p 1-p 1 − p . Equivalently, Z ^ ( β ) : = e f ^ ( β ) \widehat{Z}(\beta) := e^{\widehat{f}(\beta)} Z ( β ) := e f ( β ) satisfies
e − ϵ Z ( β ) ≤ Z ^ ( β ) ≤ e ϵ Z ( β ) e^{-\epsilon} Z(\beta) \le\widehat{Z}(\beta) \le e^\epsilon Z(\beta) e − ϵ Z ( β ) ≤ Z ( β ) ≤ e ϵ Z ( β ) with the same success probability.
The thermal states used by our algorithms are the canonical thermofield-double (TFD) purifications
∣ ψ θ ⟩ : = 1 Z ( θ ) ∑ a e − θ E a / 2 ∣ a ⟩ ⊗ ∣ a ∗ ⟩ , \lvert\psi_\theta\rangle:= \frac{1}{\sqrt{Z(\theta)}} \sum_a e^{-\theta E_a/2} \lvert a\rangle\otimes\lvert a^*\rangle, ∣ ψ θ ⟩ := Z ( θ ) 1 a ∑ e − θ E a /2 ∣ a ⟩ ⊗ ∣ a ∗ ⟩ ,
where ∣ a ∗ ⟩ \lvert a^*\rangle ∣ a ∗ ⟩ is the complex conjugate of ∣ a ⟩ \lvert a\rangle ∣ a ⟩ in the computational basis. We distinguish two ways of accessing these states.
U θ ∣ 0 ⟩ = ∣ ψ θ ⟩ . U_\theta\lvert0\rangle= \lvert\psi_\theta\rangle. U θ ∣ 0 ⟩ = ∣ ψ θ ⟩ .
The algorithm chooses the temperature classically, while its estimation subroutines use the preparation coherently. The precise resource model is given in Definition 4.1 .
U c o h T F D ∣ θ ⟩ ∣ 0 ⟩ = ∣ θ ⟩ ∣ ψ θ ⟩ . U_{\mathrm{cohTFD}} \lvert\theta\rangle\lvert0\rangle= \lvert\theta\rangle\lvert\psi_\theta\rangle. U cohTFD ∣ θ ⟩ ∣ 0 ⟩ = ∣ θ ⟩ ∣ ψ θ ⟩ .
This model also supplies coherent preparation of the distribution over reconstruction terms and reversible loading of their parameters, together with the inverse operations, as specified in Definition 5.1 .
Both models use an α \alpha α -block encoding U H U_H U H of the Hamiltonian: a unitary whose block on an all-zero ancilla register equals H / α H/\alpha H / α . We take α = Θ ( h ) \alpha= \Theta(h) α = Θ ( h ) and assume the inverse and controlled operations required by the algorithms. Let N T F D N_{\mathrm{TFD}} N TFD , N c o h T F D N_{\mathrm{cohTFD}} N cohTFD , and N B E N_{\mathrm{BE}} N BE count calls to the fixed-temperature preparation, coherent-temperature preparation, and block encoding, respectively, including their required inverse and controlled uses. These are query counts.
Both models reconstruct f ( β ) f(\beta) f ( β ) using a supplied cooling schedule 0 = β 0 < ⋯ < β ℓ = β 0 = \beta_0 < \cdots< \beta_\ell= \beta 0 = β 0 < ⋯ < β ℓ = β , where ℓ \ell ℓ is the number of intervals. We call it C C C -slowly varying if ∣ ⟨ ψ β i ∣ ψ β i + 1 ⟩ ∣ 2 ≥ 1 / C \lvert\langle\psi_{\beta_i}\mid\psi_{\beta_{i+1}}\rangle\rvert^2 \ge1/C ∣⟨ ψ β i ∣ ψ β i + 1 ⟩ ∣ 2 ≥ 1/ C for every interval. Throughout the reconstruction results, C = O ( 1 ) C = O(1) C = O ( 1 ) . Section 6 gives an adaptive construction of such a schedule. The notation O ~ \widetilde{O} O suppresses polylogarithmic factors, with the detailed dependences specified in the formal theorems.
With fixed-temperature access, we choose a temperature classically and call its TFD preparation circuit. Coherent-temperature access prepares the matching TFD state in each branch of a temperature superposition, preserving coherence. Our first algorithm estimates reconstruction terms separately and forms their weighted sum. Our second prepares term labels in superposition, loads their parameters coherently, and estimates the sum directly by quantum mean estimation. For the same supplied schedule, the latter improves our query upper bound by a factor of ℓ \sqrt{\ell} ℓ , up to polylogarithmic factors.
Query complexity and optimality
We now compare the query complexity of reconstruction under the two access models. The following informal statements summarize Theorems 4.3 and 5.4.
Theorem 2.2 (Fixed-temperature reconstruction, informal). Let 0 ⪯ H ⪯ h I 0 \preceq H \preceq hI 0 ⪯ H ⪯ h I , and assume an α \alpha α -block encoding with α = Θ ( h ) \alpha= \Theta(h) α = Θ ( h ) and fixed-temperature coherent access. Given a supplied C C C -slowly-varying schedule of length ℓ \ell ℓ to a finite β > 0 \beta> 0 β > 0 , with C = O ( 1 ) C = O(1) C = O ( 1 ) , Algorithm 2 estimates f ( β ) f(\beta) f ( β ) to additive error ϵ \epsilon ϵ , with failure probability at most p p p , using expected query counts
N T F D , N B E = O ~ ( ℓ ( ℓ + h β ) ln ( 2 / p ) ϵ ) . N_{\mathrm{TFD}}, N_{\mathrm{BE}} = \widetilde{O}\left(\frac{\sqrt{\ell}(\ell+ h\beta)\ln(2/p)}{\epsilon}\right). N TFD , N BE = O ( ϵ ℓ ( ℓ + h β ) ln ( 2/ p ) ) .
Coherent-temperature access allows us to sample reconstruction terms in superposition and estimate their weighted sum directly.
Theorem 2.3 (Coherent-temperature reconstruction, informal). Let 0 ⪯ H ⪯ h I 0 \preceq H \preceq hI 0 ⪯ H ⪯ h I , and assume an α \alpha α -block encoding with α = Θ ( h ) \alpha= \Theta(h) α = Θ ( h ) and the coherent-temperature access of Definition 5.1. Given a supplied C C C -slowly-varying schedule of length ℓ \ell ℓ to a finite β > 0 \beta> 0 β > 0 , with C = O ( 1 ) C = O(1) C = O ( 1 ) , Algorithm 3 estimates f ( β ) f(\beta) f ( β ) to additive error ϵ \epsilon ϵ , with failure probability at most p p p , using expected query counts
N c o h T F D , N B E = O ~ ( ( ℓ + h β ) ln ( 2 / p ) ϵ ) . N_{\mathrm{cohTFD}}, N_{\mathrm{BE}} = \widetilde{O}\left(\frac{(\ell+ h\beta)\ln(2/p)}{\epsilon}\right). N cohTFD , N BE = O ( ϵ ( ℓ + h β ) ln ( 2/ p ) ) .
These asymptotic query bounds also cover schedule generation when the same TFD oracles can also prepare states at the temperatures needed to generate the schedule; see Section 6.
The fixed-temperature reconstruction bound contains an additional factor of ℓ \sqrt{\ell} ℓ from estimating the logarithmic terms separately with coefficient-dependent depths. Coherent branch sampling allows quantum mean estimation to estimate the weighted sum without this factor in the query bound. In the extensive constant-temperature regime h = O ( n ) h = O(n) h = O ( n ) , β = Θ ( 1 ) \beta= \Theta(1) β = Θ ( 1 ) , and ℓ = O ~ ( n ) \ell= \widetilde{O}(\sqrt{n}) ℓ = O ( n ) , the two bounds become
O ~ ( n 5 / 4 ln ( 2 / p ) ϵ ) \widetilde{O}\left(\frac{n^{5/4}\ln(2/p)}{\epsilon}\right) O ( ϵ n 5/4 ln ( 2/ p ) )
and
O ~ ( n ln ( 2 / p ) ϵ ) . \widetilde{O}\left(\frac{n\ln(2/p)}{\epsilon}\right). O ( ϵ n ln ( 2/ p ) ) .
Efficient preparation at each fixed temperature does not automatically give efficient coherent-temperature preparation. Suppose we have m m m separate preparation circuits, one for each temperature. An index register identifies the temperature in each branch. A direct coherent implementation applies all m m m circuits in sequence, with each circuit acting only on the branch for its temperature. The total gate count is the sum of all controlled circuit sizes, plus the cost of the index controls. These controls can be implemented with O ( m ) O(m) O ( m ) additional gates using unary iteration [3 Section III A] . If the preparation circuits have similar sizes, this direct construction uses roughly m m m times as many gates as one fixed-temperature preparation. This overhead can cancel the benefit of fewer queries.
A single preparation circuit with temperature as an input can avoid this overhead by computing its parameters coherently from the temperature input. § 7 gives conditions under which the query improvement carries over to gate-count bounds. Our spin-chain construction achieves this using a common quasi-adiabatic preparation path and temperature-controlled subroutines [5 , 8 ] . In this application, the full gate-count upper bound decreases from O ~ ( n 9 / 4 ln ( 2 / p ) / ϵ ) \widetilde{O}(n^{9/4}\ln(2/p)/\epsilon) O ( n 9/4 ln ( 2/ p ) / ϵ ) for fixed-temperature reconstruction to O ~ ( n 2 ln ( 2 / p ) / ϵ ) \widetilde{O}(n^2\ln(2/p)/\epsilon) O ( n 2 ln ( 2/ p ) / ϵ ) for coherent-temperature reconstruction. These bounds include auxiliary operations, so the coherent method retains an n 1 / 4 n^{1/4} n 1/4 improvement in the gate-count upper bounds, up to polylogarithmic factors. Proposition 8.1 gives the coherent TFD resource bounds, and Corollary 8.2 gives the resulting reconstruction costs. The construction and auxiliary-cost analysis are provided in Appendix § 19 .
The following informal lower-bound statement summarizes Theorem A.3 .
Theorem 2.4 (Hidden energy-offset lower bound, informal). In the hidden-offset oracle model of Theorem A.3 , there are Hamiltonians H c = A + c I H_c=A+cI H c = A + c I satisfying 0 ⪯ H c ⪯ h I 0\preceq H_c\preceq hI 0 ⪯ H c ⪯ h I , with A A A fixed and known, for which estimating ln Z H c ( β ) \ln Z_{H_c}(\beta) ln Z H c ( β ) to additive error ϵ \epsilon ϵ with success probability at least 2 / 3 2/3 2/3 requires
Ω ( α β ϵ ) \Omega\left(\frac{\alpha\beta}{\epsilon}\right) Ω ( ϵ α β ) block-encoding queries in the worst case, including for algorithms with variable stopping time, where the cost is measured in expectation. Here 0 < ϵ ≤ β min { h , α } / 16 0<\epsilon\le\beta\min\{h,\alpha\}/16 0 < ϵ ≤ β min { h , α } /16 , and the α \alpha α -block encoding is the only oracle that depends on the unknown offset c c c . TFD preparation may be supplied for free, provided its full unitary implementation and all other auxiliary operations are independent of c c c .
For α = Θ ( h ) \alpha=\Theta(h) α = Θ ( h ) , h β ≥ 1 h\beta\ge1 h β ≥ 1 , ℓ = O ( 1 + h β ) \ell=O(1+h\beta) ℓ = O ( 1 + h β ) , fixed p ≤ 1 / 3 p\le1/3 p ≤ 1/3 , and the accuracy range above, the coherent reconstruction therefore matches the lower bound up to polylogarithmic factors; see Corollary 5.5 . In particular, extensive normalization h = Θ ( n ) h=\Theta(n) h = Θ ( n ) and constant β \beta β give a matching Θ ~ ( n / ϵ ) \widetilde{\Theta}(n/\epsilon) Θ ( n / ϵ ) block-encoding query bound.
Classical and quantum product estimators usually assume energy values and Gibbs-sampling or reflection access for classical configurations. Our algorithms use TFD preparation and a block encoding of a quantum Hamiltonian. Table 1 in the appendix compares their guarantees and resource units.
Algorithmic idea and reconstruction framework
A cooling schedule expresses the target as a telescopic sum,
f ( β ) = f ( 0 ) + ∑ i = 0 ℓ − 1 ( f ( β i + 1 ) − f ( β i ) ) , f(\beta)=f(0)+\sum_{i=0}^{\ell-1}\left(f(\beta_{i+1})-f(\beta_i)\right), f ( β ) = f ( 0 ) + i = 0 ∑ ℓ − 1 ( f ( β i + 1 ) − f ( β i ) ) ,
where f ( 0 ) = n ln 2 f(0)=n\ln2 f ( 0 ) = n ln 2 is known exactly. For θ , s ≥ 0 \theta,s\ge0 θ , s ≥ 0 , define the overlap probability and reweighting ratio
O ( θ , s ) : = ∣ ⟨ ψ θ ∣ ψ θ + s ⟩ ∣ 2 , R ( θ , s ) : = Tr ( ρ θ e − s H ) , O(\theta,s):=\lvert\langle\psi_\theta\vert\psi_{\theta+s}\rangle\rvert^2,\qquad R(\theta,s):=\operatorname{Tr}(\rho_\theta e^{-sH}), O ( θ , s ) := ∣⟨ ψ θ ∣ ψ θ + s ⟩ ∣ 2 , R ( θ , s ) := Tr ( ρ θ e − sH ) ,
and write
A ( θ , s ) : = − ln O ( θ , s ) , B ( θ , s ) : = ln R ( θ , s ) . A(\theta,s):=-\ln O(\theta,s),\qquad B(\theta,s):=\ln R(\theta,s). A ( θ , s ) := − ln O ( θ , s ) , B ( θ , s ) := ln R ( θ , s ) .
The logarithm of R R R gives an increment of f f f , while the negative logarithm of O O O gives a second finite difference.
The slowly-varying condition controls overlaps but need not keep R R R bounded away from zero over a full schedule interval. The recursive-doubling decomposition starts with a short reweighting step and recovers the full increment using overlap corrections:
f ( β i + 1 ) − f ( β i ) = 2 k i B ( β i , δ i ) + ∑ j = 1 k i 2 k i − j A ( β i , 2 j δ i ) . f(\beta_{i+1})-f(\beta_i)=2^{k_i}B(\beta_i,\delta_i)+\sum_{j=1}^{k_i}2^{k_i-j}A(\beta_i,2^j\delta_i). f ( β i + 1 ) − f ( β i ) = 2 k i B ( β i , δ i ) + j = 1 ∑ k i 2 k i − j A ( β i , 2 j δ i ) .
Here k i ≥ 0 k_i \ge0 k i ≥ 0 is an integer and 2 k i δ i = β i + 1 − β i 2^{k_i}\delta_i = \beta_{i+1} - \beta_i 2 k i δ i = β i + 1 − β i , with h δ i ≤ 1 h\delta_i \le1 h δ i ≤ 1 . The step lengths double at each stage. § 3 proves this identity and shows that all probabilities appearing in it are bounded below by a positive constant. It also implements reweighting by quantum singular value transformation (QSVT) and specifies the known normalization correction.
Taking the logarithm of an amplitude estimate can introduce bias. The fixed-temperature method controls each term’s bias and variance using the nearly unbiased amplitude estimator of Cornelissen and Hamoudi [10 ] , then allocates estimation depths according to the reconstruction coefficients. The coherent-temperature method prepares branches in superposition, with probabilities proportional to their coefficients. In each branch, it performs a fixed number of trials, counts the failures before the first success (or all trials if none succeeds), and converts this count to a harmonic number. The mean of this sample approximates the negative logarithm of the branch success probability. We then construct a random variable X X X whose mean approximates the reconstruction sum f ( β ) − f ( 0 ) f(\beta) - f(0) f ( β ) − f ( 0 ) . Quantum mean estimation [19 ] estimates this mean.
The flowchart summarizes the construction. Its first step generates the schedule; the reconstruction bounds above assume that this schedule is supplied and count its generation separately.
Generate a slowly-varying cooling schedule
Construct a schedule
0 = β 0 < β 1 < ⋯ < β ℓ = β 0=\beta_0<\beta_1<\cdots<\beta_\ell=\beta 0 = β 0 < β 1 < ⋯ < β ℓ = β
such that the overlap between TFD states at consecutive temperatures is bounded below by a constant. This keeps the logarithms of the overlap probabilities well conditioned and decomposes the target quantity as
f ( β ) = f ( 0 ) + ∑ i = 0 ℓ − 1 ( f ( β i + 1 ) − f ( β i ) ) . f(\beta)=f(0)+\sum_{i=0}^{\ell-1}\left(f(\beta_{i+1})-f(\beta_i)\right). f ( β ) = f ( 0 ) + i = 0 ∑ ℓ − 1 ( f ( β i + 1 ) − f ( β i ) ) .
The schedule-generation procedure is given in Algorithm 4.
Recursive-doubling decomposition: express the target as a weighted logarithmic sum
For each schedule interval, choose k i k_i k i and δ i \delta_i δ i such that
2 k i δ i = β i + 1 − β i , h δ i ≤ 1. 2^{k_i}\delta_i=\beta_{i+1}-\beta_i,\qquad h\delta_i\leq1. 2 k i δ i = β i + 1 − β i , h δ i ≤ 1.
The recursive-doubling identity then gives
f ( β ) = f ( 0 ) + ∑ i = 0 ℓ − 1 [ 2 k i B ( β i , δ i ) + ∑ j = 1 k i 2 k i − j A ( β i , 2 j δ i ) ] . (1) f(\beta)=f(0)+\sum_{i=0}^{\ell-1}\left[2^{k_i}B(\beta_i,\delta_i)+\sum_{j=1}^{k_i}2^{k_i-j}A(\beta_i,2^j\delta_i)\right]. \tag*{(1)} f ( β ) = f ( 0 ) + i = 0 ∑ ℓ − 1 [ 2 k i B ( β i , δ i ) + j = 1 ∑ k i 2 k i − j A ( β i , 2 j δ i ) ] . (1)
Thus f ( β ) f(\beta) f ( β ) is reduced to a weighted sum of logarithms of projection probabilities together with the known reweighting correction. The slowly-varying condition bounds all overlap probabilities away from zero, while h δ i ≤ 1 h\delta_i\leq1 h δ i ≤ 1 gives an analogous constant lower bound for the probabilities defining B ( β i , δ i ) B(\beta_i,\delta_i) B ( β i , δ i ) .
Estimate the weighted logarithmic sum
Fixed-temperature coherent access: Algorithm Algorithm 2 treats the branches separately, calling Algorithm 1 to estimate each logarithmic quantity A ( β i , 2 j δ i ) A(\beta_i,2^j\delta_i) A ( β i , 2 j δ i ) or B ( β i , δ i ) B(\beta_i,\delta_i) B ( β i , δ i ) . The reconstruction algorithm chooses the estimation depths according to the coefficients and combines the estimates using Eq. (1) . The total complexity is given in Theorem 2.2 .
Coherent-temperature access: Algorithm 3 prepares the branch index in superposition, with probabilities proportional to the reconstruction coefficients. It uses the selected branch to generate a scaled logarithmic sample whose expectation approximates the full weighted sum in Eq. (1) . The algorithm prepares this sample coherently and applies quantum mean estimation to estimate its expectation. The total complexity is given in Theorem 2.3 .
Output
Since f ( 0 ) = n ln 2 f(0)=n\ln2 f ( 0 ) = n ln 2 is known exactly, output f ^ ( β ) \widehat{f}(\beta) f ( β ) satisfying
∣ f ^ ( β ) − f ( β ) ∣ ≤ ϵ \left|\widehat{f}(\beta)-f(\beta)\right|\leq\epsilon f ( β ) − f ( β ) ≤ ϵ
with probability at least 1 − p 1-p 1 − p . Equivalently, Z ^ ( β ) : = e f ^ ( β ) \widehat{Z}(\beta):=e^{\widehat{f}(\beta)} Z ( β ) := e f ( β ) satisfies
e − ϵ Z ( β ) ≤ Z ^ ( β ) ≤ e ϵ Z ( β ) . e^{-\epsilon}Z(\beta)\leq\widehat{Z}(\beta)\leq e^{\epsilon}Z(\beta). e − ϵ Z ( β ) ≤ Z ( β ) ≤ e ϵ Z ( β ) .
We next state how the schedule can be obtained, then describe two applications of the reconstruction.
Cooling schedules for real-valued spectra
The overlap-based procedure of Arunachalam et al. [2 Theorem 3.4] generates the required schedules. Adapting existing schedule-length analyses [2 ] [26] to real-valued spectra gives the following bounds; see Theorems 6.2 and 6.5 and § 6 .
Theorem 2.5 (Adaptive cooling schedules, informal). Let 0 ⪯ H ⪯ h I 0 \preceq H \preceq hI 0 ⪯ H ⪯ h I , and assume fixed-temperature TFD access at every adaptively queried temperature. For any finite β > 0 \beta> 0 β > 0 , the overlap-based procedure constructs, with probability at least 1 − p 1-p 1 − p , a 15 15 15 -slowly-varying schedule from zero to β \beta β of length
ℓ = O ( 1 + h β ) . \ell= O\left(1+\sqrt{h\beta}\right). ℓ = O ( 1 + h β ) . It uses O ~ ( ℓ ln ( 2 + h β ) ln ( 2 / p ) ) \widetilde{O}\left(\ell\ln(2+h\beta)\ln(2/p)\right) O ( ℓ ln ( 2 + h β ) ln ( 2/ p ) ) TFD queries and no Hamiltonian block-encoding queries. The length guarantee requires no spectral-gap assumption.
For the low-temperature specialization, suppose H H H is nonconstant. Let E 0 E_0 E 0 be its ground energy, N 0 N_0 N 0 its ground degeneracy, H ˉ : = H − E 0 I \bar{H} := H-E_0I H ˉ := H − E 0 I , and E s > 0 E_s>0 E s > 0 the smallest positive eigenvalue of H ˉ \bar{H} H ˉ . If ln N 0 + 2 < n ln 2 \ln N_0+2<n\ln2 ln N 0 + 2 < n ln 2 , define the finite endpoint γ \gamma γ by ln Tr ( e − γ H ˉ ) = ln N 0 + 2 \ln\operatorname{Tr}(e^{-\gamma\bar{H}})=\ln N_0+2 ln Tr ( e − γ H ˉ ) = ln N 0 + 2 . At this endpoint the schedule length also satisfies
ℓ = O ( 1 + n ln ( e ∥ H ˉ ∥ ∞ E s ) ) . \ell= O\left(1+\sqrt{n\ln\left(\frac{e\lVert\bar{H}\rVert_\infty}{E_s}\right)}\right). ℓ = O ( 1 + n ln ( E s e ∥ H ˉ ∥ ∞ ) ) . Here ∥ H ˉ ∥ ∞ \lVert\bar{H}\rVert_\infty ∥ H ˉ ∥ ∞ is the operator norm. If ln N 0 + 2 ≥ n ln 2 \ln N_0+2\ge n\ln2 ln N 0 + 2 ≥ n ln 2 , one interval already gives an e 2 e^2 e 2 -slowly-varying schedule to any finite endpoint.
The first bound gives ℓ = O ( n ) \ell=O(\sqrt{n}) ℓ = O ( n ) when h = O ( n ) h=O(n) h = O ( n ) and β = O ( 1 ) \beta=O(1) β = O ( 1 ) , without any spectral-gap assumption. For low temperatures, Remark 6.3 gives a family with E s = 2 − n E_s=2^{-n} E s = 2 − n and ∥ H ˉ ∥ ∞ = Θ ( 1 ) \lVert\bar{H}\rVert_\infty=\Theta(1) ∥ H ˉ ∥ ∞ = Θ ( 1 ) . At the specified endpoint, every e 2 e^2 e 2 -slowly-varying schedule needs Ω ( n ) \Omega(n) Ω ( n ) intervals, and a schedule with O ( n ) O(n) O ( n ) intervals exists. The low-temperature bound is therefore tight for this family.
The generation algorithm is given the final inverse temperature. The parameters E 0 E_0 E 0 , N 0 N_0 N 0 , E s E_s E s are used only in the length analysis and are not required as inputs. For 0 < ϵ ≤ 1 0<\epsilon\le1 0 < ϵ ≤ 1 , including schedule generation does not change the asymptotic reconstruction query bounds, provided the same TFD oracles can also prepare states at the temperatures needed to generate the schedule.
Applications
A sufficiently large finite inverse temperature suppresses excited states. A gap lower bound and a ground-energy estimate then allow us to recover the ground-state degeneracy as follows.
Corollary 2.6 (Ground-state degeneracy from finite temperature). Let E 0 E_0 E 0 be the ground energy of H H H , let N 0 : = dim ker ( H − E 0 I ) N_0 := \dim\ker(H-E_0I) N 0 := dim ker ( H − E 0 I ) , and suppose that a known Δ l b > 0 \Delta_{\mathrm{lb}}>0 Δ lb > 0 satisfies E − E 0 ≥ Δ l b E-E_0\ge\Delta_{\mathrm{lb}} E − E 0 ≥ Δ lb for every eigenvalue E > E 0 E>E_0 E > E 0 . For 0 < ϵ ≤ 1 0<\epsilon\le1 0 < ϵ ≤ 1 , choose a finite inverse temperature
β ≥ n ln 2 + ln ( 6 / ϵ ) Δ l b . \beta\ge\frac{n\ln2+\ln(6/\epsilon)}{\Delta_{\mathrm{lb}}}. β ≥ Δ lb n ln 2 + ln ( 6/ ϵ ) . If estimates f ^ ( β ) \widehat{f}(\beta) f ( β ) and E ^ 0 \widehat{E}_0 E 0 satisfy
∣ f ^ ( β ) − f ( β ) ∣ ≤ ϵ 6 , ∣ E ^ 0 − E 0 ∣ ≤ ϵ 6 β , \left|\widehat{f}(\beta)-f(\beta)\right|\le\frac{\epsilon}{6},\qquad\left|\widehat{E}_0-E_0\right|\le\frac{\epsilon}{6\beta}, f ( β ) − f ( β ) ≤ 6 ϵ , E 0 − E 0 ≤ 6 β ϵ ,
then
N ^ 0 : = exp ( f ^ ( β ) + β E ^ 0 ) \widehat{N}_0 := \exp\left(\widehat{f}(\beta)+\beta\widehat{E}_0\right) N 0 := exp ( f ( β ) + β E 0 )
satisfies ∣ N ^ 0 − N 0 ∣ ≤ ϵ N 0 \lvert\widehat{N}_0-N_0\rvert\leq\epsilon N_0 ∣ N 0 − N 0 ∣ ≤ ϵ N 0 . If each estimation guarantee fails with probability at most p / 2 p/2 p /2 , the relative-error guarantee holds with probability at least 1 − p 1-p 1 − p .
The proof and resource bounds are given in Appendix § 16 , Theorem F.1 and Corollary F.2. The gap sets the required temperature, which in turn sets the ground-energy precision. The cost of estimating the ground energy is additional to the reconstruction cost.
As a second application, we consider partition-function estimation for one-dimensional spin chains. For one-dimensional systems with uniformly bounded finite-range interactions and open boundaries, canonical TFD preparation has polylogarithmic depth at temperatures in a fixed bounded interval; see [5 Corollary I.1] . Under all implementation and accuracy assumptions of Corollary 8.2 , a supplied short schedule therefore gives expected reconstruction depth O ~ ( n 5 / 4 ln ( 2 / p ) / ϵ ) \widetilde{O}(n^{5/4}\ln(2/p)/\epsilon) O ( n 5/4 ln ( 2/ p ) / ϵ ) for fixed-temperature access, or O ~ ( n ln ( 2 / p ) / ϵ ) \widetilde{O}(n\ln(2/p)/\epsilon) O ( n ln ( 2/ p ) / ϵ ) with an efficient coherent-temperature interface. Proposition 8.1 supplies the coherent-temperature interface for this application.
Our main technical contribution is the reconstruction framework developed in § 3 . It forms the foundation of both algorithms. § 4 and § 5 build on this framework to give the two estimation methods and their query-complexity bounds.
Common Reconstruction Framework
Starting from a given cooling schedule, we express f ( β ) − f ( 0 ) f(\beta)-f(0) f ( β ) − f ( 0 ) as a weighted sum of logarithms of quantum projection probabilities. We identify these probabilities, derive the recursive-doubling identity, and prove that its probabilities are bounded away from zero. This common reconstruction underlies both estimation algorithms in § 4 and § 5 .
The assumption 0 ⪯ H ⪯ h I 0\preceq H\preceq hI 0 ⪯ H ⪯ h I does not require the exact ground energy. Given a known lower bound L ≤ λ min ( H o r i g ) L\leq\lambda_{\min}(H_{\mathrm{orig}}) L ≤ λ m i n ( H orig ) , set H : = H o r i g − L I H:=H_{\mathrm{orig}}-LI H := H orig − L I and choose h > 0 h>0 h > 0 so that H ⪯ h I H\preceq hI H ⪯ h I . The normalized Gibbs and canonical TFD states are unchanged, while
f H o r i g ( β ) = f H ( β ) − β L . f_{H_{\mathrm{orig}}}(\beta)=f_H(\beta)-\beta L. f H orig ( β ) = f H ( β ) − β L .
The shifted Hamiltonian makes e − s H e^{-sH} e − sH a contraction and gives e − h s ≤ Tr ( ρ β e − s H ) ≤ 1 e^{-hs}\leq\operatorname{Tr}(\rho_\beta e^{-sH})\leq1 e − h s ≤ Tr ( ρ β e − sH ) ≤ 1 for s ≥ 0 s\geq0 s ≥ 0 . In particular, h s ≤ 1 hs\leq1 h s ≤ 1 bounds the reweighting ratio below by e − 1 e^{-1} e − 1 . A looser lower bound may increase h h h and hence the resource cost.
TFD states, overlaps, and reweighting ratios
We begin with the purified Gibbs states used throughout the reconstruction.
Definition 3.1 (Thermofield-double state). Let H = ∑ a E a ∣ a ⟩ ⟨ a ∣ H=\sum_a E_a\lvert a\rangle\langle a\rvert H = ∑ a E a ∣ a ⟩ ⟨ a ∣ be the spectral decomposition of H H H . Let H ∗ \mathcal{H}^* H ∗ be the conjugate purifying space and let ∣ a ∗ ⟩ ∈ H ∗ \lvert a^*\rangle\in\mathcal{H}^* ∣ a ∗ ⟩ ∈ H ∗ be the complex conjugate of ∣ a ⟩ \lvert a\rangle ∣ a ⟩ in the computational basis. For inverse temperature β ≥ 0 \beta\geq0 β ≥ 0 , define the thermofield-double state
∣ ψ β ⟩ : = 1 Z ( β ) ∑ a e − β E a / 2 ∣ a ⟩ ⊗ ∣ a ∗ ⟩ . \lvert\psi_\beta\rangle:=\frac{1}{\sqrt{Z(\beta)}}\sum_a e^{-\beta E_a/2}\lvert a\rangle\otimes\lvert a^*\rangle. ∣ ψ β ⟩ := Z ( β ) 1 a ∑ e − β E a /2 ∣ a ⟩ ⊗ ∣ a ∗ ⟩ .
Tracing out the purifying subsystem gives the Gibbs state ρ β \rho_\beta ρ β ; the reduced state on the conjugate subsystem is ρ β ∗ \rho_\beta^* ρ β ∗ .
Both algorithms use TFD-overlap probabilities and reweighting ratios to reconstruct the log-partition function. We define these quantities below.
Definition 3.2 (Overlaps and reweighting ratios). For β , s ≥ 0 \beta, s \ge0 β , s ≥ 0 , define
O ( β , s ) : = ∣ ⟨ ψ β ∣ ψ β + s ⟩ ∣ 2 = Z ( β + s / 2 ) 2 Z ( β ) Z ( β + s ) , R ( β , s ) : = Tr ( ρ β e − s H ) = Z ( β + s ) Z ( β ) , O(\beta, s) := \lvert\langle\psi_\beta\mid\psi_{\beta+s}\rangle\rvert^2 = \frac{Z(\beta+s/2)^2}{Z(\beta)Z(\beta+s)}, \qquad R(\beta, s) := \operatorname{Tr}(\rho_\beta e^{-sH}) = \frac{Z(\beta+s)}{Z(\beta)}, O ( β , s ) := ∣⟨ ψ β ∣ ψ β + s ⟩ ∣ 2 = Z ( β ) Z ( β + s ) Z ( β + s /2 ) 2 , R ( β , s ) := Tr ( ρ β e − sH ) = Z ( β ) Z ( β + s ) , and their logarithms
A ( β , s ) : = − ln O ( β , s ) , B ( β , s ) : = ln R ( β , s ) . A(\beta, s) := -\ln O(\beta, s), \qquad B(\beta, s) := \ln R(\beta, s). A ( β , s ) := − ln O ( β , s ) , B ( β , s ) := ln R ( β , s ) . Equivalently,
A ( β , s ) = f ( β ) + f ( β + s ) − 2 f ( β + s 2 ) , B ( β , s ) = f ( β + s ) − f ( β ) . A(\beta, s) = f(\beta) + f(\beta+s) - 2f\left(\beta+\frac{s}{2}\right), \qquad B(\beta, s) = f(\beta+s) - f(\beta). A ( β , s ) = f ( β ) + f ( β + s ) − 2 f ( β + 2 s ) , B ( β , s ) = f ( β + s ) − f ( β ) . Thus B ( β , s ) B(\beta, s) B ( β , s ) is the increment of f f f over an interval of length s s s , whereas A ( β , s ) A(\beta, s) A ( β , s ) is a centered second finite difference of f f f . Since f f f is convex, A ( β , s ) ≥ 0 A(\beta, s) \ge0 A ( β , s ) ≥ 0 . The corresponding thermodynamic derivatives are recorded in Remark H.1 .
Projection probabilities for the two quantities
The estimation algorithms operate on quantum measurement probabilities. For overlaps, we use the TFD preparations U θ ∣ 0 ⟩ = ∣ ψ θ ⟩ U_\theta\lvert0\rangle= \lvert\psi_\theta\rangle U θ ∣ 0 ⟩ = ∣ ψ θ ⟩ . For reweighting, we use a block encoding of e − s H / 2 e^{-sH/2} e − sH /2 , constructed from the block encoding of H H H by QSVT; see Appendix § 12 , Subsection B.1. The following lemma gives the two success probabilities and explains why the reweighting logarithm requires adding 2.
Lemma 3.3 (Projection probabilities for overlaps and reweighting). Let Q = S ⊗ R Q = S \otimes R Q = S ⊗ R , where S S S is the physical register and R R R is the purifying register.
For the overlap probability O ( β , s ) O(\beta, s) O ( β , s ) , define
∣ ϕ β , s o v ⟩ : = U β † U β + s ∣ 0 ⟩ Q , Π o v : = ∣ 0 ⟩ ⟨ 0 ∣ Q . \lvert\phi^{\mathrm{ov}}_{\beta,s}\rangle:= U_\beta^\dagger U_{\beta+s}\lvert0\rangle_Q, \qquad\Pi^{\mathrm{ov}} := \lvert0\rangle\langle0\rvert_Q. ∣ ϕ β , s ov ⟩ := U β † U β + s ∣ 0 ⟩ Q , Π ov := ∣ 0 ⟩ ⟨ 0 ∣ Q . Then
∥ Π o v ∣ ϕ β , s o v ⟩ ∥ 2 = O ( β , s ) . (2) \left\|\Pi^{\mathrm{ov}}\lvert\phi^{\mathrm{ov}}_{\beta,s}\rangle\right\|^2 = O(\beta, s). \tag*{(2)} Π ov ∣ ϕ β , s ov ⟩ 2 = O ( β , s ) . (2) For the reweighting ratio R ( β , s ) R(\beta, s) R ( β , s ) , let D s D_s D s be a unitary acting on an a a a -qubit ancilla register A A A and the physical register S S S , whose all-zero ancilla block is an operator A ~ s \widetilde{A}_s A s satisfying, for an accuracy parameter ν ≥ 0 \nu\ge0 ν ≥ 0 ,
( ⟨ 0 a ∣ A ⊗ I S ) D s ( ∣ 0 a ⟩ A ⊗ I S ) = A ~ s , ∥ A ~ s − e − 1 e − s H / 2 ∥ ≤ ν . \left(\langle0^a\rvert_A \otimes I_S\right)D_s\left(\lvert0^a\rangle_A \otimes I_S\right) = \widetilde{A}_s, \qquad\left\|\widetilde{A}_s-e^{-1}e^{-sH/2}\right\| \le\nu. ( ⟨ 0 a ∣ A ⊗ I S ) D s ( ∣ 0 a ⟩ A ⊗ I S ) = A s , A s − e − 1 e − sH /2 ≤ ν . Define
∣ ϕ β , s R ⟩ : = ( D s ⊗ I R ) ( ∣ 0 a ⟩ A ∣ ψ β ⟩ S R ) , Π R : = ∣ 0 a ⟩ ⟨ 0 a ∣ A ⊗ I S R . \lvert\phi^R_{\beta,s}\rangle:= (D_s\otimes I_R)(\lvert0^a\rangle_A\lvert\psi_\beta\rangle_{SR}), \qquad\Pi^R := \lvert0^a\rangle\langle0^a\rvert_A \otimes I_{SR}. ∣ ϕ β , s R ⟩ := ( D s ⊗ I R ) (∣ 0 a ⟩ A ∣ ψ β ⟩ S R ) , Π R := ∣ 0 a ⟩ ⟨ 0 a ∣ A ⊗ I S R . The corresponding projection probability is
R ~ ( β , s ) : = ∥ Π R ∣ ϕ β , s R ⟩ ∥ 2 = ⟨ ψ β ∣ ( A ~ s † A ~ s ⊗ I R ) ∣ ψ β ⟩ . (3) \widetilde{R}(\beta, s) := \left\|\Pi^R\lvert\phi^R_{\beta,s}\rangle\right\|^2 = \langle\psi_\beta\rvert(\widetilde{A}_s^\dagger\widetilde{A}_s\otimes I_R)\lvert\psi_\beta\rangle. \tag*{(3)} R ( β , s ) := Π R ∣ ϕ β , s R ⟩ 2 = ⟨ ψ β ∣ ( A s † A s ⊗ I R ) ∣ ψ β ⟩ . (3) In the exact case A ~ s = e − 1 e − s H / 2 \widetilde{A}_s=e^{-1}e^{-sH/2} A s = e − 1 e − sH /2 ,
R ~ ( β , s ) = e − 2 R ( β , s ) . \widetilde{R}(\beta, s)=e^{-2}R(\beta, s). R ( β , s ) = e − 2 R ( β , s ) . More generally, if both A ~ s \widetilde{A}_s A s and e − 1 e − s H / 2 e^{-1}e^{-sH/2} e − 1 e − sH /2 are contractions, then
∣ R ~ ( β , s ) − e − 2 R ( β , s ) ∣ ≤ 2 ν . (4) \left|\widetilde{R}(\beta, s)-e^{-2}R(\beta, s)\right| \le2\nu. \tag*{(4)} R ( β , s ) − e − 2 R ( β , s ) ≤ 2 ν . (4) Proof. For the overlap quantity,
⟨ 0 ∣ Q U β † U β + s ∣ 0 ⟩ Q = ⟨ ψ β ∣ ψ β + s ⟩ , \langle0\rvert_Q U_\beta^\dagger U_{\beta+s}\lvert0\rangle_Q = \langle\psi_\beta\mid\psi_{\beta+s}\rangle, ⟨ 0 ∣ Q U β † U β + s ∣ 0 ⟩ Q = ⟨ ψ β ∣ ψ β + s ⟩ , and squaring the amplitude of the all-zero outcome gives Eq. (2) .
For the second quantity, projecting the dilation ancilla onto ∣ 0 a ⟩ A |0^{a}\rangle_A ∣ 0 a ⟩ A leaves
∣ 0 a ⟩ A ( A ~ s ⊗ I R ) ∣ ψ β ⟩ S R . |0^{a}\rangle_A(\widetilde{A}_s\otimes I_R)|\psi_\beta\rangle_{SR}. ∣ 0 a ⟩ A ( A s ⊗ I R ) ∣ ψ β ⟩ S R .
Taking its squared norm gives Eq. (3) . For the ideal operator,
∥ ( e − 1 e − s H / 2 ⊗ I R ) ∣ ψ β ⟩ ∥ 2 = e − 2 Tr ( ρ β e − s H ) = e − 2 R ( β , s ) . \left\|(e^{-1}e^{-sH/2}\otimes I_R)|\psi_\beta\rangle\right\|^2=e^{-2}\operatorname{Tr}(\rho_\beta e^{-sH})=e^{-2}R(\beta,s). ( e − 1 e − sH /2 ⊗ I R ) ∣ ψ β ⟩ 2 = e − 2 Tr ( ρ β e − sH ) = e − 2 R ( β , s ) .
Finally,
∥ A ~ s † A ~ s − e − 2 e − s H ∥ ≤ 2 ν \left\|\widetilde{A}_s^\dagger\widetilde{A}_s-e^{-2}e^{-sH}\right\|\le2\nu A s † A s − e − 2 e − sH ≤ 2 ν
whenever the two operators are contractions, which implies Eq. (4) . □
Thus reweighting logarithms require the known additive correction 2, with approximation error controlled by Eq. (4) . We next determine which probabilities to estimate and how to combine their logarithms.
Recursive-doubling reconstruction
Consider a cooling schedule 0 = β 0 < β 1 < ⋯ < β ℓ = β 0=\beta_0<\beta_1<\cdots<\beta_\ell=\beta 0 = β 0 < β 1 < ⋯ < β ℓ = β , and write Δ i : = β i + 1 − β i \Delta_i:=\beta_{i+1}-\beta_i Δ i := β i + 1 − β i . Even when O ( β i , Δ i ) ≥ 1 / C O(\beta_i,\Delta_i)\ge1/C O ( β i , Δ i ) ≥ 1/ C , the reweighting ratio R ( β i , Δ i ) R(\beta_i,\Delta_i) R ( β i , Δ i ) need not have a constant lower bound. For example, H = h I H=hI H = h I gives O ( β i , Δ i ) = 1 O(\beta_i,\Delta_i)=1 O ( β i , Δ i ) = 1 but R ( β i , Δ i ) = e − h Δ i R(\beta_i,\Delta_i)=e^{-h\Delta_i} R ( β i , Δ i ) = e − h Δ i . We therefore start with a short reweighting step and recover the full increment by doubling the interval length and adding overlap corrections. For each interval we choose
k i : = max { 0 , ⌈ log 2 ( h Δ i ) ⌉ } , δ i : = Δ i 2 k i . (5) k_i:=\max\{0,\lceil\log_2(h\Delta_i)\rceil\},\qquad\delta_i:=\frac{\Delta_i}{2^{k_i}}. \tag*{(5)} k i := max { 0 , ⌈ log 2 ( h Δ i )⌉} , δ i := 2 k i Δ i . (5)
By construction, 2 k i δ i = Δ i 2^{k_i}\delta_i=\Delta_i 2 k i δ i = Δ i and h δ i ≤ 1 h\delta_i\le1 h δ i ≤ 1 . Since 0 ⪯ H ⪯ h I 0\preceq H\preceq hI 0 ⪯ H ⪯ h I , this gives R ( β i , δ i ) ≥ e − h δ i ≥ e − 1 R(\beta_i,\delta_i)\ge e^{-h\delta_i}\ge e^{-1} R ( β i , δ i ) ≥ e − h δ i ≥ e − 1 .
The following identity expresses each increment f ( β i + 1 ) − f ( β i ) f(\beta_{i+1})-f(\beta_i) f ( β i + 1 ) − f ( β i ) exactly in terms of one B B B -term at the smallest scale δ i \delta_i δ i and a sequence of A A A -terms over intervals of lengths 2 δ i , 4 δ i , … , 2 k i δ i 2\delta_i,4\delta_i,\ldots,2^{k_i}\delta_i 2 δ i , 4 δ i , … , 2 k i δ i . Figure 1 illustrates the successive doubling steps and the corresponding correction terms.
Figure 1. Recursive-doubling reconstruction on the schedule interval [ β i , β i + 1 ] [\beta_i,\beta_{i+1}] [ β i , β i + 1 ] . The base term B ( β i , δ i ) B(\beta_i,\delta_i) B ( β i , δ i ) gives the increment at the finest scale, while each term A ( β i , 2 j δ i ) A(\beta_i,2^j\delta_i) A ( β i , 2 j δ i ) supplies the correction required to double the reconstructed scale from 2 j − 1 δ i 2^{j-1}\delta_i 2 j − 1 δ i to 2 j δ i 2^j\delta_i 2 j δ i . The horizontal spacing is schematic.
Lemma 3.4 (Recursive-doubling reconstruction formula). For the parameters in Eq. (5) ,
f ( β i + 1 ) = f ( β i ) + 2 k i B ( β i , δ i ) + ∑ j = 1 k i 2 k i − j A ( β i , 2 j δ i ) . (6) f(\beta_{i+1})=f(\beta_i)+2^{k_i}B(\beta_i,\delta_i)+\sum_{j=1}^{k_i}2^{k_i-j}A(\beta_i,2^j\delta_i). \tag*{(6)} f ( β i + 1 ) = f ( β i ) + 2 k i B ( β i , δ i ) + j = 1 ∑ k i 2 k i − j A ( β i , 2 j δ i ) . (6)
Consequently,
f ( β ) = f ( 0 ) + ∑ i = 0 ℓ − 1 [ 2 k i B ( β i , δ i ) + ∑ j = 1 k i 2 k i − j A ( β i , 2 j δ i ) ] . (7) f(\beta)=f(0)+\sum_{i=0}^{\ell-1}\left[2^{k_i}B(\beta_i,\delta_i)+\sum_{j=1}^{k_i}2^{k_i-j}A(\beta_i,2^j\delta_i)\right]. \tag*{(7)} f ( β ) = f ( 0 ) + i = 0 ∑ ℓ − 1 [ 2 k i B ( β i , δ i ) + j = 1 ∑ k i 2 k i − j A ( β i , 2 j δ i ) ] . (7)
Proof. Fix i i i . For each r = 1 , … , k i r=1,\ldots,k_i r = 1 , … , k i , the definition of A A A gives
A ( β i , 2 r δ i ) = f ( β i ) + f ( β i + 2 r δ i ) − 2 f ( β i + 2 r − 1 δ i ) , A(\beta_i,2^r\delta_i)=f(\beta_i)+f(\beta_i+2^r\delta_i)-2f(\beta_i+2^{r-1}\delta_i), A ( β i , 2 r δ i ) = f ( β i ) + f ( β i + 2 r δ i ) − 2 f ( β i + 2 r − 1 δ i ) ,
and hence
f ( β i + 2 r δ i ) − f ( β i ) = 2 [ f ( β i + 2 r − 1 δ i ) − f ( β i ) ] + A ( β i , 2 r δ i ) . f(\beta_i+2^r\delta_i)-f(\beta_i)=2[f(\beta_i+2^{r-1}\delta_i)-f(\beta_i)]+A(\beta_i,2^r\delta_i). f ( β i + 2 r δ i ) − f ( β i ) = 2 [ f ( β i + 2 r − 1 δ i ) − f ( β i )] + A ( β i , 2 r δ i ) .
Iterating this identity over r = 1 , … , k i r=1,\ldots,k_i r = 1 , … , k i yields
f ( β i + 2 k i δ i ) − f ( β i ) = 2 k i [ f ( β i + δ i ) − f ( β i ) ] + ∑ j = 1 k i 2 k i − j A ( β i , 2 j δ i ) . f(\beta_i+2^{k_i}\delta_i)-f(\beta_i)=2^{k_i}[f(\beta_i+\delta_i)-f(\beta_i)]+\sum_{j=1}^{k_i}2^{k_i-j}A(\beta_i,2^j\delta_i). f ( β i + 2 k i δ i ) − f ( β i ) = 2 k i [ f ( β i + δ i ) − f ( β i )] + j = 1 ∑ k i 2 k i − j A ( β i , 2 j δ i ) .
Using
f ( β i + δ i ) − f ( β i ) = B ( β i , δ i ) f(\beta_i+\delta_i)-f(\beta_i)=B(\beta_i,\delta_i) f ( β i + δ i ) − f ( β i ) = B ( β i , δ i )
and 2 k i δ i = β i + 1 − β i 2^{k_i}\delta_i=\beta_{i+1}-\beta_i 2 k i δ i = β i + 1 − β i proves Eq. (6) . When k i = 0 k_i=0 k i = 0 , the sum over j j j is empty and equals zero. Summing over the schedule intervals then telescopes to Eq. (7) . □
For later use, define the reconstruction coefficients
a i , 0 : = 2 k i , a i , j : = 2 k i − j , 1 ≤ j ≤ k i . a_{i,0} := 2^{k_i}, \qquad a_{i,j} := 2^{k_i-j}, \qquad1 \le j \le k_i. a i , 0 := 2 k i , a i , j := 2 k i − j , 1 ≤ j ≤ k i .
and the corresponding logarithmic quantities
Y i , 0 : = B ( β i , δ i ) , Y i , j : = A ( β i , 2 j δ i ) , 1 ≤ j ≤ k i . Y_{i,0} := B(\beta_i,\delta_i), \qquad Y_{i,j} := A(\beta_i,2^j\delta_i), \qquad1 \le j \le k_i. Y i , 0 := B ( β i , δ i ) , Y i , j := A ( β i , 2 j δ i ) , 1 ≤ j ≤ k i .
Equation (7) can then be written compactly as
f ( β ) − f ( 0 ) = ∑ i = 0 ℓ − 1 ∑ j = 0 k i a i , j Y i , j . (8) f(\beta)-f(0)=\sum_{i=0}^{\ell-1}\sum_{j=0}^{k_i}a_{i,j}Y_{i,j}. \tag*{(8)} f ( β ) − f ( 0 ) = i = 0 ∑ ℓ − 1 j = 0 ∑ k i a i , j Y i , j . (8)
By Definition 3.2 , the exact logarithmic terms are
Y i , 0 = ln R ( β i , δ i ) , Y i , j = − ln O ( β i , 2 j δ i ) ( j ≥ 1 ) . Y_{i,0}=\ln R(\beta_i,\delta_i), \qquad Y_{i,j}=-\ln O(\beta_i,2^j\delta_i) \quad(j\ge1). Y i , 0 = ln R ( β i , δ i ) , Y i , j = − ln O ( β i , 2 j δ i ) ( j ≥ 1 ) .
We multiply the short-step B B B -term by 2 k i 2^{k_i} 2 k i and add the weighted A A A -terms to obtain f ( β i + 1 ) − f ( β i ) f(\beta_{i+1})-f(\beta_i) f ( β i + 1 ) − f ( β i ) exactly. Remark H.2 explains the roles of these terms in more detail.
Conditioning through a slowly-varying schedule
The logarithms are well conditioned when the probabilities are bounded below by a positive constant. For overlaps, it is enough to require this bound between consecutive schedule temperatures.
Definition 3.5 (Slowly-varying schedule). A schedule 0 = β 0 < β 1 < ⋯ < β ℓ = β 0=\beta_0<\beta_1<\cdots<\beta_\ell=\beta 0 = β 0 < β 1 < ⋯ < β ℓ = β is C C C -slowly varying if
O ( β i , β i + 1 − β i ) ≥ 1 C O(\beta_i,\beta_{i+1}-\beta_i)\ge\frac{1}{C} O ( β i , β i + 1 − β i ) ≥ C 1 for every i i i , where C = O ( 1 ) C=O(1) C = O ( 1 ) .
The recursive-doubling formula uses shorter intervals of the form [ β i , β i + 2 j δ i ] [\beta_i,\beta_i+2^j\delta_i] [ β i , β i + 2 j δ i ] . By convexity of f f f , shortening a schedule interval does not decrease its overlap probability.
Lemma 3.6 (Overlap monotonicity under restriction). If
β 1 ≤ β 2 ≤ β 3 ≤ β 4 , \beta_1 \le\beta_2 \le\beta_3 \le\beta_4, β 1 ≤ β 2 ≤ β 3 ≤ β 4 , then
O ( β 2 , β 3 − β 2 ) ≥ O ( β 1 , β 4 − β 1 ) . O(\beta_2,\beta_3-\beta_2) \ge O(\beta_1,\beta_4-\beta_1). O ( β 2 , β 3 − β 2 ) ≥ O ( β 1 , β 4 − β 1 ) . In particular, every overlap probability used in the recursive-doubling decomposition within a C C C -slowly-varying schedule interval is at least 1 / C 1/C 1/ C .
Proof. For x ≤ y x \le y x ≤ y , define F ( x , y ) : = f ( x ) + f ( y ) − 2 f ( ( x + y ) / 2 ) F(x,y) := f(x) + f(y) - 2f((x+y)/2) F ( x , y ) := f ( x ) + f ( y ) − 2 f (( x + y ) /2 ) . Convexity of f f f gives
∂ x F ( x , y ) = f ′ ( x ) − f ′ ( x + y 2 ) ≤ 0 , \partial_x F(x,y) = f'(x) - f'\left(\frac{x+y}{2}\right) \le0, ∂ x F ( x , y ) = f ′ ( x ) − f ′ ( 2 x + y ) ≤ 0 , ∂ y F ( x , y ) = f ′ ( y ) − f ′ ( x + y 2 ) ≥ 0. \partial_y F(x,y) = f'(y) - f'\left(\frac{x+y}{2}\right) \ge0. ∂ y F ( x , y ) = f ′ ( y ) − f ′ ( 2 x + y ) ≥ 0. Moving the left endpoint to the right or the right endpoint to the left therefore cannot increase F F F , so F ( β 2 , β 3 ) ≤ F ( β 1 , β 4 ) F(\beta_2,\beta_3) \le F(\beta_1,\beta_4) F ( β 2 , β 3 ) ≤ F ( β 1 , β 4 ) . The claim follows from O ( x , y − x ) = e − F ( x , y ) O(x,y-x) = e^{-F(x,y)} O ( x , y − x ) = e − F ( x , y ) .
Combining the slowly-varying condition with the choice of the elementary steps δ i \delta_i δ i gives a uniform lower bound for every probability entering the reconstruction.
Corollary 3.7 (Uniform conditioning of the local probabilities). Suppose that the schedule 0 = β 0 < β 1 < ⋯ < β ℓ = β 0 = \beta_0 < \beta_1 < \cdots< \beta_\ell= \beta 0 = β 0 < β 1 < ⋯ < β ℓ = β is C C C -slowly varying. For every schedule interval 0 ≤ i < ℓ 0 \le i < \ell 0 ≤ i < ℓ , the scaled reweighting probability at the elementary step δ i \delta_i δ i and all overlap probabilities appearing in the recursive-doubling reconstruction satisfy
e − 2 R ( β i , δ i ) ≥ γ 0 , O ( β i , 2 j δ i ) ≥ γ 0 , 1 ≤ j ≤ k i , γ 0 : = min { e − 3 , 1 / C } . (9) e^{-2}R(\beta_i,\delta_i) \ge\gamma_0,\qquad O(\beta_i,2^j\delta_i) \ge\gamma_0,\qquad1 \le j \le k_i,\qquad\gamma_0 := \min\{e^{-3},1/C\}. \tag*{(9)} e − 2 R ( β i , δ i ) ≥ γ 0 , O ( β i , 2 j δ i ) ≥ γ 0 , 1 ≤ j ≤ k i , γ 0 := min { e − 3 , 1/ C } . (9) Thus every ideal circuit probability is at least γ 0 \gamma_0 γ 0 , which is Ω ( 1 ) \Omega(1) Ω ( 1 ) when C = O ( 1 ) C = O(1) C = O ( 1 ) .
Proof. For j ≥ 1 j \ge1 j ≥ 1 , the interval [ β i , β i + 2 j δ i ] [\beta_i,\beta_i + 2^j\delta_i] [ β i , β i + 2 j δ i ] is contained in [ β i , β i + 1 ] [\beta_i,\beta_{i+1}] [ β i , β i + 1 ] . Lemma Lemma 3.6 therefore gives
O ( β i , 2 j δ i ) ≥ 1 C . O(\beta_i,2^j\delta_i) \ge\frac{1}{C}. O ( β i , 2 j δ i ) ≥ C 1 . For j = 0 j = 0 j = 0 , the assumptions 0 ⪯ H ⪯ h I 0 \preceq H \preceq hI 0 ⪯ H ⪯ h I and h δ i ≤ 1 h\delta_i \le1 h δ i ≤ 1 imply
R ( β i , δ i ) = Tr ( ρ β i e − δ i H ) ≥ e − h δ i ≥ e − 1 . R(\beta_i,\delta_i) = \operatorname{Tr}(\rho_{\beta_i}e^{-\delta_i H}) \ge e^{-h\delta_i} \ge e^{-1}. R ( β i , δ i ) = Tr ( ρ β i e − δ i H ) ≥ e − h δ i ≥ e − 1 . Multiplying the reweighting bound by e − 2 e^{-2} e − 2 gives e − 2 R ( β i , δ i ) ≥ e − 3 e^{-2}R(\beta_i,\delta_i) \ge e^{-3} e − 2 R ( β i , δ i ) ≥ e − 3 . Taking the smaller of e − 3 e^{-3} e − 3 and 1 / C 1/C 1/ C proves Eq. (9) .
Thus the deterministic part of the algorithm has reduced partition-function estimation to a weighted sum of logarithms of ideal projection probabilities lying in [ γ 0 , 1 ] [\gamma_0,1] [ γ 0 , 1 ] , together with the known reweighting correction. For C = O ( 1 ) C = O(1) C = O ( 1 ) , this constant lower bound is what makes the logarithmic estimation procedures in § 4 and 5 stable.
Theorem 6.5 gives the schedule-generation procedure, its length guarantees, and its separate query cost. Here the schedule is supplied input.
From the common reconstruction to the two algorithms
The reconstruction uses the coefficients a i , j a_{i,j} a i , j and exact logarithmic terms Y i , j Y_{i,j} Y i , j in Eq. (8) . Once the QSVT implementation in Lemma 3.3 is fixed, define the actual circuit probabilities by
p i , j : = { R ~ ( β i , δ i ) , j = 0 , O ( β i , 2 j δ i ) , 1 ≤ j ≤ k i . (10) p_{i,j}:=\begin{cases}
\widetilde{R}(\beta_i,\delta_i), & j=0,\\
O(\beta_i,2^j\delta_i), & 1\leq j\leq k_i.
\end{cases} \tag*{(10)} p i , j := { R ( β i , δ i ) , O ( β i , 2 j δ i ) , j = 0 , 1 ≤ j ≤ k i . (10)
For j ≥ 1 j\geq1 j ≥ 1 , this is the exact overlap probability. For j = 0 j=0 j = 0 , it approximates e − 2 R ( β i , δ i ) e^{-2R(\beta_i,\delta_i)} e − 2 R ( β i , δ i ) , so ln p i , 0 + 2 \ln p_{i,0}+2 ln p i , 0 + 2 approximates Y i , 0 Y_{i,0} Y i , 0 . Both algorithms include this correction in each reweighting estimate or sample and budget the QSVT error separately.
Section 4 estimates the logarithmic terms separately with coefficient-dependent depths. Section 5 prepares a coherent sample over the same terms and estimates its mean. Both use the reconstruction and conditioning bounds proved here.
Partition-function estimation with fixed-temperature access
In this section, we give the first of two algorithms for estimating the weighted sum in Eq. (8) . We consider fixed-temperature access, where each required inverse temperature is supplied classically to the corresponding state-preparation routine. Under this access model, the logarithmic terms are estimated independently from their corresponding projection probabilities and then combined using the reconstruction coefficients. The estimation accuracy is allocated across the terms according to these coefficients, which reduces the total query cost while controlling the error of the weighted sum. We first define the access model and analyze the estimator for a single logarithmic term, and then present the full reconstruction algorithm and its complexity.
Definition 4.1 (Fixed-temperature oracle access and query complexity). Let U H U_H U H be an α \alpha α -block encoding of H H H , with α = Θ ( h ) \alpha=\Theta(h) α = Θ ( h ) , and assume access to U H † U_H^\dagger U H † and to the controlled versions of U H U_H U H and U H † U_H^\dagger U H † . For each classically specified inverse temperature θ \theta θ , let U θ U_\theta U θ be the fixed-temperature TFD preparation unitary satisfying
U θ ∣ 0 ⟩ = ∣ ψ θ ⟩ , U_\theta\lvert0\rangle=\lvert\psi_\theta\rangle, U θ ∣ 0 ⟩ = ∣ ψ θ ⟩ , where ∣ ψ θ ⟩ \lvert\psi_\theta\rangle ∣ ψ θ ⟩ is the TFD state of Definition 3.1 . We also assume access to U θ † U_\theta^\dagger U θ † .
Define
N T F D : = the total number of fixed-temperature TFD preparation queries, N_{\mathrm{TFD}}:=\text{the total number of fixed-temperature TFD preparation queries,} N TFD := the total number of fixed-temperature TFD preparation queries, N B E : = the total number of Hamiltonian block-encoding queries. N_{\mathrm{BE}}:=\text{the total number of Hamiltonian block-encoding queries.} N BE := the total number of Hamiltonian block-encoding queries. Thus calls to U θ U_\theta U θ and U θ † U_\theta^\dagger U θ † contribute to N T F D N_{\mathrm{TFD}} N TFD , while calls to U H U_H U H , U H † U_H^\dagger U H † , and their controlled versions each contribute one query to N B E N_{\mathrm{BE}} N BE .
The reconstruction takes the cooling schedule as classical input. We count TFD preparation and Hamiltonian block-encoding calls here.
Local logarithmic estimation
To estimate the local logarithmic terms, we use the nondestructive unbiased amplitude-estimation algorithm NdUb-Amplitude(∣ ψ ⟩ , Π , M , η \lvert\psi\rangle,\Pi,M,\eta ∣ ψ ⟩ , Π , M , η ) of Cornelissen and Hamoudi [10 Algorithm 3] , together with its bias, variance, and reflection-cost guarantees from [10 Theorem 2.4] . When applied with depth parameter M M M and accuracy parameter η \eta η , denote the resulting estimate by p ^ M , η \widehat{p}_{M,\eta} p M , η . Its bias is at most η \eta η , and its variance is O ( p / M 2 + η ) O(p/M^2+\eta) O ( p / M 2 + η ) . The full statement is recorded as Theorem B.2 in Appendix § 12 .§ 2 .
By Lemma 3.3 and Eq. (10) , the circuit associated with each reconstruction term ( i , j ) (i,j) ( i , j ) produces the projection probability
p i , j = ∥ Π ∣ ψ ⟩ ∥ 2 . (11) p_{i,j}=\lVert\Pi\lvert\psi\rangle\rVert^2. \tag*{(11)} p i , j = ∥ Π ∣ ψ ⟩ ∥ 2 . (11)
This is the quantity estimated by the amplitude-estimation procedure. For an overlap term j ≥ 1 j \ge1 j ≥ 1 , − ln p i , j = Y i , j -\ln p_{i,j}=Y_{i,j} − ln p i , j = Y i , j exactly. For a reweighting term j = 0 j=0 j = 0 , ln p i , 0 + 2 \ln p_{i,0}+2 ln p i , 0 + 2 approximates the exact quantity Y i , 0 = ln R ( β i , δ i ) Y_{i,0}=\ln R(\beta_i,\delta_i) Y i , 0 = ln R ( β i , δ i ) , with the difference controlled by Lemma B.3. By Eq. (9) and Lemma B.3, every implemented projection probability satisfies
p i , j ≥ γ , γ : = 1 2 min { e − 3 , 1 / C } . p_{i,j} \ge\gamma,\qquad\gamma:= \frac{1}{2}\min\{e^{-3},1/C\}. p i , j ≥ γ , γ := 2 1 min { e − 3 , 1/ C } .
This uniform lower bound ensures that the logarithm can be estimated stably.
Table 1.
The amplitude-estimation procedure used in Algorithm 1 requires reflections about the prepared state ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ and the reflection I − 2 Π I-2\Pi I − 2Π , as stated in Theorem B.2. If ∣ ψ ⟩ = V ∣ 0 ⟩ |\psi\rangle=V|0\rangle ∣ ψ ⟩ = V ∣0 ⟩ , the reflection about ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ can be implemented as
I − 2 ∣ ψ ⟩ ⟨ ψ ∣ = V ( I − 2 ∣ 0 ⟩ ⟨ 0 ∣ ) V † . I-2|\psi\rangle\langle\psi|=V(I-2|0\rangle\langle0|)V^\dagger. I − 2∣ ψ ⟩ ⟨ ψ ∣ = V ( I − 2∣0 ⟩ ⟨ 0∣ ) V † .
For an overlap term, V = U θ † U θ + δ V=U_\theta^\dagger U_{\theta+\delta} V = U θ † U θ + δ , so one such reflection uses four fixed-temperature TFD queries. For a reweighting term, the prepared state is
∣ ψ ⟩ = ( D δ ⊗ I R ) ( ∣ 0 a ⟩ A ⊗ ∣ ψ θ ⟩ S R ) . |\psi\rangle=(D_\delta\otimes I_R)(|0^a\rangle_A\otimes|\psi_\theta\rangle_{SR}). ∣ ψ ⟩ = ( D δ ⊗ I R ) ( ∣ 0 a ⟩ A ⊗ ∣ ψ θ ⟩ S R ) .
Thus, if the preparation unitary is denoted by V V V , then
V = ( D δ ⊗ I R ) ( I A ⊗ U θ ) . V=(D_\delta\otimes I_R)(I_A\otimes U_\theta). V = ( D δ ⊗ I R ) ( I A ⊗ U θ ) .
A reflection about ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ is implemented by applying V † V^\dagger V † , performing the phase flip about the all-zero input state, and applying V V V . Hence one such reflection uses one call each to U θ U_\theta U θ and U θ † U_\theta^\dagger U θ † , and one application each of D δ D_\delta D δ and D δ † D_\delta^\dagger D δ † . It therefore uses two fixed-temperature TFD queries and O ( q ) O(q) O ( q ) Hamiltonian block-encoding queries when D δ D_\delta D δ has QSVT degree q q q .
With the reflection costs established, we next bound the error of Algorithm 1. The following lemma translates the amplitude-estimation guarantees into bias and variance bounds for the logarithmic estimate, and records the corresponding query cost. Theorem 4.3 combines these local bounds to control the error and cost of the full reconstruction.
Lemma 4.2 (Local logarithmic estimation). Fix 0 < γ ≤ 1 0 < \gamma\le1 0 < γ ≤ 1 , an integer M ≥ 5 M \ge5 M ≥ 5 , and η ∈ ( 0 , 1 ) \eta\in(0,1) η ∈ ( 0 , 1 ) . Let ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ and Π \Pi Π be the state and projector constructed in Algorithm 1, and let p : = ∥ Π ∣ ψ ⟩ ∥ 2 ∈ [ γ , 1 ] p := \lVert\Pi|\psi\rangle\rVert^2 \in[\gamma,1] p := ∥ Π∣ ψ ⟩ ∥ 2 ∈ [ γ , 1 ] . Let Y ^ M , η \widehat{Y}_{M,\eta} Y M , η be the output of the algorithm, and let c v : = 91 c_{\mathrm{v}} := 91 c v := 91 be the variance constant in Theorem B.2 . Define
K γ : = 1 γ + ( 4 + 8 ln ( 2 / γ ) ) ( c v + 2 ) γ 2 . (12) K_\gamma:= \frac{1}{\gamma}+\frac{(4+8\ln(2/\gamma))(c_{\mathrm{v}}+2)}{\gamma^2}. \tag*{(12)} K γ := γ 1 + γ 2 ( 4 + 8 ln ( 2/ γ )) ( c v + 2 ) . (12) Set Y = − ln p Y=-\ln p Y = − ln p for an overlap term and Y = ln p + 2 Y=\ln p+2 Y = ln p + 2 for a reweighting term. Then
∣ E [ Y ^ M , η ] − Y ∣ ≤ K γ ( M − 2 + η ) , Var ( Y ^ M , η ) ≤ K γ ( M − 2 + η ) . \left|\mathbb{E}[\widehat{Y}_{M,\eta}]-Y\right|\le K_\gamma\left(M^{-2}+\eta\right),\qquad\operatorname{Var}(\widehat{Y}_{M,\eta})\le K_\gamma\left(M^{-2}+\eta\right). E [ Y M , η ] − Y ≤ K γ ( M − 2 + η ) , Var ( Y M , η ) ≤ K γ ( M − 2 + η ) . In particular, if η ≤ M − 2 \eta\le M^{-2} η ≤ M − 2 , then both quantities are at most 2 K γ / M 2 2K_\gamma/M^2 2 K γ / M 2 .
In Algorithm 2, we choose η = M − 2 \eta=M^{-2} η = M − 2 . Thus the internal accuracy parameter does not dominate the M − 2 M^{-2} M − 2 error from amplitude estimation. Its contribution to the reflection cost is only logarithmic and is absorbed into the O ~ \widetilde{O} O -notation. Moreover, in the regime C = O ( 1 ) C=O(1) C = O ( 1 ) considered in Theorem 4.3 , Eq. (9) and Lemma B.3 allow us to take γ = γ 0 / 2 = Ω ( 1 ) \gamma=\gamma_0/2=\Omega(1) γ = γ 0 /2 = Ω ( 1 ) . Hence K γ = O ( 1 ) K_\gamma=O(1) K γ = O ( 1 ) .
The expected query counts are
overlap: N T F D = O ~ ( M ) , N B E = 0 , reweighting: N T F D = O ~ ( M ) , N B E = O ~ ( M q ) , \begin{aligned}
\text{overlap:}\quad&N_{\mathrm{TFD}}=\widetilde{O}(M),\quad N_{\mathrm{BE}}=0,\\
\text{reweighting:}\quad&N_{\mathrm{TFD}}=\widetilde{O}(M),\quad N_{\mathrm{BE}}=\widetilde{O}(Mq),
\end{aligned} overlap: reweighting: N TFD = O ( M ) , N BE = 0 , N TFD = O ( M ) , N BE = O ( M q ) ,
where q q q is the QSVT degree of D δ D_\delta D δ from Lemma B.1. If α = Θ ( h ) \alpha=\Theta(h) α = Θ ( h ) , h δ ≤ 1 h\delta\le1 h δ ≤ 1 , and the QSVT accuracy is inverse polynomial in the reconstruction parameters, then q = O ~ ( 1 ) q=\widetilde{O}(1) q = O ( 1 ) . Hence the reweighting branch also has N B E = O ~ ( M ) N_{\mathrm{BE}}=\widetilde{O}(M) N BE = O ( M ) .
The clipping argument, the logarithmic bias bound, and the conversion of the reflection count in Theorem B.2 to the oracle counts above are proved in Appendix § 12 .§ 2 .
Variance-sensitive reconstruction
The reconstruction in Eq. (7) is a weighted sum of local logarithms. By Lemma 4.2 , a local estimate with depth M i , j M_{i,j} M i , j has variance O ( M i , j − 2 ) O(M_{i,j}^{-2}) O ( M i , j − 2 ) . After multiplication by its reconstruction coefficient a i , j a_{i,j} a i , j , its contribution to the variance of the final estimator is therefore O ( a i , j 2 / M i , j 2 ) O(a_{i,j}^2/M_{i,j}^2) O ( a i , j 2 / M i , j 2 ) . Since the coefficients a i , j a_{i,j} a i , j vary across the reconstruction, using the same depth for every local term is not query efficient. We instead choose the depths to minimize the total local cost ∑ i , j M i , j \sum_{i,j}M_{i,j} ∑ i , j M i , j subject to the required variance bound on the weighted sum. Solving this constrained optimization with a Lagrange multiplier gives the relative allocation
M i , j ∝ a i , j 2 / 3 . M_{i,j}\propto a_{i,j}^{2/3}. M i , j ∝ a i , j 2/3 .
The common proportionality factor is then chosen so that the total variance is O ( ϵ 2 ) O(\epsilon^2) O ( ϵ 2 ) . The estimation depths are chosen according to Eq. (25) ; the full optimization procedure is given in Appendix § 12 .§ 4 . The resulting reconstruction algorithm is given below.
Algorithm 2 Fixed-temperature partition-function reconstruction
Require: An n n n -qubit Hamiltonian H H H with 0 ⪯ H ⪯ h I 0 \preceq H \preceq hI 0 ⪯ H ⪯ h I and h > 0 h > 0 h > 0 ; an α \alpha α -block encoding of H H H with α = Θ ( h ) \alpha= \Theta(h) α = Θ ( h ) ; a supplied C C C -slowly-varying schedule 0 = β 0 < ⋯ < β ℓ = β 0 = \beta_0 < \cdots< \beta_\ell= \beta 0 = β 0 < ⋯ < β ℓ = β ; the fixed-temperature TFD access of Definition 4.1 ; 0 < ϵ ≤ 1 0 < \epsilon\le1 0 < ϵ ≤ 1 ; and 0 < p < 1 0 < p < 1 0 < p < 1 .
Ensure: An estimate f ^ ( β ) \widehat{f}(\beta) f ( β ) satisfying Pr [ ∣ f ^ ( β ) − f ( β ) ∣ ≤ ϵ ] ≥ 1 − p \Pr[|\widehat{f}(\beta) - f(\beta)| \le\epsilon] \ge1 - p Pr [ ∣ f ( β ) − f ( β ) ∣ ≤ ϵ ] ≥ 1 − p .
Compute Δ i \Delta_i Δ i , k i k_i k i , and δ i \delta_i δ i from (5) for every i = 0 , … , ℓ − 1 i = 0,\ldots,\ell-1 i = 0 , … , ℓ − 1 .
Set γ 0 ← min { e − 3 , 1 / C } \gamma_0 \gets\min\{e^{-3},1/C\} γ 0 ← min { e − 3 , 1/ C } , γ ← γ 0 / 2 \gamma\gets\gamma_0/2 γ ← γ 0 /2 , and ϵ s t a t ← ϵ / 2 \epsilon_{\mathrm{stat}} \gets\epsilon/2 ϵ stat ← ϵ /2 .
Compute
S ← ∑ i = 0 ℓ − 1 ( 2 2 k i / 3 + ∑ j = 1 k i 2 2 ( k i − j ) / 3 ) . S \gets\sum_{i=0}^{\ell-1}\left(2^{2k_i/3}+\sum_{j=1}^{k_i}2^{2(k_i-j)/3}\right). S ← i = 0 ∑ ℓ − 1 ( 2 2 k i /3 + j = 1 ∑ k i 2 2 ( k i − j ) /3 ) . 4.
ν ← γ 0 ϵ 64 ∑ i = 0 ℓ − 1 2 k i . \nu\gets\frac{\gamma_0\epsilon}{64\sum_{i=0}^{\ell-1}2^{k_i}}. ν ← 64 ∑ i = 0 ℓ − 1 2 k i γ 0 ϵ . For each i i i , choose the QSVT dilation used for the reweighting term so that its all-zero block A ~ δ i \widetilde{A}_{\delta_i} A δ i satisfies
∥ A ~ δ i − e − δ i H / 2 ∥ ≤ ν . \left\|\widetilde{A}_{\delta_i}-e^{-\delta_i H/2}\right\|\le\nu. A δ i − e − δ i H /2 ≤ ν . for i = 0 , … , ℓ − 1 i=0,\ldots,\ell-1 i = 0 , … , ℓ − 1 do
Set M i , 0 ← max { 5 , ⌈ 4 K γ S 1 / 2 2 2 k i / 3 ϵ s t a t ⌉ } M_{i,0}\gets\max\left\{5,\left\lceil\frac{4\sqrt{K_\gamma}S^{1/2}2^{2k_i/3}}{\epsilon_{\mathrm{stat}}}\right\rceil\right\} M i , 0 ← max { 5 , ⌈ ϵ stat 4 K γ S 1/2 2 2 k i /3 ⌉ } , η i , 0 ← M i , 0 − 2 \eta_{i,0}\gets M_{i,0}^{-2} η i , 0 ← M i , 0 − 2 .
for j = 1 , … , k i j=1,\ldots,k_i j = 1 , … , k i do
Set M i , j ← max { 5 , ⌈ 4 K γ S 1 / 2 2 2 ( k i − j ) / 3 ϵ s t a t ⌉ } M_{i,j}\gets\max\left\{5,\left\lceil\frac{4\sqrt{K_\gamma}S^{1/2}2^{2(k_i-j)/3}}{\epsilon_{\mathrm{stat}}}\right\rceil\right\} M i , j ← max { 5 , ⌈ ϵ stat 4 K γ S 1/2 2 2 ( k i − j ) /3 ⌉ } , η i , j ← M i , j − 2 \eta_{i,j}\gets M_{i,j}^{-2} η i , j ← M i , j − 2 .
end for
end for
Set
N r e p ← 2 ⌈ 9 ln ( 2 / p ) ⌉ + 1. N_{\mathrm{rep}}\gets2\lceil9\ln(2/p)\rceil+1. N rep ← 2 ⌈ 9 ln ( 2/ p )⌉ + 1. for r = 1 , … , N r e p r=1,\ldots,N_{\mathrm{rep}} r = 1 , … , N rep do
Initialize f ^ ( r ) ( β ) ← n ln 2 \widehat{f}^{(r)}(\beta)\gets n\ln2 f ( r ) ( β ) ← n ln 2 .
for i = 0 , … , ℓ − 1 i=0,\ldots,\ell-1 i = 0 , … , ℓ − 1 do
Using a fresh run, set
B ^ i ( r ) ← LocalLogEst ( reweight , β i , δ i , M i , 0 , γ , η i , 0 ) , \widehat{B}^{(r)}_i\gets\operatorname{LocalLogEst}(\operatorname{reweight},\beta_i,\delta_i,M_{i,0},\gamma,\eta_{i,0}), B i ( r ) ← LocalLogEst ( reweight , β i , δ i , M i , 0 , γ , η i , 0 ) , using the QSVT dilation chosen above.
Update
f ^ ( r ) ( β ) ← f ^ ( r ) ( β ) + 2 k i B ^ i ( r ) . \widehat{f}^{(r)}(\beta)\gets\widehat{f}^{(r)}(\beta)+2^{k_i}\widehat{B}^{(r)}_i. f ( r ) ( β ) ← f ( r ) ( β ) + 2 k i B i ( r ) . for j = 1 , … , k i j=1,\ldots,k_i j = 1 , … , k i do
Using a fresh run, set
A ^ i , j ( r ) ← LocalLogEst ( overlap , β i , 2 j δ i , M i , j , γ , η i , j ) . \widehat{A}^{(r)}_{i,j}\gets\operatorname{LocalLogEst}(\operatorname{overlap},\beta_i,2^j\delta_i,M_{i,j},\gamma,\eta_{i,j}). A i , j ( r ) ← LocalLogEst ( overlap , β i , 2 j δ i , M i , j , γ , η i , j ) . Update
f ^ ( r ) ( β ) ← f ^ ( r ) ( β ) + 2 k i − j A ^ i , j ( r ) . \widehat{f}^{(r)}(\beta)\gets\widehat{f}^{(r)}(\beta)+2^{k_i-j}\widehat{A}^{(r)}_{i,j}. f ( r ) ( β ) ← f ( r ) ( β ) + 2 k i − j A i , j ( r ) . end for
end for
end for
return
median { f ^ ( 1 ) ( β ) , … , f ^ ( N r e p ) ( β ) } . \operatorname{median}\left\{\widehat{f}^{(1)}(\beta),\ldots,\widehat{f}^{(N_{\mathrm{rep}})}(\beta)\right\}. median { f ( 1 ) ( β ) , … , f ( N rep ) ( β ) } .
The bias and variance bounds in Lemma 4.2 , together with the depth allocation in Algorithm 2, control the error of the complete weighted sum. The following theorem gives the reconstruction cost for a supplied slowly-varying schedule and, in particular, for the extensive constant-temperature regime.
Theorem 4.3 (Partition-function estimation with fixed-temperature access). Let H H H be an n n n -qubit Hamiltonian with 0 ⪯ H ⪯ h I 0 \preceq H \preceq hI 0 ⪯ H ⪯ h I for some h > 0 h > 0 h > 0 . Let 0 < ϵ ≤ 1 0 < \epsilon\le1 0 < ϵ ≤ 1 and 0 < p < 1 0 < p < 1 0 < p < 1 . Suppose that a C C C -slowly-varying schedule
0 = β 0 < β 1 < ⋯ < β ℓ = β 0 = \beta_0 < \beta_1 < \cdots< \beta_\ell= \beta 0 = β 0 < β 1 < ⋯ < β ℓ = β is supplied, where C = O ( 1 ) C = O(1) C = O ( 1 ) and 0 < β < ∞ 0 < \beta< \infty 0 < β < ∞ . Assume an α \alpha α -block encoding of H H H with α = Θ ( h ) \alpha= \Theta(h) α = Θ ( h ) and the fixed-temperature TFD access of Definition 4.1 .
Then Algorithm 2 outputs f ^ ( β ) \widehat{f}(\beta) f ( β ) such that
Pr [ ∣ f ^ ( β ) − f ( β ) ∣ ≤ ϵ ] ≥ 1 − p . \Pr\left[\left|\widehat{f}(\beta)-f(\beta)\right|\le\epsilon\right]\ge1-p. Pr [ f ( β ) − f ( β ) ≤ ϵ ] ≥ 1 − p . Its expected reconstruction-stage query counts satisfy
N T F D , N B E = O ~ ( ℓ ( ℓ + h β ) ln ( 2 / p ) ϵ ) . (13) N_{\mathrm{TFD}},N_{\mathrm{BE}}=\widetilde{O}\left(\frac{\sqrt{\ell}(\ell+h\beta)\ln(2/p)}{\epsilon}\right). \tag*{(13)} N TFD , N BE = O ( ϵ ℓ ( ℓ + h β ) ln ( 2/ p ) ) . (13) The hidden factors are polylogarithmic in ℓ \ell ℓ , h β h\beta h β , and 1 / ϵ 1/\epsilon 1/ ϵ , and the constant may depend on C C C .
In particular, if
h = O ( n ) , β = Θ ( 1 ) , ℓ = O ~ ( n ) , (14) h=O(n),\qquad\beta=\Theta(1),\qquad\ell=\widetilde{O}(\sqrt{n}), \tag*{(14)} h = O ( n ) , β = Θ ( 1 ) , ℓ = O ( n ) , (14) then
N T F D , N B E = O ~ ( n 5 / 4 ln ( 2 / p ) ϵ ) . (15) N_{\mathrm{TFD}},N_{\mathrm{BE}}=\widetilde{O}\left(\frac{n^{5/4}\ln(2/p)}{\epsilon}\right). \tag*{(15)} N TFD , N BE = O ( ϵ n 5/4 ln ( 2/ p ) ) . (15) On the same event, the estimate Z ^ ( β ) : = e f ^ ( β ) \widehat{Z}(\beta):=e^{\widehat{f}(\beta)} Z ( β ) := e f ( β ) satisfies
e − ϵ Z ( β ) ≤ Z ^ ( β ) ≤ e ϵ Z ( β ) . e^{-\epsilon}Z(\beta)\le\widehat{Z}(\beta)\le e^\epsilon Z(\beta). e − ϵ Z ( β ) ≤ Z ( β ) ≤ e ϵ Z ( β ) .
Proof of Theorem 4.3. Fix one repetition r r r of Algorithm 2 before the final median. Let f ~ ( β ) \widetilde{f}(\beta) f ( β ) denote the deterministic reconstruction obtained from Eq. (7) by replacing each ln R ( β i , δ i ) \ln R(\beta_i,\delta_i) ln R ( β i , δ i ) with ln p i , 0 + 2 \ln p_{i,0}+2 ln p i , 0 + 2 , where p i , 0 p_{i,0} p i , 0 is the implemented probability from Eq. (10) . The overlap terms are unchanged.
For an overlap term, Eq. (9) gives
p i , j = O ( β i , 2 j δ i ) ≥ γ 0 , j ≥ 1. p_{i,j}=O(\beta_i,2^{j}\delta_i)\ge\gamma_0,\qquad j\ge1. p i , j = O ( β i , 2 j δ i ) ≥ γ 0 , j ≥ 1.
For a reweighting term, Lemma B.3 , together with the choice of ν \nu ν in Algorithm 2, gives
p i , 0 ≥ γ 0 2 . p_{i,0}\ge\frac{\gamma_0}{2}. p i , 0 ≥ 2 γ 0 .
Hence every projection probability estimated by the algorithm is at least γ : = γ 0 / 2 = Ω ( 1 ) \gamma:=\gamma_0/2=\Omega(1) γ := γ 0 /2 = Ω ( 1 ) . Since C = O ( 1 ) C=O(1) C = O ( 1 ) , we also have K γ = O ( 1 ) K_\gamma=O(1) K γ = O ( 1 ) . Moreover, Eq. (23) gives
∣ f ~ ( β ) − f ( β ) ∣ ≤ ϵ 16 . \left|\widetilde{f}(\beta)-f(\beta)\right|\le\frac{\epsilon}{16}. f ( β ) − f ( β ) ≤ 16 ϵ .
The algorithm chooses η i , j = M i , j − 2 \eta_{i,j}=M_{i,j}^{-2} η i , j = M i , j − 2 . Lemma 4.2 therefore gives bias and variance at most 2 K γ / M i , j 2 2K_\gamma/M_{i,j}^{2} 2 K γ / M i , j 2 for every local logarithmic estimate, relative to the corresponding term in f ~ ( β ) \widetilde{f}(\beta) f ( β ) . Since all local calls within one reconstruction are independent, the triangle inequality and additivity of variance give
∣ E [ f ^ ( r ) ( β ) ] − f ~ ( β ) ∣ ≤ 2 K γ ∑ i , j a i , j M i , j 2 , \left|\mathbb{E}[\widehat{f}^{(r)}(\beta)]-\widetilde{f}(\beta)\right|\le2K_\gamma\sum_{i,j}\frac{a_{i,j}}{M_{i,j}^{2}}, E [ f ( r ) ( β )] − f ( β ) ≤ 2 K γ i , j ∑ M i , j 2 a i , j ,
Var ( f ^ ( r ) ( β ) ) ≤ 2 K γ ∑ i , j a i , j 2 M i , j 2 . \operatorname{Var}(\widehat{f}^{(r)}(\beta))\le2K_\gamma\sum_{i,j}\frac{a_{i,j}^{2}}{M_{i,j}^{2}}. Var ( f ( r ) ( β )) ≤ 2 K γ i , j ∑ M i , j 2 a i , j 2 .
Let S = ∑ i , j a i , j 2 / 3 S = \sum_{i,j} a_{i,j}^{2/3} S = ∑ i , j a i , j 2/3 , as in Eq. (24) , and set ϵ s t a t = ϵ / 2 \epsilon_{\mathrm{stat}} = \epsilon/2 ϵ stat = ϵ /2 . The depth choice derived in Appendix § 12 .§ 4 satisfies
M i , j ≥ 4 K T S 1 / 2 a i , j 2 / 3 ϵ s t a t . M_{i,j} \ge\frac{4\sqrt{K_T}S^{1/2}a_{i,j}^{2/3}}{\epsilon_{\mathrm{stat}}}. M i , j ≥ ϵ stat 4 K T S 1/2 a i , j 2/3 .
Substitution into the bias bound gives
∣ E [ f ^ ( r ) ( β ) ] − f ~ ( β ) ∣ ≤ ϵ s t a t 2 8 S ∑ i , j a i , j − 1 / 3 ≤ ϵ s t a t 2 8 ≤ ϵ s t a t 8 , \left|\mathbb{E}[\widehat{f}^{(r)}(\beta)]-\widetilde{f}(\beta)\right| \le\frac{\epsilon_{\mathrm{stat}}^2}{8S}\sum_{i,j}a_{i,j}^{-1/3} \le\frac{\epsilon_{\mathrm{stat}}^2}{8} \le\frac{\epsilon_{\mathrm{stat}}}{8}, E [ f ( r ) ( β )] − f ( β ) ≤ 8 S ϵ stat 2 i , j ∑ a i , j − 1/3 ≤ 8 ϵ stat 2 ≤ 8 ϵ stat ,
where we used a i , j ≥ 1 a_{i,j} \ge1 a i , j ≥ 1 , and hence a i , j − 1 / 3 ≤ a i , j 2 / 3 a_{i,j}^{-1/3} \le a_{i,j}^{2/3} a i , j − 1/3 ≤ a i , j 2/3 . The same depth choice gives
Var ( f ^ ( r ) ( β ) ) ≤ ϵ s t a t 2 8 S ∑ i , j a i , j 2 / 3 = ϵ s t a t 2 8 . \operatorname{Var}(\widehat{f}^{(r)}(\beta)) \le\frac{\epsilon_{\mathrm{stat}}^2}{8S}\sum_{i,j}a_{i,j}^{2/3} = \frac{\epsilon_{\mathrm{stat}}^2}{8}. Var ( f ( r ) ( β )) ≤ 8 S ϵ stat 2 i , j ∑ a i , j 2/3 = 8 ϵ stat 2 .
Chebyshev’s inequality now gives
Pr [ ∣ f ^ ( r ) ( β ) − E [ f ^ ( r ) ( β ) ] ∣ > 7 ϵ s t a t 8 ] ≤ ϵ s t a t 2 / 8 ( 7 ϵ s t a t / 8 ) 2 = 8 49 < 1 3 . \Pr\left[\left|\widehat{f}^{(r)}(\beta)-\mathbb{E}[\widehat{f}^{(r)}(\beta)]\right| > \frac{7\epsilon_{\mathrm{stat}}}{8}\right] \le\frac{\epsilon_{\mathrm{stat}}^2/8}{(7\epsilon_{\mathrm{stat}}/8)^2} = \frac{8}{49} < \frac{1}{3}. Pr [ f ( r ) ( β ) − E [ f ( r ) ( β )] > 8 7 ϵ stat ] ≤ ( 7 ϵ stat /8 ) 2 ϵ stat 2 /8 = 49 8 < 3 1 .
Therefore, with probability greater than 2 / 3 2/3 2/3 ,
∣ f ^ ( r ) ( β ) − f ~ ( β ) ∣ ≤ ϵ s t a t . \left|\widehat{f}^{(r)}(\beta)-\widetilde{f}(\beta)\right| \le\epsilon_{\mathrm{stat}}. f ( r ) ( β ) − f ( β ) ≤ ϵ stat .
Combining this event with Eq. (23) and using the triangle inequality gives
∣ f ^ ( r ) ( β ) − f ( β ) ∣ ≤ ϵ s t a t + ϵ 16 = ϵ 2 + ϵ 16 < ϵ . \left|\widehat{f}^{(r)}(\beta)-f(\beta)\right| \le\epsilon_{\mathrm{stat}}+\frac{\epsilon}{16} = \frac{\epsilon}{2}+\frac{\epsilon}{16}<\epsilon. f ( r ) ( β ) − f ( β ) ≤ ϵ stat + 16 ϵ = 2 ϵ + 16 ϵ < ϵ .
Thus one reconstruction succeeds with probability greater than 2 / 3 2/3 2/3 .
We next bound the query cost of one reconstruction. The rounding analysis in Appendix § 12 .§ 4 gives
∑ i , j M i , j = O ( S 3 / 2 ϵ ) . \sum_{i,j} M_{i,j} = O\left(\frac{S^{3/2}}{\epsilon}\right). i , j ∑ M i , j = O ( ϵ S 3/2 ) .
It remains to express S S S in terms of the supplied schedule. For each interval i i i , the definition of the coefficients a i , j a_{i,j} a i , j gives
∑ j = 0 k i a i , j 2 / 3 = 2 2 k i / 3 + ∑ j = 1 k i 2 2 ( k i − j ) / 3 = O ( 2 2 k i / 3 ) = O ( max { 1 , h Δ i } 2 / 3 ) , \sum_{j=0}^{k_i}a_{i,j}^{2/3}=2^{2k_i/3}+\sum_{j=1}^{k_i}2^{2(k_i-j)/3}=O(2^{2k_i/3})=O\left(\max\{1,h\Delta_i\}^{2/3}\right), j = 0 ∑ k i a i , j 2/3 = 2 2 k i /3 + j = 1 ∑ k i 2 2 ( k i − j ) /3 = O ( 2 2 k i /3 ) = O ( max { 1 , h Δ i } 2/3 ) ,
where the middle bound is a geometric sum and the last bound follows from the definition of k i k_i k i . Hence Hölder’s inequality gives
S 3 / 2 = O ( [ ∑ i max { 1 , h Δ i } 2 / 3 ] 3 / 2 ) ≤ O ( ℓ ∑ i max { 1 , h Δ i } ) . S^{3/2}=O\left(\left[\sum_i\max\{1,h\Delta_i\}^{2/3}\right]^{3/2}\right)\le O\left(\sqrt{\ell}\sum_i\max\{1,h\Delta_i\}\right). S 3/2 = O [ i ∑ max { 1 , h Δ i } 2/3 ] 3/2 ≤ O ( ℓ i ∑ max { 1 , h Δ i } ) .
Since max { 1 , x } ≤ 1 + x \max\{1,x\}\le1+x max { 1 , x } ≤ 1 + x for x ≥ 0 x\ge0 x ≥ 0 and ∑ i Δ i = β \sum_i\Delta_i=\beta ∑ i Δ i = β ,
S 3 / 2 = O ( ℓ ( ℓ + h β ) ) . S^{3/2}=O\left(\sqrt{\ell}(\ell+h\beta)\right). S 3/2 = O ( ℓ ( ℓ + h β ) ) .
Lemma 4.2 gives O ~ ( M i , j ) \widetilde{O}(M_{i,j}) O ( M i , j ) fixed-temperature TFD calls for each local term. Overlap terms use no block-encoding queries, while reweighting terms use O ~ ( M i , 0 ) \widetilde{O}(M_{i,0}) O ( M i , 0 ) block-encoding queries. Therefore, one repetition uses
O ~ ( ℓ ( ℓ + h β ) ϵ ) \widetilde{O}\left(\frac{\sqrt{\ell}(\ell+h\beta)}{\epsilon}\right) O ( ϵ ℓ ( ℓ + h β ) )
TFD queries and the same asymptotic number of block-encoding queries.
It remains to amplify the success probability. Each independent repetition fails with probability at most 1 / 3 1/3 1/3 . If more than half of the repetitions succeed, then their median also has error at most ϵ \epsilon ϵ . Therefore, the median can fail only if at least half of the N r e p N_{\mathrm{rep}} N rep repetitions fail. Hoeffding’s inequality gives
Pr [ median fails ] ≤ exp [ − 2 N r e p ( 1 2 − 1 3 ) 2 ] = e − N r e p / 18 . \Pr[\text{median fails}] \le\exp\left[-2N_{\mathrm{rep}}\left(\frac{1}{2}-\frac{1}{3}\right)^2\right] = e^{-N_{\mathrm{rep}}/18}. Pr [ median fails ] ≤ exp [ − 2 N rep ( 2 1 − 3 1 ) 2 ] = e − N rep /18 .
For the choice
N r e p = 2 ⌈ 9 ln ( 2 / p ) ⌉ + 1 N_{\mathrm{rep}} = 2\left\lceil9\ln(2/p)\right\rceil+ 1 N rep = 2 ⌈ 9 ln ( 2/ p ) ⌉ + 1
in Algorithm 2, we have N r e p ≥ 18 ln ( 2 / p ) N_{\mathrm{rep}} \ge18\ln(2/p) N rep ≥ 18 ln ( 2/ p ) , and hence
e − N r e p / 18 ≤ p 2 < p . e^{-N_{\mathrm{rep}}/18} \le\frac{p}{2} < p. e − N rep /18 ≤ 2 p < p .
Multiplying the query cost of one repetition by N r e p = O ( ln ( 2 / p ) ) N_{\mathrm{rep}}=O(\ln(2/p)) N rep = O ( ln ( 2/ p )) proves Eq. (13) .
Finally, under Eq. (14) , ℓ = O ~ ( n 1 / 4 ) \sqrt{\ell}=\widetilde{O}(n^{1/4}) ℓ = O ( n 1/4 ) and ℓ + h β = O ~ ( n ) \ell+h\beta=\widetilde{O}(n) ℓ + h β = O ( n ) . This proves Eq. (15) . On the event ∣ f ^ ( β ) − f ( β ) ∣ ≤ ϵ |\widehat{f}(\beta)-f(\beta)|\le\epsilon ∣ f ( β ) − f ( β ) ∣ ≤ ϵ , exponentiation gives
e − ϵ Z ( β ) ≤ Z ^ ( β ) ≤ e ϵ Z ( β ) . e^{-\epsilon}Z(\beta)\le\widehat{Z}(\beta)\le e^{\epsilon}Z(\beta). e − ϵ Z ( β ) ≤ Z ( β ) ≤ e ϵ Z ( β ) .
Partition-function estimation with coherent-temperature access
In this section the exact reconstruction formula (7) is unchanged. The difference from the fixed-temperature method is how the local logarithmic terms are combined. Instead of estimating every local term separately and then forming their weighted sum, we introduce a distribution over the terms with probabilities proportional to their reconstruction coefficients a i , j a_{i,j} a i , j . This rewrites the same reconstruction as an expectation and allows us to apply quantum mean estimation directly to the weighted sum.
Coherent branch construction
Using the parameters in Eq. (5) and the reconstruction coefficients a i , j a_{i,j} a i , j , define
R : = { ( i , j ) : 0 ≤ i < ℓ , 0 ≤ j ≤ k i } , L : = ∑ ( i , j ) ∈ R a i , j , π i , j : = a i , j L . (16) \mathcal{R}:=\{(i,j):0\le i<\ell,\ 0\le j\le k_i\},\qquad L:=\sum_{(i,j)\in\mathcal{R}}a_{i,j},\qquad\pi_{i,j}:=\frac{a_{i,j}}{L}. \tag*{(16)} R := {( i , j ) : 0 ≤ i < ℓ , 0 ≤ j ≤ k i } , L := ( i , j ) ∈ R ∑ a i , j , π i , j := L a i , j . (16)
Then Eq. (8) becomes
f ( β ) − f ( 0 ) = ∑ ( i , j ) ∈ R a i , j Y i , j = L E ( I , J ) ∼ π [ Y I , J ] . (17) f(\beta)-f(0)=\sum_{(i,j)\in\mathcal{R}}a_{i,j}Y_{i,j}=L\mathbb{E}_{(I,J)\sim\pi}[Y_{I,J}]. \tag*{(17)} f ( β ) − f ( 0 ) = ( i , j ) ∈ R ∑ a i , j Y i , j = L E ( I , J ) ∼ π [ Y I , J ] . (17)
The identity above expresses the reconstruction as the mean of the exact local logarithmic terms Y I , J Y_{I,J} Y I , J under the distribution π \pi π . The coherent algorithm does not evaluate Y i , j Y_{i,j} Y i , j directly. Instead, it constructs a branch-dependent random variable whose expectation approximates Y i , j Y_{i,j} Y i , j , with the normalization correction included on each reweighting branch. Quantum mean estimation is then applied to the weighted sample.
Definition 5.1 (Coherent-temperature access model). For the supplied schedule and the branch distribution in Eq. (16) , assume access to the following unitaries and their adjoints.
A parameter-controlled TFD preparation unitary U c o h T F D U_{\mathrm{cohTFD}} U cohTFD satisfying
U c o h T F D ∣ θ ⟩ ∣ 0 ⟩ Q = ∣ θ ⟩ ∣ ψ θ ⟩ Q U_{\mathrm{cohTFD} }|\theta\rangle|0\rangle_{Q}=|\theta\rangle|\psi_{\theta}\rangle_{Q} U cohTFD ∣ θ ⟩ ∣0 ⟩ Q = ∣ θ ⟩ ∣ ψ θ ⟩ Q for every inverse temperature θ \theta θ used in the reconstruction. The same unitary acts coherently when the inverse-temperature register is in superposition. Define
N c o h T F D : = the total number of calls to U c o h T F D and U c o h T F D † . N_{\mathrm{cohTFD}}:=\text{the total number of calls to }U_{\mathrm{cohTFD}}\text{ and }U_{\mathrm{cohTFD}}^{\dagger}. N cohTFD := the total number of calls to U cohTFD and U cohTFD † . Each forward or adjoint call counts as one query.
A branch-preparation unitary U π U_{\pi} U π and a reversible parameter-loading unitary U l o a d U_{\mathrm{load}} U load satisfying
U π ∣ 0 ⟩ = ∑ ( i , j ) ∈ R π i , j ∣ i , j ⟩ , U l o a d ∣ i , j ⟩ ∣ 0 ⟩ = ∣ i , j ⟩ ∣ par i , j ⟩ . U_{\pi}|0\rangle=\sum_{(i,j)\in\mathcal{R}}\sqrt{\pi_{i,j}}|i,j\rangle,\qquad U_{\mathrm{load}}|i,j\rangle|0\rangle=|i,j\rangle|\operatorname{par}_{i,j}\rangle. U π ∣0 ⟩ = ( i , j ) ∈ R ∑ π i , j ∣ i , j ⟩ , U load ∣ i , j ⟩ ∣0 ⟩ = ∣ i , j ⟩ ∣ par i , j ⟩ . where par i , j \operatorname{par}_{i,j} par i , j contains the inverse-temperature parameters required by the branch construction. The coherent preparation and loading of these registers are described in Appendix § 13 , Subsection C.1.
The Hamiltonian block-encoding access, including adjoints and controlled versions, from Definition 4.1 . The corresponding query count N B E N_{\mathrm{BE}} N BE is defined as in that definition.
The two branch types implement the overlap and reweighting tests associated with Y i , j Y_{i,j} Y i , j in Eq. (17) . For j ≥ 1 j\geq1 j ≥ 1 , coherently prepare the TFD state at β i + 2 j δ i \beta_i+2^j\delta_i β i + 2 j δ i , apply the inverse TFD preparation at β i \beta_i β i , and test the all-zero TFD registers. The resulting projection weight is O ( β i , 2 j δ i ) O(\beta_i,2^j\delta_i) O ( β i , 2 j δ i ) . For j = 0 j=0 j = 0 , coherently prepare the TFD state at β i \beta_i β i , apply the branch-controlled QSVT unitary D δ i D_{\delta_i} D δ i , and test the all-zero QSVT ancilla register. In the ideal case, the resulting weight is e − 2 Tr ( ρ β i e − δ i H ) e^{-2\operatorname{Tr}(\rho_{\beta_i}e^{-\delta_i H})} e − 2 Tr ( ρ β i e − δ i H ) ; the QSVT approximation error is handled separately.
The register-level implementations of the two branch types, together with their coherent-TFD and block-encoding query counts, are given in Appendix § 13 , Subsection C.2.
Coherent logarithmic sampling
Equation (17) reduces the reconstruction to the mean of the exact local logarithmic terms Y I , J Y_{I,J} Y I , J under π \pi π . The coherent circuit does not evaluate Y i , j Y_{i,j} Y i , j directly. Instead, for each branch ( i , j ) (i,j) ( i , j ) , it produces the corresponding overlap or reweighting probability. The main technical step is therefore to convert this probability into a random variable whose expectation approximates the required logarithm.
By Lemma 3.3 and Eq. (10) , the circuit associated with each branch ( i , j ) (i,j) ( i , j ) produces the projection probability p i , j p_{i,j} p i , j . The coherent logarithmic construction below requires repeated Bernoulli trials with this probability while keeping the branch registers I , J I,J I , J coherent. We therefore combine the overlap and reweighting circuits into a single branch-controlled unitary U b r a n c h U_{\mathrm{branch}} U branch . The explicit register-level construction of U b r a n c h U_{\mathrm{branch}} U branch is given in Appendix § 13 , Subsection C.2. Conditioned on a branch ( i , j ) ∈ R (i,j)\in\mathcal{R} ( i , j ) ∈ R , it acts as
U b r a n c h ∣ i , j ⟩ I J ∣ par i , j ⟩ P ∣ 0 ⟩ Q ∣ 0 a ⟩ A ∣ 0 ⟩ F = ∣ i , j ⟩ I J ∣ par i , j ⟩ P ( p i , j ∣ ϕ i , j 1 ⟩ Q A ∣ 1 ⟩ F + 1 − p i , j ∣ ϕ i , j 0 ⟩ Q A ∣ 0 ⟩ F ) , \begin{aligned}
U_{\mathrm{branch}}|i,j\rangle_{IJ}|\operatorname{par}_{i,j}\rangle_{P}|0\rangle_{Q}|0^{a}\rangle_{A}|0\rangle_{F}
={}&|i,j\rangle_{IJ}|\operatorname{par}_{i,j}\rangle_{P}\bigl(\sqrt{p_{i,j}}|\phi^{1}_{i,j}\rangle_{QA}|1\rangle_{F}\\
&+\sqrt{1-p_{i,j}}|\phi^{0}_{i,j}\rangle_{QA}|0\rangle_{F}\bigr),
\end{aligned} U branch ∣ i , j ⟩ I J ∣ par i , j ⟩ P ∣0 ⟩ Q ∣ 0 a ⟩ A ∣0 ⟩ F = ∣ i , j ⟩ I J ∣ par i , j ⟩ P ( p i , j ∣ ϕ i , j 1 ⟩ Q A ∣1 ⟩ F + 1 − p i , j ∣ ϕ i , j 0 ⟩ Q A ∣0 ⟩ F ) ,
where ∣ ϕ i , j 1 ⟩ Q A |\phi^{1}_{i,j}\rangle_{QA} ∣ ϕ i , j 1 ⟩ Q A and ∣ ϕ i , j 0 ⟩ Q A |\phi^{0}_{i,j}\rangle_{QA} ∣ ϕ i , j 0 ⟩ Q A are normalized states on Q ⊗ A Q\otimes A Q ⊗ A . Their explicit form will not be needed. Hence Pr ( F = 1 ∣ i , j ) = p i , j \Pr(F=1\mid i,j)=p_{i,j} Pr ( F = 1 ∣ i , j ) = p i , j , while the branch and parameter registers are unchanged. One application of U b r a n c h U_{\mathrm{branch}} U branch uses at most two calls to U c o h T F D U_{\mathrm{cohTFD}} U cohTFD or its adjoint, no fixed-temperature TFD call, and O ~ ( 1 ) \widetilde{O}(1) O ( 1 ) block-encoding queries.
For the overlap branches, Eq. (9) gives p i , j ≥ γ 0 p_{i,j} \ge\gamma_0 p i , j ≥ γ 0 . For the reweighting branches, Lemma B.3 gives p i , 0 ≥ γ 0 / 2 p_{i,0} \ge\gamma_0/2 p i , 0 ≥ γ 0 /2 whenever 2 ν ≤ γ 0 / 2 2\nu\le\gamma_0/2 2 ν ≤ γ 0 /2 . The choice of ν \nu ν in Algorithm 3 satisfies this condition. Hence every branch probability obeys
p i , j ≥ γ : = γ 0 / 2 = Ω ( 1 ) . p_{i,j} \ge\gamma:= \gamma_0/2 = \Omega(1). p i , j ≥ γ := γ 0 /2 = Ω ( 1 ) .
Fix a branch and denote its success probability by μ ∈ [ γ , 1 ] \mu\in[\gamma,1] μ ∈ [ γ , 1 ] . We use the expansion
− ln μ = ∑ m = 1 ∞ ( 1 − μ ) m m . -\ln\mu= \sum_{m=1}^{\infty} \frac{(1-\mu)^m}{m}. − ln μ = m = 1 ∑ ∞ m ( 1 − μ ) m .
This suggests estimating the logarithm from repeated coherent trials with success probability μ \mu μ . The following lemma shows that a truncated harmonic sample constructed from these trials approximates − ln μ -\ln\mu − ln μ while keeping its second moment controlled.
Lemma 5.2 (Coherent logarithmic sampling). Fix a branch of U b r a n c h U_{\mathrm{branch}} U branch with success probability μ ∈ [ γ , 1 ] \mu\in[\gamma,1] μ ∈ [ γ , 1 ] , and let M ≥ 1 M \ge1 M ≥ 1 . Apply U b r a n c h U_{\mathrm{branch}} U branch M M M times to fresh workspace and flag registers, without measurement, and let b 1 , … , b M ∈ { 0 , 1 } b_1,\ldots,b_M \in\{0,1\} b 1 , … , b M ∈ { 0 , 1 } denote the corresponding success flags. Let G M G_M G M be the number of initial failures before the first success, truncated at M M M . Define
H G M : = ∑ m = 1 G M 1 m = ∑ m = 1 M 1 m ∏ t = 1 m ( 1 − b t ) , H 0 : = 0. H_{G_M}:=\sum_{m=1}^{G_M}\frac{1}{m}=\sum_{m=1}^{M}\frac{1}{m}\prod_{t=1}^{m}(1-b_t),\qquad H_0:=0. H G M := m = 1 ∑ G M m 1 = m = 1 ∑ M m 1 t = 1 ∏ m ( 1 − b t ) , H 0 := 0. Then
E [ H G M ] = ∑ m = 1 M ( 1 − μ ) m m , \mathbb{E}[H_{G_M}]=\sum_{m=1}^{M}\frac{(1-\mu)^m}{m}, E [ H G M ] = m = 1 ∑ M m ( 1 − μ ) m , 0 ≤ − ln μ − E [ H G M ] ≤ e − γ ( M + 1 ) γ ( M + 1 ) , 0\le-\ln\mu-\mathbb{E}[H_{G_M}]\le\frac{e^{-\gamma(M+1)}}{\gamma(M+1)}, 0 ≤ − ln μ − E [ H G M ] ≤ γ ( M + 1 ) e − γ ( M + 1 ) , E [ H G M 2 ] ≤ H M ln ( 1 / γ ) , \mathbb{E}[H_{G_M}^{2}]\le H_M\ln(1/\gamma), E [ H G M 2 ] ≤ H M ln ( 1/ γ ) , where H M = ∑ m = 1 M 1 / m H_M=\sum_{m=1}^{M}1/m H M = ∑ m = 1 M 1/ m is the M M M -*th harmonic number. Moreover, H G M H_{G_M} H G M can be computed reversibly from the M M M unmeasured flags. Its preparation uses M M M applications of U b r a n c h U_{\mathrm{branch}} U branch , and its uncomputation uses M M M applications of U b r a n c h † U_{\mathrm{branch}}^\dagger U branch † .
Increasing M M M reduces the bias in the estimate of − ln μ -\ln\mu − ln μ , while the second-moment bound controls the cost of mean estimation. We also need to include the error from computing the sample with finite precision. The proof of Lemma 5.2 and the reversible computation of H G M H_{G_M} H G M are given in Appendix § 13 , Subsection C.3.
The reversible arithmetic uses a fixed-point approximation H ~ G M \widetilde{H}_{G_M} H G M satisfying ∣ H ~ G M − H G M ∣ ≤ ζ |\widetilde{H}_{G_M}-H_{G_M}|\le\zeta ∣ H G M − H G M ∣ ≤ ζ . Hence
∣ E [ H ~ G M ] + ln μ ∣ ≤ e − γ ( M + 1 ) γ ( M + 1 ) + ζ , \left|\mathbb{E}[\widetilde{H}_{G_M}]+\ln\mu\right|\le\frac{e^{-\gamma(M+1)}}{\gamma(M+1)}+\zeta, E [ H G M ] + ln μ ≤ γ ( M + 1 ) e − γ ( M + 1 ) + ζ ,
E [ H ~ G M 2 ] ≤ 2 H M ln ( 1 / γ ) + 2 ζ 2 . (18) \mathbb{E}[\widetilde{H}_{G_M}^{2}]\le2H_M\ln(1/\gamma)+2\zeta^2. \tag*{(18)} E [ H G M 2 ] ≤ 2 H M ln ( 1/ γ ) + 2 ζ 2 . (18)
Define the local logarithmic sample by
Y ^ i , j : = { 2 − H ~ G M , j = 0 , H ~ G M , j ≥ 1. \widehat{Y}_{i,j}:=
\begin{cases}
2-\widetilde{H}_{G_M}, & j=0,\\
\widetilde{H}_{G_M}, & j\ge1.
\end{cases} Y i , j := { 2 − H G M , H G M , j = 0 , j ≥ 1.
For j ≥ 1 j \ge1 j ≥ 1 , its expectation approximates Y i , j = − ln O ( β i , 2 j δ i ) Y_{i,j}=-\ln O(\beta_i,2^{j}\delta_i) Y i , j = − ln O ( β i , 2 j δ i ) . For j = 0 j=0 j = 0 , the constant 2 compensates for the QSVT normalization, so its expectation approximates Y i , 0 = B ( β i , δ i ) Y_{i,0}=B(\beta_i,\delta_i) Y i , 0 = B ( β i , δ i ) , with the remaining QSVT error controlled by Lemma B.3 .
We now have a logarithmic sample for each branch. To estimate the full weighted sum by quantum mean estimation, we combine these samples into the global random variable X = L Y ^ I , J X=L\widehat{Y}_{I,J} X = L Y I , J , where ( I , J ) ∼ π (I,J)\sim\pi ( I , J ) ∼ π . The following lemma constructs its coherent preparation and the inverse needed for mean estimation.
Lemma 5.3 (Full coherent sample preparation). Let R \mathcal{R} R be the branch set, π = ( π i , j ) ( i , j ) ∈ R \pi=(\pi_{i,j})_{(i,j)\in\mathcal{R}} π = ( π i , j ) ( i , j ) ∈ R its sampling distribution, and L > 0 L>0 L > 0 the reconstruction scale, as defined in Eq. (16) . Assume that coherent preparation of the branch distribution and reversible loading of the branch parameters are available. For each ( i , j ) ∈ R (i,j)\in\mathcal{R} ( i , j ) ∈ R , let p i , j p_{i,j} p i , j be the success probability of U b r a n c h U_{\mathrm{branch}} U branch , which leaves the branch index and parameter registers unchanged.
Fix an integer M ≥ 1 M\ge1 M ≥ 1 and a fixed-point error tolerance ζ > 0 \zeta>0 ζ > 0 . For a string of success flags b = ( b 1 , … , b M ) ∈ { 0 , 1 } M \mathbf{b}=(b_1,\ldots,b_M)\in\{0,1\}^{M} b = ( b 1 , … , b M ) ∈ { 0 , 1 } M , where b m = 1 b_m=1 b m = 1 denotes success on the m m m -th trial, define
H ( b ) : = ∑ m = 1 M 1 m ∏ t = 1 m ( 1 − b t ) . H(\mathbf{b}):=\sum_{m=1}^{M}\frac{1}{m}\prod_{t=1}^{m}(1-b_t). H ( b ) := m = 1 ∑ M m 1 t = 1 ∏ m ( 1 − b t ) . Let H ~ ( b ) \widetilde{H}(\mathbf{b}) H ( b ) be a reversibly computable fixed-point approximation satisfying
∣ H ~ ( b ) − H ( b ) ∣ ≤ ζ for every b ∈ { 0 , 1 } M . \left|\widetilde{H}(\mathbf{b})-H(\mathbf{b})\right|\le\zeta\qquad\text{for every }\mathbf{b}\in\{0,1\}^{M}. H ( b ) − H ( b ) ≤ ζ for every b ∈ { 0 , 1 } M . Define the conditional flag distribution and the sample-value map by
q i , j ( b ) : = ∏ m = 1 M p i , j b m ( 1 − p i , j ) 1 − b m , x j ( y ) : = { L ( 2 − y ) , j = 0 , L y , j ≥ 1 , y ∈ R . q_{i,j}(\mathbf{b}):=\prod_{m=1}^{M}p_{i,j}^{b_m}(1-p_{i,j})^{1-b_m},\qquad
x_j(y):=
\begin{cases}
L(2-y), & j=0,\\
Ly, & j\ge1,
\end{cases}
\qquad y\in\mathbb{R}. q i , j ( b ) := m = 1 ∏ M p i , j b m ( 1 − p i , j ) 1 − b m , x j ( y ) := { L ( 2 − y ) , L y , j = 0 , j ≥ 1 , y ∈ R . There is a unitary U s a m p l e U_{\mathrm{sample}} U sample satisfying
U s a m p l e ∣ 0 ⟩ = ∑ ( i , j ) ∈ R ∑ b ∈ { 0 , 1 } M π i , j q i , j ( b ) ∣ w o r k i , j , b ⟩ ∣ x j ( H ~ ( b ) ) ⟩ X . U_{\mathrm{sample}}|0\rangle
=
\sum_{(i,j)\in\mathcal{R}}\sum_{\mathbf{b}\in\{0,1\}^{M}}
\sqrt{\pi_{i,j}q_{i,j}(\mathbf{b})}\,
|\mathrm{work}_{i,j,\mathbf{b}}\rangle
|x_j(\widetilde{H}(\mathbf{b}))\rangle_X. U sample ∣0 ⟩ = ( i , j ) ∈ R ∑ b ∈ { 0 , 1 } M ∑ π i , j q i , j ( b ) ∣ work i , j , b ⟩ ∣ x j ( H ( b )) ⟩ X . Here ∣ 0 ⟩ |0\rangle ∣0 ⟩ is the joint all-zero initial state, X X X labels the sample-value register, and ∣ w o r k i , j , b ⟩ |\mathrm{work}_{i,j,\mathbf{b}}\rangle ∣ work i , j , b ⟩ contains all other registers. For nonzero summands, these workspace states are normalized and mutually orthogonal, since they retain the branch index and all flags.
Measuring the value register produces the random variable
X = L Y ^ I , J , ( I , J ) ∼ π , X=L\widehat{Y}_{I,J},\qquad(I,J)\sim\pi, X = L Y I , J , ( I , J ) ∼ π , where, conditional on ( I , J ) = ( i , j ) (I,J)=(i,j) ( I , J ) = ( i , j ) , one has b ∼ q i , j \mathbf{b}\sim q_{i,j} b ∼ q i , j and Y ^ i , j = x j ( H ~ ( b ) ) / L \widehat{Y}_{i,j}=x_j(\widetilde{H}(\mathbf{b}))/L Y i , j = x j ( H ( b )) / L . No measurement is performed during the preparation.
The preparation uses one coherent branch preparation, one parameter loading, and M M M applications of U b r a n c h U_{\mathrm{branch}} U branch , together with reversible arithmetic. Its inverse reverses all these operations and uses M M M applications of U b r a n c h † U_{\mathrm{branch}}^\dagger U branch † .
The proof and register-level construction are given in Appendix § 13 , on page 49.
Quantum mean estimation. The construction above provides the coherent sampler required by the bounded-variance quantum mean-estimation procedure of Montanaro [19 Algorithm 3 and Theorem 5] . For either branch, Y ^ i , j 2 ≤ 2 H ^ G M 2 + 8 \widehat{Y}_{i,j}^{2} \le2\widehat{H}_{GM}^{2}+8 Y i , j 2 ≤ 2 H GM 2 + 8 , using ( 2 − y ) 2 ≤ 2 y 2 + 8 (2-y)^{2} \le2y^{2}+8 ( 2 − y ) 2 ≤ 2 y 2 + 8 for the reweighting branch. Thus Eq. (18) gives the known bound
Var ( X ) ≤ E [ X 2 ] ≤ L 2 ( 4 H M ln ( 1 / γ ) + 4 ζ 2 + 8 ) = : σ X 2 . \operatorname{Var}(X) \le\mathbb{E}[X^{2}] \le L^{2}\left(4H_{M}\ln(1/\gamma)+4\zeta^{2}+8\right) =: \sigma_{X}^{2}. Var ( X ) ≤ E [ X 2 ] ≤ L 2 ( 4 H M ln ( 1/ γ ) + 4 ζ 2 + 8 ) =: σ X 2 .
The encoded value of X X X is available for the reversible arithmetic, comparisons, and controlled rotations used by the procedure. Writing ∣ Ψ X ⟩ : = U s a m p l e ∣ 0 ⟩ \lvert\Psi_{X}\rangle:= U_{\mathrm{sample}}\lvert0\rangle ∣ Ψ X ⟩ := U sample ∣ 0 ⟩ , the reflection about the prepared sample state is implemented as
2 ∣ Ψ X ⟩ ⟨ Ψ X ∣ − I = U s a m p l e ( 2 ∣ 0 ⟩ ⟨ 0 ∣ − I ) U s a m p l e † . 2\lvert\Psi_{X}\rangle\langle\Psi_{X}\rvert-I=U_{\mathrm{sample}}\left(2\lvert0\rangle\langle0\rvert-I\right)U_{\mathrm{sample}}^{\dagger}. 2 ∣ Ψ X ⟩ ⟨ Ψ X ∣ − I = U sample ( 2 ∣ 0 ⟩ ⟨ 0 ∣ − I ) U sample † .
where ∣ 0 ⟩ \lvert0\rangle ∣ 0 ⟩ denotes the joint initial state of all preparation registers. Thus no additional sample-state-reflection oracle is required. For 0 < η ≤ σ X 0<\eta\le\sigma_{X} 0 < η ≤ σ X , the procedure estimates E [ X ] \mathbb{E}[X] E [ X ] to additive error η \eta η , with success probability at least 2 / 3 2/3 2/3 , using
O ~ ( σ X η ) \widetilde{O}\left(\frac{\sigma_{X}}{\eta}\right) O ( η σ X )
applications of U s a m p l e U_{\mathrm{sample}} U sample and U s a m p l e † U_{\mathrm{sample}}^{\dagger} U sample † .
The choices of M M M and ζ \zeta ζ , and the application of this mean-estimation procedure to the full reconstruction, are given in Subsection 5.3, Algorithm 3.
Reconstruction algorithm and complexity
The preceding construction provides a coherent sample X X X whose expectation approximates f ( β ) − f ( 0 ) f(\beta)-f(0) f ( β ) − f ( 0 ) . We now combine this sample with bounded-variance quantum mean estimation in Algorithm 3 to obtain the full partition-function reconstruction procedure. Theorem 5.4 proves the correctness of this algorithm and gives its coherent-TFD and block-encoding query complexities. In the extensive constant-temperature regime, both query counts scale as O ~ ( n / ϵ ) \widetilde{O}(n/\epsilon) O ( n / ϵ ) for constant failure probability.
Theorem 5.4 (Coherent-temperature partition-function estimation). Let H H H be an n n n -qubit Hamiltonian satisfying 0 ⪯ H ⪯ h I 0\preceq H\preceq hI 0 ⪯ H ⪯ h I for some h > 0 h>0 h > 0 . Let 0 < ϵ ≤ 1 0<\epsilon\le1 0 < ϵ ≤ 1 and 0 < p < 1 0<p<1 0 < p < 1 . Suppose that a C C C -slowly-varying schedule 0 = β 0 < ⋯ < β ℓ = β 0=\beta_{0}<\cdots<\beta_{\ell}=\beta 0 = β 0 < ⋯ < β ℓ = β is supplied, where C = O ( 1 ) C=O(1) C = O ( 1 ) and 0 < β < ∞ 0<\beta<\infty 0 < β < ∞ . Assume an α \alpha α -block encoding of H H H with α = Θ ( h ) \alpha=\Theta(h) α = Θ ( h ) and the coherent-temperature access of Definition 5.1 .
Algorithm 3 outputs f ^ ( β ) \widehat{f}(\beta) f ( β ) such that
Pr [ ∣ f ^ ( β ) − f ( β ) ∣ ≤ ϵ ] ≥ 1 − p . \Pr\left[\left|\widehat{f}(\beta)-f(\beta)\right|\le\epsilon\right]\ge1-p. Pr [ f ( β ) − f ( β ) ≤ ϵ ] ≥ 1 − p . Its expected reconstruction-stage query counts satisfy
N c o h T F D , N B E = O ~ ( ( ℓ + h β ) ln ( 2 / p ) ϵ ) . (19) N_{\mathrm{cohTFD}},N_{\mathrm{BE}}=\widetilde{O}\left(\frac{(\ell+h\beta)\ln(2/p)}{\epsilon}\right). \tag*{(19)} N cohTFD , N BE = O ( ϵ ( ℓ + h β ) ln ( 2/ p ) ) . (19) In particular, if
h = O ( n ) , β = Θ ( 1 ) , ℓ = O ~ ( n ) , h=O(n),\qquad\beta=\Theta(1),\qquad\ell=\widetilde{O}(\sqrt{n}), h = O ( n ) , β = Θ ( 1 ) , ℓ = O ( n ) , then
N c o h T F D , N B E = O ~ ( n ln ( 2 / p ) ϵ ) . (20) N_{\mathrm{cohTFD}},N_{\mathrm{BE}}=\widetilde{O}\left(\frac{n\ln(2/p)}{\epsilon}\right). \tag*{(20)} N cohTFD , N BE = O ( ϵ n ln ( 2/ p ) ) . (20) For constant p p p , both nonzero query counts are O ~ ( n / ϵ ) \widetilde{O}(n/\epsilon) O ( n / ϵ ) .
Proof. Let ( I , J ) ∼ π (I,J) \sim\pi ( I , J ) ∼ π , and define
Y ~ i , j : = { ln p i , 0 + 2 , j = 0 , − ln p i , j , j ≥ 1. \widetilde{Y}_{i,j} :=
\begin{cases}
\ln p_{i,0}+2, & j=0,\\
-\ln p_{i,j}, & j \ge1.
\end{cases} Y i , j := { ln p i , 0 + 2 , − ln p i , j , j = 0 , j ≥ 1.
For j ≥ 1 j \ge1 j ≥ 1 , Eq. (10) gives p i , j = O ( β i , 2 δ i ) p_{i,j} = O(\beta_{i,2} \delta_i) p i , j = O ( β i , 2 δ i ) , and hence Y ~ i , j = Y i , j \widetilde{Y}_{i,j}=Y_{i,j} Y i , j = Y i , j . For j = 0 j=0 j = 0 , Lemma B.3 gives
p i , 0 ≥ γ 0 2 = γ , ∣ Y ~ i , 0 − Y i , 0 ∣ = ∣ ln p i , 0 + 2 − ln R ( β i , δ i ) ∣ ≤ 4 ν γ 0 , p_{i,0} \ge\frac{\gamma_0}{2} = \gamma,\qquad
|\widetilde{Y}_{i,0}-Y_{i,0}| = |\ln p_{i,0}+2-\ln R(\beta_i,\delta_i)| \le\frac{4\nu}{\gamma_0}, p i , 0 ≥ 2 γ 0 = γ , ∣ Y i , 0 − Y i , 0 ∣ = ∣ ln p i , 0 + 2 − ln R ( β i , δ i ) ∣ ≤ γ 0 4 ν ,
where we used the choice of ν \nu ν in Algorithm 3. For the overlap branches, Eq. (9) gives p i , j ≥ γ 0 p_{i,j} \ge\gamma_0 p i , j ≥ γ 0 . Thus every branch probability satisfies p i , j ≥ γ p_{i,j} \ge\gamma p i , j ≥ γ .
Only the reweighting branches contribute to the QSVT approximation error. Since ∑ i a i , 0 ≤ L \sum_i a_{i,0} \le L ∑ i a i , 0 ≤ L ,
∑ i a i , 0 ∣ Y ~ i , 0 − Y i , 0 ∣ ≤ 4 ν γ 0 ∑ i a i , 0 ≤ 4 ν L γ 0 = ϵ 16 . \sum_i a_{i,0}|\widetilde{Y}_{i,0}-Y_{i,0}| \le\frac{4\nu}{\gamma_0}\sum_i a_{i,0} \le\frac{4\nu L}{\gamma_0} = \frac{\epsilon}{16}. i ∑ a i , 0 ∣ Y i , 0 − Y i , 0 ∣ ≤ γ 0 4 ν i ∑ a i , 0 ≤ γ 0 4 ν L = 16 ϵ .
Let Y ^ i , j \widehat{Y}_{i,j} Y i , j denote the fixed-point logarithmic output of the coherent sampler, including the correction on reweighting branches. By Eq. (18) , the inequality ( 2 − y ) 2 ≤ 2 y 2 + 8 (2-y)^2 \le2y^2+8 ( 2 − y ) 2 ≤ 2 y 2 + 8 , and the choices of M M M and ζ \zeta ζ in Algorithm 3,
∣ E [ Y ^ i , j ] − Y ~ i , j ∣ ≤ ϵ 8 L , E [ Y ^ i , j 2 ] ≤ 4 H M ln ( 1 / γ ) + 4 ζ 2 + 8. \left|\mathbb{E}[\widehat{Y}_{i,j}]-\widetilde{Y}_{i,j}\right| \le\frac{\epsilon}{8L},\qquad
\mathbb{E}[\widehat{Y}_{i,j}^{2}] \le4H_M\ln(1/\gamma)+4\zeta^2+8. E [ Y i , j ] − Y i , j ≤ 8 L ϵ , E [ Y i , j 2 ] ≤ 4 H M ln ( 1/ γ ) + 4 ζ 2 + 8.
The first bound combines the logarithmic truncation error ϵ / ( 16 L ) \epsilon/(16L) ϵ / ( 16 L ) and the arithmetic error ζ = ϵ / ( 16 L ) \zeta=\epsilon/(16L) ζ = ϵ / ( 16 L ) . Moreover, γ = Ω ( 1 ) \gamma=\Omega(1) γ = Ω ( 1 ) and M = O ( log ( L / ϵ ) ) M=O(\log(L/\epsilon)) M = O ( log ( L / ϵ )) , so E [ Y ^ i , j 2 ] = O ~ ( 1 ) \mathbb{E}[\widehat{Y}_{i,j}^{2}]=\widetilde{O}(1) E [ Y i , j 2 ] = O ( 1 ) uniformly over all branches.
Now define the global coherent sample X : = L Y ^ I , J X:=L\widehat{Y}_{I,J} X := L Y I , J . Since π i , j = a i , j / L \pi_{i,j}=a_{i,j}/L π i , j = a i , j / L ,
E [ X ] = ∑ ( i , j ) ∈ R a i , j E [ Y ^ i , j ] , \mathbb{E}[X] = \sum_{(i,j)\in\mathcal{R}} a_{i,j}\mathbb{E}[\widehat{Y}_{i,j}], E [ X ] = ( i , j ) ∈ R ∑ a i , j E [ Y i , j ] ,
whereas Eq. (17) gives
f ( β ) − f ( 0 ) = ∑ ( i , j ) ∈ R a i , j Y i , j . f(\beta)-f(0)=\sum_{(i,j)\in\mathcal{R}}a_{i,j}Y_{i,j}. f ( β ) − f ( 0 ) = ( i , j ) ∈ R ∑ a i , j Y i , j .
Therefore
∣ E [ X ] − ( f ( β ) − f ( 0 ) ) ∣ ≤ ∑ ( i , j ) ∈ R a i , j ∣ E [ Y ^ i , j ] − Y ~ i , j ∣ + ∑ i a i , 0 ∣ Y ~ i , 0 − Y i , 0 ∣ ≤ L ϵ 8 L + ϵ 16 = 3 ϵ 16 < ϵ 4 . \begin{aligned}
\left|\mathbb{E}[X]-(f(\beta)-f(0))\right|
\le\sum_{(i,j)\in\mathcal{R}}a_{i,j}\left|\mathbb{E}[\widehat{Y}_{i,j}]-\widetilde{Y}_{i,j}\right|+\sum_i a_{i,0}|\widetilde{Y}_{i,0}-Y_{i,0}| \\
&\le L\frac{\epsilon}{8L}+\frac{\epsilon}{16}
=\frac{3\epsilon}{16}<\frac{\epsilon}{4}.
\end{aligned} ∣ E [ X ] − ( f ( β ) − f ( 0 )) ∣ ≤ ( i , j ) ∈ R ∑ a i , j E [ Y i , j ] − Y i , j + i ∑ a i , 0 ∣ Y i , 0 − Y i , 0 ∣ ≤ L 8 L ϵ + 16 ϵ = 16 3 ϵ < 4 ϵ .
The second moment satisfies
E [ X 2 ] = L 2 ∑ ( i , j ) ∈ R π i , j E [ Y ^ i , j 2 ] ≤ L 2 max i , j E [ Y ^ i , j 2 ] = O ~ ( L 2 ) , \mathbb{E}[X^2]=L^2\sum_{(i,j)\in\mathcal{R}}\pi_{i,j}\mathbb{E}[\widehat{Y}_{i,j}^2]
\le L^2\max_{i,j}\mathbb{E}[\widehat{Y}_{i,j}^2]
=\widetilde{O}(L^2), E [ X 2 ] = L 2 ( i , j ) ∈ R ∑ π i , j E [ Y i , j 2 ] ≤ L 2 i , j max E [ Y i , j 2 ] = O ( L 2 ) ,
and hence Var ( X ) = O ~ ( L 2 ) \operatorname{Var}(X)=\widetilde{O}(L^2) Var ( X ) = O ( L 2 ) .
Bounded-variance quantum mean estimation [19 Theorem 5] therefore estimates E [ X ] \mathbb{E}[X] E [ X ] to additive error ϵ / 2 \epsilon/2 ϵ /2 using O ~ ( L / ϵ ) \widetilde{O}(L/\epsilon) O ( L / ϵ ) coherent sample-preparation calls and their inverses. Combining this with the preceding bias gives
∣ g ^ − ( f ( β ) − f ( 0 ) ) ∣ ≤ ϵ 2 + 3 ϵ 16 < ϵ . |\widehat{g}-(f(\beta)-f(0))|\le\frac{\epsilon}{2}+\frac{3\epsilon}{16}<\epsilon. ∣ g − ( f ( β ) − f ( 0 )) ∣ ≤ 2 ϵ + 16 3 ϵ < ϵ .
Adding the known baseline f ( 0 ) = n ln 2 f(0)=n\ln2 f ( 0 ) = n ln 2 , one run produces an ϵ \epsilon ϵ -accurate estimate of f ( β ) f(\beta) f ( β ) with constant success probability. Using the N r e p N_{\mathrm{rep}} N rep independent repetitions in Algorithm 3 and taking their median reduces the failure probability to at most p p p .
It remains to count oracle queries. By Subsection C.2, one application of U b r a n c h U_{\mathrm{branch}} U branch uses at most two coherent-TFD calls and O ~ ( 1 ) \widetilde{O}(1) O ( 1 ) block-encoding queries. One logarithmic sample uses M M M such branch applications, and its inverse has the same asymptotic cost. Thus one sample-state reflection uses O ( M ) O(M) O ( M ) coherent-TFD calls and O ~ ( M ) \widetilde{O}(M) O ( M ) block-encoding queries. Since M = O ( log ( L / ϵ ) ) M=O(\log(L/\epsilon)) M = O ( log ( L / ϵ )) , this factor is absorbed into O ~ \widetilde{O} O . Together with quantum mean estimation and the N r e p = O ( ln ( 2 / p ) ) N_{\mathrm{rep}}=O(\ln(2/p)) N rep = O ( ln ( 2/ p )) repetitions,
N T F D = 0 , N c o h T F D , N B E = O ~ ( L ln ( 2 / p ) ϵ ) . N_{\mathrm{TFD}}=0,\qquad N_{\mathrm{cohTFD}},N_{\mathrm{BE}}=\widetilde{O}\left(\frac{L\ln(2/p)}{\epsilon}\right). N TFD = 0 , N cohTFD , N BE = O ( ϵ L ln ( 2/ p ) ) .
Finally, using a i , j = 2 k i − j a_{i,j}=2^{k_i-j} a i , j = 2 k i − j and k i = max { 0 , ⌈ log 2 ( h Δ i ) ⌉ } k_i=\max\{0,\lceil\log_2(h\Delta_i)\rceil\} k i = max { 0 , ⌈ log 2 ( h Δ i )⌉} ,
L = ∑ i = 0 ℓ − 1 ∑ j = 0 k i 2 k i − j = ∑ i = 0 ℓ − 1 ( 2 k i + 1 − 1 ) = O ( ∑ i = 0 ℓ − 1 max { 1 , h Δ i } ) = O ( ℓ + h β ) , \begin{aligned}
L=\sum_{i=0}^{\ell-1}\sum_{j=0}^{k_i}2^{k_i-j}=\sum_{i=0}^{\ell-1}(2^{k_i+1}-1) \\
&=O\left(\sum_{i=0}^{\ell-1}\max\{1,h\Delta_i\}\right)=O(\ell+h\beta),
\end{aligned} L = i = 0 ∑ ℓ − 1 j = 0 ∑ k i 2 k i − j = i = 0 ∑ ℓ − 1 ( 2 k i + 1 − 1 ) = O ( i = 0 ∑ ℓ − 1 max { 1 , h Δ i } ) = O ( ℓ + h β ) ,
where ∑ i Δ i = β \sum_i\Delta_i=\beta ∑ i Δ i = β . This proves Eq. (19) .
Under h = O ( n ) h=O(n) h = O ( n ) , β = Θ ( 1 ) \beta=\Theta(1) β = Θ ( 1 ) , and ℓ = O ~ ( n ) \ell=\widetilde{O}(\sqrt{n}) ℓ = O ( n ) , we have L = O ~ ( n ) L=\widetilde{O}(n) L = O ( n ) . Therefore
N T F D = 0 , N c o h T F D , N B E = O ~ ( n ln ( 2 / p ) ϵ ) , N_{\mathrm{TFD}}=0,\qquad N_{\mathrm{cohTFD}},N_{\mathrm{BE}}=\widetilde{O}\left(\frac{n\ln(2/p)}{\epsilon}\right), N TFD = 0 , N cohTFD , N BE = O ( ϵ n ln ( 2/ p ) ) ,
which proves Eq. (20) .
Algorithm 3 Partition-function reconstruction with coherent-temperature access
Require: An n n n -qubit Hamiltonian H H H with 0 ⪯ H ⪯ h I 0\preceq H\preceq hI 0 ⪯ H ⪯ h I and h > 0 h>0 h > 0 ; an α \alpha α -block encoding of H H H with α = Θ ( h ) \alpha=\Theta(h) α = Θ ( h ) ; a supplied C C C -slowly-varying schedule 0 = β 0 < ⋯ < β ℓ = β 0=\beta_0<\cdots<\beta_\ell=\beta 0 = β 0 < ⋯ < β ℓ = β ; the coherent-temperature access of Definition 5.1 ; 0 < ϵ ≤ 1 0<\epsilon\leq1 0 < ϵ ≤ 1 ; and 0 < p < 1 0<p<1 0 < p < 1 .
Ensure: An estimate f ^ ( β ) \widehat{f}(\beta) f ( β ) satisfying ∣ f ^ ( β ) − ln Z ( β ) ∣ ≤ ϵ |\widehat{f}(\beta)-\ln Z(\beta)|\leq\epsilon ∣ f ( β ) − ln Z ( β ) ∣ ≤ ϵ with probability at least 1 − p 1-p 1 − p .
Compute Δ i \Delta_i Δ i , k i k_i k i , and δ i \delta_i δ i from Eq. (5) . Set a i , j = 2 k i − j a_{i,j}=2^{k_i-j} a i , j = 2 k i − j for 0 ≤ j ≤ k i 0\leq j\leq k_i 0 ≤ j ≤ k i , and compute R \mathcal{R} R , L L L , and π i , j \pi_{i,j} π i , j from Eq. (16) .
Set
γ 0 ← min { e − 3 , 1 / C } , γ ← γ 0 / 2 , ν ← γ 0 ϵ 64 L , ζ ← ϵ 16 L , \gamma_0\leftarrow\min\{e^{-3},1/C\},\qquad\gamma\leftarrow\gamma_0/2,\qquad\nu\leftarrow\frac{\gamma_0\epsilon}{64L},\qquad\zeta\leftarrow\frac{\epsilon}{16L}, γ 0 ← min { e − 3 , 1/ C } , γ ← γ 0 /2 , ν ← 64 L γ 0 ϵ , ζ ← 16 L ϵ ,
M ← ⌈ 1 γ ln ( 16 L γ ϵ ) ⌉ . M\leftarrow\left\lceil\frac{1}{\gamma}\ln\left(\frac{16L}{\gamma\epsilon}\right)\right\rceil. M ← ⌈ γ 1 ln ( γ ϵ 16 L ) ⌉ .
Construct U s a m p l e U_{\mathrm{sample}} U sample and its inverse as in Lemma 5.3 , using branch distribution π \pi π , scale L L L , truncation length M M M , fixed-point error at most ζ \zeta ζ , and QSVT approximation error ν \nu ν on the reweighting branches. The encoded sample is X = L Y ^ I , J X=L\widehat{Y}_{I,J} X = L Y I , J , where ( I , J ) ∼ π (I,J)\sim\pi ( I , J ) ∼ π .
Set the variance bound
σ X 2 ← L 2 ( 4 H M ln ( 1 / γ ) + 4 ζ 2 + 8 ) , \sigma_X^2\leftarrow L^2\left(4H_M\ln(1/\gamma)+4\zeta^2+8\right), σ X 2 ← L 2 ( 4 H M ln ( 1/ γ ) + 4 ζ 2 + 8 ) ,
where H M = ∑ m = 1 M 1 / m H_M=\sum_{m=1}^{M}1/m H M = ∑ m = 1 M 1/ m .
Set
N r e p ← 2 ⌈ 9 ln ( 2 / p ) ⌉ + 1. N_{\mathrm{rep}}\leftarrow2\left\lceil9\ln(2/p)\right\rceil+1. N rep ← 2 ⌈ 9 ln ( 2/ p ) ⌉ + 1.
for r = 1 , … , N r e p r=1,\ldots,N_{\mathrm{rep}} r = 1 , … , N rep do
Independently apply the bounded-variance quantum mean-estimation procedure of Montanaro [19, Algorithm 3 and Theorem 5], using U s a m p l e U_{\mathrm{sample}} U sample , U s a m p l e † U_{\mathrm{sample}}^\dagger U sample † , the variance bound σ X 2 \sigma_X^2 σ X 2 , and additive target ϵ / 2 \epsilon/2 ϵ /2 . Denote the output by g ^ r \widehat{g}_r g r .
end for
return
f ^ ( β ) ← n ln 2 + median { g ^ 1 , … , g ^ N r e p } . \widehat{f}(\beta)\leftarrow n\ln2+\operatorname{median}\{\widehat{g}_1,\ldots,\widehat{g}_{N_{\mathrm{rep}}}\}. f ( β ) ← n ln 2 + median { g 1 , … , g N rep } .
Corollary 5.5 (Block-encoding-query optimality). Assume the hypotheses of Theorem 5.4 . Suppose that the supplied schedule satisfies ℓ = O ( 1 + h β ) \ell= O(1+h\beta) ℓ = O ( 1 + h β ) , that h β ≥ 1 h\beta\ge1 h β ≥ 1 , and that p ∈ ( 0 , 1 / 3 ] p \in(0,1/3] p ∈ ( 0 , 1/3 ] is fixed. Under the hidden-offset model of Theorem A.3 , for
0 < ϵ ≤ min { 1 , β min { h , α } 16 } , 0 < \epsilon\le\min\left\{1,\frac{\beta\min\{h,\alpha\}}{16}\right\}, 0 < ϵ ≤ min { 1 , 16 β min { h , α } } , N B E = Θ ~ ( h β ϵ ) . N_{\mathrm{BE}} = \widetilde{\Theta}\left(\frac{h\beta}{\epsilon}\right). N BE = Θ ( ϵ h β ) . In particular, if h = Θ ( n ) h=\Theta(n) h = Θ ( n ) and β = Θ ( 1 ) \beta=\Theta(1) β = Θ ( 1 ) , then N B E = Θ ~ ( n / ϵ ) N_{\mathrm{BE}}=\widetilde{\Theta}(n/\epsilon) N BE = Θ ( n / ϵ ) . This equality concerns the worst-case expected block-encoding query complexity.
Proof. Since ℓ = O ( 1 + h β ) \ell= O(1+h\beta) ℓ = O ( 1 + h β ) and h β ≥ 1 h\beta\ge1 h β ≥ 1 , Theorem 5.4 gives N B E = O ~ ( h β / ϵ ) N_{\mathrm{BE}}=\widetilde{O}(h\beta/\epsilon) N BE = O ( h β / ϵ ) . The hidden-offset lower bound gives N B E = Ω ( α β / ϵ ) = Ω ( h β / ϵ ) N_{\mathrm{BE}}=\Omega(\alpha\beta/\epsilon)=\Omega(h\beta/\epsilon) N BE = Ω ( α β / ϵ ) = Ω ( h β / ϵ ) , since α = Θ ( h ) \alpha=\Theta(h) α = Θ ( h ) .
Adaptive Cooling Schedules
The preceding reconstruction algorithms achieve Heisenberg scaling given a suitable slowly-varying schedule. We now explain how such schedules can be generated and how their length is bounded. We use the adaptive procedure of Arunachalam et al. [2 ] , which selects each successive inverse temperature by binary search using TFD overlap estimates.
Following their analysis, we compare the generated schedule with a perfectly-balanced schedule. Throughout this section, f ( β ) : = ln Z ( β ) f(\beta):=\ln Z(\beta) f ( β ) := ln Z ( β ) , where Z ( β ) = Tr ( e − β H ) Z(\beta)=\operatorname{Tr}(e^{-\beta H}) Z ( β ) = Tr ( e − β H ) .
Definition 6.1 (Perfectly-balanced schedule [2 ] ). A schedule
0 = γ 0 < γ 1 < ⋯ < γ L P B = γ 0=\gamma_0<\gamma_1<\cdots<\gamma_{L_{\mathrm{PB}}}=\gamma 0 = γ 0 < γ 1 < ⋯ < γ L PB = γ is perfectly balanced if
f ( γ i + γ i + 1 2 ) = f ( γ i ) + f ( γ i + 1 ) 2 − 1 ( 0 ≤ i < L P B − 1 ) . f\left(\frac{\gamma_i+\gamma_{i+1}}{2}\right)=\frac{f(\gamma_i)+f(\gamma_{i+1})}{2}-1 \qquad(0\le i<L_{\mathrm{PB}}-1). f ( 2 γ i + γ i + 1 ) = 2 f ( γ i ) + f ( γ i + 1 ) − 1 ( 0 ≤ i < L PB − 1 ) .
with equality replaced by ≥ \ge ≥ on the final interval. Thus every nonfinal interval has squared TFD overlap e − 2 e^{-2} e − 2 , and the final interval has squared overlap at least e − 2 e^{-2} e − 2 . Here L P B L_{\mathrm{PB}} L PB is the total number of intervals.
The following theorem gives the length bounds needed below.
Theorem 6.2 (Perfectly-balanced schedule length, adapted from [26]). Let H H H be an n n n -qubit Hamiltonian satisfying 0 ⪯ H ⪯ h I 0 \preceq H \preceq hI 0 ⪯ H ⪯ h I . For a finite endpoint β max > 0 \beta_{\max}>0 β m a x > 0 with − f ′ ( β max ) > 0 -f'(\beta_{\max})>0 − f ′ ( β m a x ) > 0 , there exists a perfectly-balanced schedule from 0 0 0 to β max \beta_{\max} β m a x with
L P B ≤ 1 + ( f ( 0 ) − f ( β max ) ) ln − f ′ ( 0 ) − f ′ ( β max ) . L_{\mathrm{PB}} \le1+\sqrt{\bigl(f(0)-f(\beta_{\max})\bigr)\ln\frac{-f'(0)}{-f'(\beta_{\max})}}. L PB ≤ 1 + ( f ( 0 ) − f ( β m a x ) ) ln − f ′ ( β m a x ) − f ′ ( 0 ) . The factor f ( 0 ) − f ( β max ) f(0)-f(\beta_{\max}) f ( 0 ) − f ( β m a x ) is at most h β max h\beta_{\max} h β m a x .
For the low-temperature specialization, assume that H H H is nonconstant. Let E 0 E_0 E 0 be the ground energy, N 0 N_0 N 0 its degeneracy, and H ˉ : = H − E 0 I \bar{H}:=H-E_0I H ˉ := H − E 0 I . Define
E s : = min { E − E 0 : E ∈ spec ( H ) , E > E 0 } . E_s:=\min\{E-E_0:E\in\operatorname{spec}(H),\ E>E_0\}. E s := min { E − E 0 : E ∈ spec ( H ) , E > E 0 } . If ln N 0 + 2 < n ln 2 \ln N_0+2<n\ln2 ln N 0 + 2 < n ln 2 , there is a finite γ > 0 \gamma>0 γ > 0 such that ln Tr ( e − γ H ˉ ) = ln N 0 + 2 \ln\operatorname{Tr}(e^{-\gamma\bar{H}})=\ln N_0+2 ln Tr ( e − γ H ˉ ) = ln N 0 + 2 , and the corresponding perfectly-balanced schedule satisfies
L P B ≤ 1 + ( n ln 2 − ln N 0 − 2 ) ln ( e 2 ∥ H ˉ ∥ ∞ ( e 2 − 1 ) E s ) . L_{\mathrm{PB}}\le1+\sqrt{(n\ln2-\ln N_0-2)\ln\left(\frac{e^2\lVert\bar{H}\rVert_\infty}{(e^2-1)E_s}\right)}. L PB ≤ 1 + ( n ln 2 − ln N 0 − 2 ) ln ( ( e 2 − 1 ) E s e 2 ∥ H ˉ ∥ ∞ ) . The terminal interval from γ \gamma γ to ∞ \infty ∞ has squared TFD overlap e − 2 e^{-2} e − 2 and is therefore e 2 e^2 e 2 -slowly varying.
The finite-endpoint bound follows from [26, Lemma 4.3]. Its application to perfectly-balanced schedules and the low-temperature specialization are proved in Appendix § 14 . Global energy shifts leave TFD overlaps unchanged, so H ˉ \bar{H} H ˉ is used only to express the low-temperature bound. If ln N 0 + 2 ≥ n ln 2 \ln N_0+2\ge n\ln2 ln N 0 + 2 ≥ n ln 2 , then N 0 / 2 n ≥ e − 2 N_0/2^n\ge e^{-2} N 0 / 2 n ≥ e − 2 , and the one-interval schedule from zero to any finite endpoint is already e 2 e^2 e 2 -slowly varying.
The adaptive schedule need not be perfectly balanced. Instead, its nonfinal intervals have a partition-function ratio between e 2 e^2 e 2 and 15 15 15 . The upper bound ensures slow variation, while the lower bound controls the number of intervals through the following comparison.
Corollary 6.4 (Large-ratio counting bound). Let 0 = β 0 < ⋯ < β ℓ = β max 0=\beta_0<\cdots<\beta_\ell=\beta_{\max} 0 = β 0 < ⋯ < β ℓ = β m a x be a schedule such that
Z ( β i ) Z ( β i + 1 ) Z ( ( β i + β i + 1 ) / 2 ) 2 ≥ e 2 ( 0 ≤ i < ℓ ) . \frac{Z(\beta_i)Z(\beta_{i+1})}{Z((\beta_i+\beta_{i+1})/2)^2}\ge e^2 \qquad(0\le i<\ell). Z (( β i + β i + 1 ) /2 ) 2 Z ( β i ) Z ( β i + 1 ) ≥ e 2 ( 0 ≤ i < ℓ ) . Then ℓ ≤ L P B \ell\le L_{\mathrm{PB}} ℓ ≤ L PB , where L P B L_{\mathrm{PB}} L PB is the length of a perfectly-balanced schedule with the same endpoints. In particular, the finite-endpoint bound in Theorem 6.2 also bounds ℓ \ell ℓ . If the ratio condition holds only on the nonfinal intervals, then ℓ ≤ L P B + 1 \ell\le L_{\mathrm{PB}}+1 ℓ ≤ L PB + 1 .
This is the comparison argument of [2 Corollary 2.4] : increasing the interval ratio cannot increase the number of intervals. Applying the same comparison to all intervals except the last, then adding the final interval, gives ℓ ≤ L P B + 1 \ell\le L_{\mathrm{PB}} + 1 ℓ ≤ L PB + 1 .
We now state the quantum schedule-generation procedure in our notation. The states ∣ ψ θ ⟩ \lvert\psi_\theta\rangle ∣ ψ θ ⟩ below are the TFD states of Definition 3.1 .
Algorithm 4 Quantum cooling schedule generation, adapted from [2 Algorithm 3]
Require: Endpoint β max > 0 \beta_{\max} > 0 β m a x > 0 ; a known bound h > 0 h > 0 h > 0 with 0 ⪯ H ⪯ h I 0 \preceq H \preceq hI 0 ⪯ H ⪯ h I ; failure probability 0 < p < 1 0 < p < 1 0 < p < 1 ; TFD preparation unitaries and their adjoints at the queried temperatures.
Ensure: A schedule 0 = β 0 < ⋯ < β ℓ = β max 0 = \beta_0 < \cdots< \beta_\ell= \beta_{\max} 0 = β 0 < ⋯ < β ℓ = β m a x , or a failure flag.
Set β 0 ← 0 \beta_0 \gets0 β 0 ← 0 and k ← 0 k \gets0 k ← 0 .
Use additive error 0.005 0.005 0.005 for every overlap estimate, and conditional failure probability at most 6 p ( π 2 j 2 ) \frac{6p}{(\pi^2 j^2)} ( π 2 j 2 ) 6 p for the j j j -th such call across all binary searches.
while β k < β max \beta_k < \beta_{\max} β k < β m a x do
If k ≥ ⌈ 1 + h β max / 2 ⌉ k \ge\lceil1 + \sqrt{h\beta_{\max}/2}\rceil k ≥ ⌈ 1 + h β m a x /2 ⌉ , return a failure flag.
Define f θ ( θ ) : = ∣ ⟨ ψ β k ∣ ψ θ ⟩ ∣ 2 f_{\theta}(\theta) := \lvert\langle\psi_{\beta_k}\mid\psi_\theta\rangle\rvert^2 f θ ( θ ) := ∣⟨ ψ β k ∣ ψ θ ⟩ ∣ 2 , evaluated by quantum overlap estimation.
Compute
β ∗ ← BinarySearch ( f o ( ⋅ ) ≥ 0.075 , [ β k , β max ] , 1 2 h ) \beta^* \gets\operatorname{BinarySearch}\left(f_o(\cdot) \ge0.075,\ [\beta_k,\beta_{\max}],\ \frac{1}{2h}\right) β ∗ ← BinarySearch ( f o ( ⋅ ) ≥ 0.075 , [ β k , β m a x ] , 2 h 1 )
If β ∗ ≤ β k \beta^* \le\beta_k β ∗ ≤ β k , return a failure flag.
Set β k + 1 ← β ∗ \beta_{k+1} \gets\beta^* β k + 1 ← β ∗ and k ← k + 1 k \gets k + 1 k ← k + 1 .
end while
Set ℓ ← k \ell\gets k ℓ ← k and return ( β 0 , … , β ℓ ) (\beta_0,\ldots,\beta_\ell) ( β 0 , … , β ℓ ) .
Here BinarySearch \operatorname{BinarySearch} BinarySearch is the routine used in [2 Algorithm 3] : it returns the endpoint if its estimated overlap passes the threshold; otherwise it returns the accepted lower endpoint of a bracket of the prescribed width. The precision 1 / ( 2 h ) 1/(2h) 1/ ( 2 h ) replaces 1 / ( 2 n ) 1/(2n) 1/ ( 2 n ) in the original energy range. Each search therefore uses O ( ln ( 2 + h β max ) ) O(\ln(2 + h\beta_{\max})) O ( ln ( 2 + h β m a x )) overlap-estimation calls.
Theorem 6.5 (Quantum cooling schedule generation, adapted from [2 Algorithm 3 and Theorem 3.4] ). Let H H H be an n n n -qubit Hamiltonian satisfying 0 ⪯ H ⪯ h I 0 \preceq H \preceq hI 0 ⪯ H ⪯ h I , with h > 0 h > 0 h > 0 , and let 0 < p < 1 0 < p < 1 0 < p < 1 and 0 < β max < ∞ 0 < \beta_{\max} < \infty 0 < β m a x < ∞ . Assume access to the TFD preparation unitaries U θ U_\theta U θ and their adjoints from Definition 4.1 at every temperature θ ∈ [ 0 , β max ] \theta\in[0,\beta_{\max}] θ ∈ [ 0 , β m a x ] queried by Algorithm 4.
With probability at least 1 − p 1-p 1 − p , the algorithm outputs a 15-slowly-varying schedule 0 = β 0 < ⋯ < β ℓ = β max 0 = \beta_0 < \cdots< \beta_\ell= \beta_{\max} 0 = β 0 < ⋯ < β ℓ = β m a x satisfying
e 2 ≤ Z ( β i ) Z ( β i + 1 ) Z ( ( β i + β i + 1 ) / 2 ) 2 ≤ 15 ( 0 ≤ i < ℓ − 1 ) e^2 \le\frac{Z(\beta_i)Z(\beta_{i+1})}{Z((\beta_i+\beta_{i+1})/2)^2} \le15 \qquad(0 \le i < \ell- 1) e 2 ≤ Z (( β i + β i + 1 ) /2 ) 2 Z ( β i ) Z ( β i + 1 ) ≤ 15 ( 0 ≤ i < ℓ − 1 ) with only the upper bound required on the final interval. For H ≠ 0 H \ne0 H = 0 , its length obeys
ℓ = O ( 1 + ( f ( 0 ) − f ( β max ) ) ln − f ′ ( 0 ) − f ′ ( β max ) ) \ell= O\left(1 + \sqrt{(f(0)-f(\beta_{\max}))\ln\frac{-f'(0)}{-f'(\beta_{\max})}}\right) ℓ = O ( 1 + ( f ( 0 ) − f ( β m a x )) ln − f ′ ( β m a x ) − f ′ ( 0 ) ) The schedule-generation procedure uses
O ~ ( ℓ ln ( 2 + h β max ) ln 2 p ) \widetilde{O}\left(\ell\ln(2+h\beta_{\max})\ln\frac{2}{p}\right) O ( ℓ ln ( 2 + h β m a x ) ln p 2 ) reflections about TFD states. The same asymptotic bound holds for N T F D N_{\mathrm{TFD}} N TFD , and N B E = 0 N_{\mathrm{BE}} = 0 N BE = 0 . For H = 0 H = 0 H = 0 , a one-interval schedule suffices.
Under the low-temperature assumptions of Theorem 6.2 , taking the supplied endpoint to be γ \gamma γ gives
ℓ = O ( 1 + n ln ( e 2 ∥ H ˉ ∥ ∞ ( e 2 − 1 ) E s ) ) . \ell= O\left(1+\sqrt{n\ln\left(\frac{e^{2}\lVert\bar{H}\rVert_{\infty}}{(e^{2}-1)E_s}\right)}\right). ℓ = O ( 1 + n ln ( ( e 2 − 1 ) E s e 2 ∥ H ˉ ∥ ∞ ) ) .
Its generation cost is obtained by setting β max = γ \beta_{\max}=\gamma β m a x = γ in the reflection bound above. One terminal interval to ∞ \infty ∞ can be appended without an additional binary search.
Proof. We first analyze the algorithm assuming that all overlap estimates are accurate. The correctness argument of [2 Theorem 3.4] applies to our energy range 0 ⪯ H ⪯ h I 0\preceq H\preceq hI 0 ⪯ H ⪯ h I . Indeed, for every β , Δ ≥ 0 \beta,\Delta\ge0 β , Δ ≥ 0 ,
e − h Δ Z ( β ) ≤ Z ( β + Δ ) ≤ Z ( β ) . e^{-h\Delta}Z(\beta)\le Z(\beta+\Delta)\le Z(\beta). e − h Δ Z ( β ) ≤ Z ( β + Δ ) ≤ Z ( β ) .
Thus replacing the original binary-search precision by 1 / ( 2 h ) 1/(2h) 1/ ( 2 h ) preserves the constant-factor bounds used in that argument. Every nonfinal interval consequently has a partition-function ratio between e 2 e^2 e 2 and 15 15 15 , while the final interval satisfies the upper bound 15 15 15 . Hence the resulting schedule is 15-slowly varying.
To bound its length, apply Corollary 6.4 to the nonfinal intervals. Their number is at most L P B L_{\mathrm{PB}} L PB , so including the final interval gives
ℓ ≤ L P B + 1. \ell\le L_{\mathrm{PB}}+1. ℓ ≤ L PB + 1.
The finite-endpoint and low-temperature bounds now follow from Theorem 6.2 , with the additional interval absorbed into the additive constant. For H ≠ 0 H\ne0 H = 0 , the Gibbs mean energy is strictly positive at every finite inverse temperature. Therefore − f ′ ( β max ) > 0 -f'(\beta_{\max})>0 − f ′ ( β m a x ) > 0 , and the logarithm in the finite-endpoint bound is well defined.
We next account for estimation failures and query costs. Each binary search has range at most β max \beta_{\max} β m a x and precision 1 / ( 2 h ) 1/(2h) 1/ ( 2 h ) , and therefore requires O ( ln ( 2 + h β max ) ) O(\ln(2+h\beta_{\max})) O ( ln ( 2 + h β m a x )) overlap estimates. Over the entire schedule, the number of overlap-estimation calls is thus O ( ℓ ln ( 2 + h β max ) ) O(\ell\ln(2+h\beta_{\max})) O ( ℓ ln ( 2 + h β m a x )) .
Because these calls are chosen adaptively, we assign their failure probabilities by call index. For the j j j -th overlap-estimation call in the full schedule-generation procedure, set
η j : = 6 p π 2 j 2 . \eta_j:=\frac{6p}{\pi^2j^2}. η j := π 2 j 2 6 p .
Conditioned on the preceding history, that call returns an inaccurate estimate with probability at most η j \eta_j η j . Since ∑ j = 1 ∞ j − 2 = π 2 / 6 \sum_{j=1}^{\infty}j^{-2}=\pi^2/6 ∑ j = 1 ∞ j − 2 = π 2 /6 , we have ∑ j ≥ 1 η j = p \sum_{j\ge1}\eta_j=p ∑ j ≥ 1 η j = p . A union bound therefore shows that all overlap estimates are simultaneously accurate with probability at least 1 − p 1-p 1 − p . The correctness and length guarantees established above therefore hold with this probability.
Each overlap estimate has constant additive accuracy and uses O ( ln ( 1 / η j ) ) O(\ln(1/\eta_j)) O ( ln ( 1/ η j )) reflections. Summing over the calls gives
O ~ ( ℓ ln ( 2 + h β max ) ln 2 p ) \widetilde{O}\left(\ell\ln(2+h\beta_{\max})\ln\frac{2}{p}\right) O ( ℓ ln ( 2 + h β m a x ) ln p 2 )
reflections in total.
Finally, the TFD preparation unitary implements the required reflection through
2 ∣ ψ θ ⟩ ⟨ ψ θ ∣ − I = U θ ( 2 ∣ 0 ⟩ ⟨ 0 ∣ − I ) U θ † . 2\lvert\psi_\theta\rangle\langle\psi_\theta\rvert-I
=U_\theta(2\lvert0\rangle\langle0\rvert-I)U_\theta^\dagger. 2 ∣ ψ θ ⟩ ⟨ ψ θ ∣ − I = U θ ( 2 ∣ 0 ⟩ ⟨ 0 ∣ − I ) U θ † .
Its controlled version is obtained by controlling the middle zero-state reflection. Thus either version uses one application each of U θ U_\theta U θ and U θ † U_\theta^\dagger U θ † . The TFD preparations needed to initialize the overlap estimates also fit within the same asymptotic bound. Consequently, the stated reflection bound also bounds N T F D N_{\mathrm{TFD}} N TFD , while N B E = 0 N_{\mathrm{BE}}=0 N BE = 0 .
For a finite endpoint, any schedule whose nonfinal interval ratios are at least e 2 e^2 e 2 also satisfies ℓ ≤ 1 + h β max / 2 \ell\le1+\sqrt{h\beta_{\max}}/2 ℓ ≤ 1 + h β m a x /2 . To see this, for 0 ≤ i < ℓ − 1 0\le i<\ell-1 0 ≤ i < ℓ − 1 , set Δ i : = β i + 1 − β i \Delta_i:=\beta_{i+1}-\beta_i Δ i := β i + 1 − β i and d i : = f ′ ( β i + 1 ) − f ′ ( β i ) ≥ 0 d_i:=f'(\beta_{i+1})-f'(\beta_i)\ge0 d i := f ′ ( β i + 1 ) − f ′ ( β i ) ≥ 0 . Convexity gives
2 ≤ f ( β i ) + f ( β i + 1 ) − 2 f ( β i + β i + 1 2 ) ≤ Δ i d i 2 . 2\le f(\beta_i)+f(\beta_{i+1})-2f\left(\frac{\beta_i+\beta_{i+1}}{2}\right)\le\frac{\Delta_i d_i}{2}. 2 ≤ f ( β i ) + f ( β i + 1 ) − 2 f ( 2 β i + β i + 1 ) ≤ 2 Δ i d i .
Since ∑ i = 0 ℓ − 2 Δ i ≤ β max \sum_{i=0}^{\ell-2}\Delta_i\le\beta_{\max} ∑ i = 0 ℓ − 2 Δ i ≤ β m a x and ∑ i = 0 ℓ − 2 d i ≤ h \sum_{i=0}^{\ell-2}d_i\le h ∑ i = 0 ℓ − 2 d i ≤ h , Cauchy–Schwarz yields
ℓ − 1 ≤ 1 2 ∑ i = 0 ℓ − 2 Δ i d i ≤ 1 2 h β max . \ell-1\le\frac{1}{2}\sum_{i=0}^{\ell-2}\sqrt{\Delta_i d_i}\le\frac{1}{2}\sqrt{h\beta_{\max}}. ℓ − 1 ≤ 2 1 i = 0 ∑ ℓ − 2 Δ i d i ≤ 2 1 h β m a x .
This applies to perfectly-balanced schedules and, on the successful event above, to the generated schedule. In particular, h = O ( n ) h=O(n) h = O ( n ) and β max = O ( 1 ) \beta_{\max}=O(1) β m a x = O ( 1 ) give ℓ = O ( n ) \ell=O(\sqrt{n}) ℓ = O ( n ) . When all overlap estimates are accurate, each step advances the temperature and the algorithm finishes within the cap. Thus the stopping checks preserve the success guarantee. On every run, generation uses at most O ~ ( ( 1 + h β max ) ln ( 2 + h β max ) ln ( 2 / p ) ) \widetilde{O}((1+\sqrt{h\beta_{\max}})\ln(2+h\beta_{\max})\ln(2/p)) O (( 1 + h β m a x ) ln ( 2 + h β m a x ) ln ( 2/ p )) TFD preparation queries and no block-encoding calls.
The construction follows Arunachalam et al. [2 ] ; our real-valued setting requires retaining the dependence on E s E_s E s , which is bounded below by one in their integer-valued setting after shifting the ground energy to zero.
Assume that the TFD oracle used for reconstruction also supports the temperatures needed to generate the schedule. For a finite endpoint β \beta β , assign failure probability p / 2 p/2 p /2 to each stage, giving an overall failure probability at most p p p . Since 1 + h β = O ( ℓ + h β ) 1+\sqrt{h\beta}=O(\ell+h\beta) 1 + h β = O ( ℓ + h β ) for ℓ ≥ 1 \ell\ge1 ℓ ≥ 1 , generation is absorbed by the query bounds of Theorems 4.3 and 5.4 when 0 < ϵ ≤ 1 0<\epsilon\le1 0 < ϵ ≤ 1 . The reconstruction query-cost bounds hold for every returned increasing schedule, even if it is not slowly varying. Replacing ℓ \ell ℓ by the deterministic cap therefore also bounds the expected cost of the combined procedure.
Circuit-Level Resource Estimates
A smaller query bound for coherent-temperature reconstruction does not by itself imply a smaller gate count. Each coherent TFD preparation may require more gates than a fixed-temperature preparation, and this additional cost can offset the reduction in oracle calls. We first identify when the query improvement is retained in the gate-count bounds, then give a sufficient condition for implementing coherent TFD preparation with only polylogarithmic overhead relative to fixed-temperature preparation. Throughout this section, we count one- and two-qubit gates, allowing arbitrary single-qubit rotations, and define depth as the number of parallel gate layers. We allow arbitrary pairwise connectivity and the clean workspace specified by each construction.
From query bounds to gate counts
Let G f i x e d G_{\mathrm{fixed}} G fixed and G c o h G_{\mathrm{coh}} G coh be gate-count upper bounds for one fixed-temperature and one coherent-temperature TFD preparation, respectively. We compare chosen implementations at a common preparation accuracy sufficient for both algorithms, using the prescribed canonical TFD convention. The fixed-temperature bound holds uniformly over all queried temperatures. Each bound also applies to the required inverse and controlled versions.
For the same supplied slowly-varying schedule, Theorems 4.3 and 5.4 give the following expected gate-count upper bounds for the TFD part of reconstruction:
Fixed temperature:
O ~ ( ℓ ( ℓ + h β ) ln ( 2 / p ) ϵ G f i x e d ) . \widetilde{O}\left(\frac{\sqrt{\ell(\ell+h\beta)\ln(2/p)}}{\epsilon}G_{\mathrm{fixed}}\right). O ( ϵ ℓ ( ℓ + h β ) ln ( 2/ p ) G fixed ) .
Coherent temperature:
O ~ ( ( ℓ + h β ) ln ( 2 / p ) ϵ G c o h ) . \widetilde{O}\left(\frac{(\ell+h\beta)\ln(2/p)}{\epsilon}G_{\mathrm{coh}}\right). O ( ϵ ( ℓ + h β ) ln ( 2/ p ) G coh ) .
Thus a sufficient condition for retaining the ℓ \sqrt{\ell} ℓ improvement in these bounds, up to polylogarithmic factors, is
G c o h = O ~ ( G f i x e d ) . G_{\mathrm{coh}} = \widetilde{O}(G_{\mathrm{fixed}}). G coh = O ( G fixed ) .
An additional factor of order ℓ \sqrt{\ell} ℓ per coherent preparation can cancel the improvement in the TFD contribution. A strict asymptotic comparison must also account for the suppressed polylogarithmic factors.
The full gate count also includes Hamiltonian block encoding, branch preparation, parameter and QSVT phase loading, arithmetic, and reflections. Assume block-encoding calls have comparable gate costs in both methods. Also assume that, for each method, the total auxiliary cost is at most of the same order as the combined cost of TFD preparation and block encoding. Under these assumptions and the condition above, the ℓ \sqrt{\ell} ℓ improvement also holds for the full gate-count upper bounds, up to polylogarithmic factors. Depth must be analyzed separately, since it also depends on which gates can run in parallel and how many auxiliary qubits are available.
Efficient coherent implementation
Suppose that preparations at m m m temperatures are supplied as known circuits U 0 , … , U m − 1 U_0,\ldots,U_{m-1} U 0 , … , U m − 1 , with gate counts G 0 , … , G m − 1 G_0,\ldots,G_{m-1} G 0 , … , G m − 1 . Their coherent selection acts on a binary index register and a target register as
∣ k ⟩ ∣ φ ⟩ ⟼ ∣ k ⟩ U k ∣ φ ⟩ , 0 ≤ k < m . \lvert k\rangle\lvert\varphi\rangle\longmapsto\lvert k\rangle U_k\lvert\varphi\rangle,\qquad0 \le k < m. ∣ k ⟩ ∣ φ ⟩ ⟼ ∣ k ⟩ U k ∣ φ ⟩ , 0 ≤ k < m .
A direct implementation applies each U k U_k U k controlled on its corresponding index value. Controlling each elementary gate incurs only a constant-factor gate overhead. A unitary compute–uncompute implementation of unary iteration generates the selection flags using O ( m ) O(m) O ( m ) additional gates and O ( log m ) O(\log m) O ( log m ) additional clean selection qubits [3 Section III A] . The resulting construction therefore uses
O ( ∑ k = 0 m − 1 G k + m ) O\left(\sum_{k=0}^{m-1}G_k + m\right) O ( k = 0 ∑ m − 1 G k + m )
gates. Any conversion between temperature encodings and these indices must also be counted.
If G k ≤ G f i x e d G_k \le G_{\mathrm{fixed}} G k ≤ G fixed , this construction gives an O ( m G f i x e d ) O(mG_{\mathrm{fixed}}) O ( m G fixed ) gate-count bound. For circuits of comparable size, the linear selection overhead can cancel the ℓ \sqrt{\ell} ℓ improvement in the TFD gate-count comparison above. This construction assumes known circuit descriptions; uncontrolled access to unknown black-box unitaries does not generally suffice to obtain their controlled versions [1 ] .
A shared circuit structure can reduce this cost by computing the rotation angles from the temperature register. The following proposition gives a sufficient condition.
Proposition 7.1 (Efficient coherent parameterization). Suppose the fixed-temperature preparations share a common sequence of at most G f i x e d G_{\mathrm{fixed}} G fixed gates with fixed gate locations. Each gate is fixed or a rotation e − i ϕ P / 2 e^{-i\phi P/2} e − i ϕP /2 , where P P P is a fixed one- or two-qubit Pauli operator and only the angle ϕ \phi ϕ depends on temperature. Let b b b be the number of bits used to encode the temperature and each angle, with angles represented modulo 4 π 4\pi 4 π . Assume each encoded angle can be computed reversibly from the temperature using poly ( b ) \operatorname{poly}(b) poly ( b ) gates and clean work qubits, uniformly over all gate locations. Then the encoded family admits a coherent implementation with
G c o h = O ( G f i x e d poly ( b ) ) . G_{\mathrm{coh}} = O\left(G_{\mathrm{fixed}}\operatorname{poly}(b)\right). G coh = O ( G fixed poly ( b ) ) . The additional parameter workspace uses poly ( b ) \operatorname{poly}(b) poly ( b ) qubits and returns to zero. The inverse and controlled versions satisfy the same bound.
Proof. For each temperature-dependent gate, compute its angle into a clean register. Implement the rotation as a product of O ( b ) O(b) O ( b ) fixed rotations controlled by the angle bits, then reverse the angle computation. Reuse the workspace for the next gate. This costs poly ( b ) \operatorname{poly}(b) poly ( b ) gates per original gate and preserves the temperature register, so the construction also acts coherently on superpositions of temperatures. Reversing the circuit gives its inverse; controlling its elementary gates changes the gate count by only a constant factor. □
Angle rounding contributes O ( G f i x e d 2 − b ) O(G_{\mathrm{fixed}}2^{-b}) O ( G fixed 2 − b ) operator-norm error per branch. Because the temperature register is preserved, the error of the coherent implementation is the largest branch error. If the required temperature and preparation accuracies can be achieved with b b b polylogarithmic in the problem size and inverse accuracy, the proposition gives G c o h = O ~ ( G f i x e d ) G_{\mathrm{coh} }=\widetilde{O}(G_{\mathrm{fixed}}) G coh = O ( G fixed ) , as required for the preceding comparison.
The next section uses a shared temperature-dependent preparation procedure for spin chains, with polylogarithmic-length parameter encodings, to construct coherent TFD access at comparable gate cost. It also includes the block-encoding and auxiliary costs to obtain gate-count and depth bounds. The construction and precision requirements are given in Appendix § 19 .
Application: one-dimensional partition-function estimation
Consider an open chain of n n n qubits with explicitly specified interactions of bounded range, bounded term norm, and bounded number of terms per site. The interactions need not commute or be translation invariant. All queried inverse temperatures lie in [ 0 , β max ] [0,\beta_{\max}] [ 0 , β m a x ] , where β max > 0 \beta_{\max}>0 β m a x > 0 is fixed independently of n n n . Local coefficients are available to the required precision. We use the circuit architecture of § 7 .
One-dimensional thermal states admit matrix-product operator approximations that accurately reproduce local observables [15 Theorem 2] . Here we instead use preparation of the full canonical TFD. At each fixed finite inverse temperature, this state can be prepared to trace-distance error η \eta η with depth polylog ( 2 n / η ) \operatorname{polylog}(2n/\eta) polylog ( 2 n / η ) and size n polylog ( 2 n / η ) n\operatorname{polylog}(2n/\eta) n polylog ( 2 n / η ) [5 Corollary I.1 and Appendix C] .
This preparation has a common structure that supports a coherent temperature input. Let H t \mathcal{H}_t H t denote the parent Hamiltonian whose ground state is the canonical TFD at inverse temperature t t t . For endpoint temperature θ \theta θ , the quasi-adiabatic construction uses the path s ↦ H s θ s\mapsto\mathcal{H}_{s\theta} s ↦ H s θ , 0 ≤ s ≤ 1 0\le s\le1 0 ≤ s ≤ 1 . Uniform gap and locality bounds on [ 0 , β max ] [0,\beta_{\max}] [ 0 , β m a x ] allow the block sizes, simulation cutoffs, and error tolerances to be chosen independently of θ \theta θ [5 Section VII and Appendix C] . The local simulations use temperature-controlled block encodings of the parent Hamiltonian and its derivative [8 v2, Lemmas C.5 and C.6] . For the chosen path, these are evaluated at s θ s\theta s θ , with ∂ s H s θ = θ H s θ ′ \partial_s\mathcal{H}_{s\theta}=\theta\mathcal{H}'_{s\theta} ∂ s H s θ = θ H s θ ′ . Reversibly computing these parameters lets the same subroutines act coherently on the endpoint temperature, with polynomial arithmetic overhead in the parameter bit length and no multiplicative factor equal to the number of supported temperatures. This gives a concrete realization of inexpensive coherent access as discussed in § 7 .
Proposition 8.1 (Coherent TFD preparation for spin chains). Fix 0 < η < 1 0<\eta<1 0 < η < 1 . For the chains above and inverse temperatures θ ∈ [ 0 , β max ] \theta\in[0,\beta_{\max}] θ ∈ [ 0 , β m a x ] represented with O ( log ( 2 n / η ) ) O(\log(2n/\eta)) O ( log ( 2 n / η )) bits, there is a temperature-preserving unitary satisfying
∥ U ~ c o h T F D ∣ θ ⟩ ∣ 0 ⟩ − ∣ θ ⟩ ∣ ψ θ ⟩ ∣ 0 ⟩ a u x ∥ 2 ≤ η , \left\|\widetilde{U}_{\mathrm{cohTFD}}|\theta\rangle|0\rangle-|\theta\rangle|\psi_\theta\rangle|0\rangle_{\mathrm{aux}}\right\|_2\le\eta, U cohTFD ∣ θ ⟩ ∣0 ⟩ − ∣ θ ⟩ ∣ ψ θ ⟩ ∣0 ⟩ aux 2 ≤ η , where ∣ ψ θ ⟩ |\psi_\theta\rangle ∣ ψ θ ⟩ is the canonical TFD of Definition 3.1 , and aux contains all additional preparation workspace. The bound also holds for normalized superpositions of temperature labels. The circuit, its inverse, and its controlled version use n polylog ( 2 n / η ) n\operatorname{polylog}(2n/\eta) n polylog ( 2 n / η ) gates and auxiliary qubits, with depth polylog ( 2 n / η ) \operatorname{polylog}(2n/\eta) polylog ( 2 n / η ) . The constants depend on β max \beta_{\max} β m a x and the interaction bounds.
The proof, including temperature rounding and workspace errors, is in Appendix § 19 , Subsection I.1. No gap assumption on the physical Hamiltonian is required. Fixing the temperature input gives the fixed-temperature preparation with the same resource bounds.
A known scalar shift gives 0 ⪯ H ⪯ h I 0\preceq H\preceq hI 0 ⪯ H ⪯ h I with a chosen bound h = Θ ( n ) h=\Theta(n) h = Θ ( n ) , without changing the TFD. A block encoding with α = Θ ( n ) \alpha=\Theta(n) α = Θ ( n ) and the auxiliary reconstruction operations have O ~ ( n ) \widetilde{O}(n) O ( n ) gate cost and polylogarithmic depth per primitive; see Appendix § 19 , Subsection I.2.
Corollary 8.2 (Circuit bounds for interacting spin chains). For the chains and architecture above, let 0 < ϵ ≤ 1 0<\epsilon\le1 0 < ϵ ≤ 1 , 0 < p < 1 0<p<1 0 < p < 1 , and 0 < β ≤ β max 0<\beta\le\beta_{\max} 0 < β ≤ β m a x . Suppose a C C C -slowly-varying schedule is supplied with ℓ = O ~ ( n ) \ell=\widetilde{O}(\sqrt{n}) ℓ = O ( n ) , C = O ( 1 ) C=O(1) C = O ( 1 ) , and polylogarithmic-length parameter encodings at the required precision. Both reconstruction methods estimate
f ( β ) = ln Z ( β ) f(\beta)=\ln Z(\beta) f ( β ) = ln Z ( β ) to additive error ϵ \epsilon ϵ , with failure probability at most p p p . They admit implementations with the following expected resource upper bounds:
Table 8.
These bounds include auxiliary, controlled, and inverse operations. They measure quantum circuit resources, with classical circuit compilation treated as preprocessing. The notation O ~ \widetilde{O} O suppresses polylogarithmic implementation factors in n n n , 1 / ϵ 1/\epsilon 1/ ϵ , and 1 / p 1/p 1/ p .
Proof. Use Proposition 8.1 with a classical or coherent temperature input. Substitute its costs and the auxiliary costs in Appendix § 19 into Theorems 4.3 and 5.4 . Choose the preparation accuracy as in Appendix § 15 , together with the numerical error budgets in Appendix § 19 . All additional precision costs are polylogarithmic.
For this class, implementing coherent access preserves the smaller reconstruction upper bound. The displayed bounds differ by n 1 / 4 n^{1/4} n 1/4 , up to polylogarithmic factors. This compares two implementations on the same model class and supplied schedule, not the optimal costs of the access models or a separation from classical methods. In particular, the depth bounds do not optimize every possible parallel execution of the independent fixed-temperature estimates.
Discussion and Conclusion
We have extended adaptive quantum algorithms for partition-function estimation with Heisenberg scaling from classical Gibbs distributions to general quantum Hamiltonians. Existing quantum speedups for this problem, from quantum mean estimation [19 ] and adaptive annealing [2 , 12 ] to nearly unbiased product estimation [10 ] , rely on coherent evaluation of classical energies and, in several cases, on integer-valued spectra. Neither assumption holds for a Hamiltonian accessed through a block encoding, and resolving individual energy levels would require additional spectral precision. Removing these assumptions required new machinery: a recursive-doubling identity that expresses each schedule increment through thermofield-double overlaps and short imaginary-time reweighting steps, whose probabilities stay bounded away from zero along a slowly-varying schedule; a variance-sensitive allocation of estimation depths for fixed-temperature access; a coherent inverse-binomial estimator for logarithms of success probabilities; and an analysis of adaptive cooling schedules for real-valued spectra. All resulting estimators retain Heisenberg scaling in the precision.
For extensive Hamiltonians at constant inverse temperature, coherent-temperature reconstruction attains the optimal O ~ ( n / ϵ ) \widetilde{O}(n/\epsilon) O ( n / ϵ ) block-encoding query complexity in the hidden-offset model (Corollary 5.5 ). The fixed-temperature bound remains a factor of n 1 / 4 n^{1/4} n 1/4 above this benchmark, up to polylogarithmic factors.
Several questions remain open. The most immediate is whether the gap between the two access models is fundamental. Coherent-temperature access can be costly to implement in general. We constructed it efficiently for one-dimensional spin chains, but it would be desirable either to remove this requirement altogether or to improve the fixed-temperature algorithm so that it approaches the O ~ ( n / ϵ ) \widetilde{O}(n/\epsilon) O ( n / ϵ ) scaling. Conversely, a lower bound separating the two models would show that coherent temperature control is a genuine resource for this problem.
A second direction concerns thermodynamic integration, which expresses the log partition function as an integral of the mean energy,
f ( β ) − f ( 0 ) = − ∫ 0 β Tr ( H ρ t ) d t . f(\beta)-f(0)=-\int_{0}^{\beta}\operatorname{Tr}(H\rho_t)\,\mathrm{d}t. f ( β ) − f ( 0 ) = − ∫ 0 β Tr ( H ρ t ) d t .
With coherent temperature access, the integration variable can be sampled in superposition and the integrand estimated through the block encoding. Quantum mean estimation should then give scaling similar to ours in some regimes. The two approaches rely on different resources. Thermodynamic integration needs no cooling schedule, but it requires coherent access across a fine grid of temperatures spanning the whole interval. Our reconstruction needs only the temperatures of a short slowly-varying schedule. It would be interesting to compare the two more closely, both in their constants and variances and in their practical performance on concrete Hamiltonians.
Acknowledgements
We thank Aram Harrow, Cambyse Rouzé, Kristan Temme, Alvaro Alhambra, Matteo Scandi and Pawel Wocjan for interesting discussions. D.S.F. acknowledges financial support from the Novo Nordisk Foundation (Grant No. NNF20OC0059939 Quantum for Life) and from the ERC grant GIFNEQ 101163938. Yufei Wang acknowledges support from the Danish e-Infrastructure Consortium (DeiC) through a PhD scholarship in quantum algorithms and quantum software, grant no. 5259-00016B. This project was funded within the QuantERA II Programme that has received funding from the EU’s H2020 research and innovation programme under the GA No 101017733.
Use of artificial intelligence. OpenAI Codex with ChatGPT 5.6 and 6 Astra assisted with exploring and checking proof strategies, and with preparing the manuscript. In particular, it played a central role in the construction of the coherent temperature algorithm. The current organisation and exposition of the proofs are due to the authors. The authors are responsible for the mathematical claims, the final presentation, and any remaining errors.
A linear lower bound from hidden energy normalization
We prove a lower bound on block-encoding queries when the absolute energy offset is available only through the block encoding. A scalar energy shift changes the partition function but leaves normalized thermal states unchanged. Resolving this shift gives a lower bound proportional to the block-encoding normalization, and hence an Ω ( n β / ϵ ) \Omega(n\beta/\epsilon) Ω ( n β / ϵ ) bound for extensive normalization. We first bound how well an algorithm can distinguish two nearby oracles.
Lemma A.1 (Hybrid bound for query algorithms). Let A A A be a quantum algorithm that makes q q q queries, each of which may be a unitary oracle, its adjoint, or a controlled version, interleaved with oracle-independent operations. If the two possible unitary oracles are U U U and V V V , then the final pure states satisfy
∥ ∣ ψ U ⟩ − ∣ ψ V ⟩ ∥ ≤ q ∥ U − V ∥ . \lVert|\psi_U\rangle- |\psi_V\rangle\rVert\le q\lVert U-V\rVert. ∥ ∣ ψ U ⟩ − ∣ ψ V ⟩∥ ≤ q ∥ U − V ∥ .
Proof. By deferred measurement, the algorithm may be purified without changing its query count. Insert the standard sequence of hybrids in which the first r r r oracle calls use U U U and the remaining calls use V V V . For adjoint queries, ∥ U † − V † ∥ = ∥ U − V ∥ \lVert U^\dagger-V^\dagger\rVert=\lVert U-V\rVert ∥ U † − V † ∥ = ∥ U − V ∥ , and adding a control does not change this norm. Neighboring hybrids therefore differ by at most ∥ U − V ∥ \lVert U-V\rVert ∥ U − V ∥ . Summing the q q q neighboring distances proves the claim.
Lemma A.2 (Distinguishing consequence). If a valid estimator forces some measurement event to have probabilities differing by at least 1 / 3 1/3 1/3 on two inputs, then the corresponding final states have Euclidean distance at least 1 / 3 1/3 1/3 .
Proof. For any measurement event, the probability difference is bounded by the trace distance of the two final states. For pure states, the trace distance is at most the Euclidean distance.
Theorem A.3 (Nontrivial spectrum plus hidden offset). Let D ≥ 2 D\ge2 D ≥ 2 and h , α , β > 0 h,\alpha,\beta>0 h , α , β > 0 , and fix a known, non-scalar Hamiltonian A A A satisfying
0 ⪯ A ⪯ min { h , α } 4 I D . 0\preceq A\preceq\frac{\min\{h,\alpha\}}{4}I_D. 0 ⪯ A ⪯ 4 min { h , α } I D . For 0 ≤ c ≤ min { h , α } / 4 0\le c\le\min\{h,\alpha\}/4 0 ≤ c ≤ min { h , α } /4 , define
H c = A + c I D . H_c=A+cI_D. H c = A + c I D . Every Hamiltonian in this family satisfies 0 ⪯ H c ≤ h I D 0\preceq H_c\le hI_D 0 ⪯ H c ≤ h I D . Suppose that the only input interface depending on c c c is the exact α \alpha α -block encoding
U c = ( M c α I − M c 2 I − M c 2 − M c ) , M c : = H c α . U_c=
\begin{pmatrix}
\frac{M_c}{\alpha} & \sqrt{I-M_c^2}\\
\sqrt{I-M_c^2} & -M_c
\end{pmatrix},
\qquad
M_c:=\frac{H_c}{\alpha}. U c = ( α M c I − M c 2 I − M c 2 − M c ) , M c := α H c .
The algorithm may know A A A and may receive, at no query cost, fixed-temperature or parameter-controlled TFD preparation unitaries, their adjoints, and their controlled versions at arbitrary inverse temperatures. It may also receive any other auxiliary operations. The purification convention, the unitary extensions of all TFD preparations, and every other freely supplied operation are required to be independent of c c c .
Any algorithm that outputs an additive-ϵ \epsilon ϵ estimate of
f c = ln Z H c ( β ) f_c = \ln Z_{H_c}(\beta) f c = ln Z H c ( β )
with probability at least 2 / 3 2/3 2/3 , uniformly over this family, must make
q = Ω ( α β ϵ ) q = \Omega\left(\frac{\alpha\beta}{\epsilon}\right) q = Ω ( ϵ α β )
queries to U c U_c U c or U c † U_c^\dagger U c † , with controlled queries counted in the same way, provided
0 < ϵ ≤ β min { h , α } 16 . 0 < \epsilon\le\frac{\beta\min\{h,\alpha\}}{16}. 0 < ϵ ≤ 16 β min { h , α } .
The same asymptotic lower bound holds for the worst-case expected number of block-encoding queries when the query count is random.
Proof. The spectrum of H c H_c H c is the spectrum of A A A shifted by c c c , and
Z H c ( β ) = e − β c Z A ( β ) , f c = ln Z A ( β ) − β c . Z_{H_c}(\beta) = e^{-\beta c} Z_A(\beta), \qquad f_c = \ln Z_A(\beta) - \beta c. Z H c ( β ) = e − β c Z A ( β ) , f c = ln Z A ( β ) − β c .
However, for every inverse temperature θ ≥ 0 \theta\ge0 θ ≥ 0 , the normalized Gibbs state satisfies
ρ H c ( θ ) = e − θ ( A + c I D ) Z H c ( θ ) = e − θ A Z A ( θ ) = ρ A ( θ ) . \rho_{H_c}(\theta) = \frac{e^{-\theta(A+cI_D)}}{Z_{H_c}(\theta)} = \frac{e^{-\theta A}}{Z_A(\theta)} = \rho_A(\theta). ρ H c ( θ ) = Z H c ( θ ) e − θ ( A + c I D ) = Z A ( θ ) e − θ A = ρ A ( θ ) .
Hence fixed-temperature and parameter-controlled TFD preparations can be chosen with a common purification convention and unitary extension that are independent of c c c . Even free coherent TFD access at all temperatures therefore does not reveal the unknown offset.
Choose
c 0 = 0 , c 1 = 4 ϵ β . c_0 = 0, \qquad c_1 = \frac{4\epsilon}{\beta}. c 0 = 0 , c 1 = β 4 ϵ .
The assumption ϵ ≤ β min { h , α } / 16 \epsilon\le\beta\min\{h,\alpha\}/16 ϵ ≤ β min { h , α } /16 ensures that c 1 ≤ min { h , α } / 4 c_1 \le\min\{h,\alpha\}/4 c 1 ≤ min { h , α } /4 , so both inputs belong to the family and satisfy 0 ⪯ H c i ⪯ h I D 0 \preceq H_{c_i} \preceq hI_D 0 ⪯ H c i ⪯ h I D . The two target values differ by
∣ f c 1 − f c 0 ∣ = β ( c 1 − c 0 ) = 4 ϵ . \lvert f_{c_1} - f_{c_0} \rvert= \beta(c_1-c_0) = 4\epsilon. ∣ f c 1 − f c 0 ∣ = β ( c 1 − c 0 ) = 4 ϵ .
Let m = ( f c 0 + f c 1 ) / 2 m=(f_{c_0}+f_{c_1})/2 m = ( f c 0 + f c 1 ) /2 . On input c 0 c_0 c 0 , every output within ϵ \epsilon ϵ of f c 0 f_{c_0} f c 0 lies above m m m , whereas on input c 1 c_1 c 1 , every output within ϵ \epsilon ϵ of f c 1 f_{c_1} f c 1 lies below m m m . Therefore the event that the output exceeds m m m has probabilities differing by at least 1 / 3 1/3 1/3 on the two inputs. By Lemma A.2 , the corresponding final states have Euclidean distance at least 1 / 3 1/3 1/3 .
It remains to bound the distance between the two block-encoding oracles. Since
0 ⪯ H c ⪯ min { h , α } 2 I D ⪯ α 2 I D , 0 \preceq H_c \preceq\frac{\min\{h,\alpha\}}{2}I_D \preceq\frac{\alpha}{2}I_D, 0 ⪯ H c ⪯ 2 min { h , α } I D ⪯ 2 α I D ,
the spectrum of M c M_c M c is contained in [ 0 , 1 / 2 ] [0,1/2] [ 0 , 1/2 ] . Define
u ( x ) = ( x 1 − x 2 1 − x 2 1 − x 2 − x ) , 0 ≤ x ≤ 1 2 . u(x)=\begin{pmatrix}
\frac{x}{\sqrt{1-x^2}} & \sqrt{1-x^2} \\
\sqrt{1-x^2} & -x
\end{pmatrix}, \qquad0 \le x \le\frac{1}{2}. u ( x ) = ( 1 − x 2 x 1 − x 2 1 − x 2 − x ) , 0 ≤ x ≤ 2 1 .
Its derivative is
u ′ ( x ) = ( 1 − x 1 − x 2 − x 1 − x 2 − 1 ) , u'(x)=\begin{pmatrix} 1 & -\frac{x}{\sqrt{1-x^2}} \\ -\frac{x}{\sqrt{1-x^2}} & -1 \end{pmatrix}, u ′ ( x ) = ( 1 − 1 − x 2 x − 1 − x 2 x − 1 ) ,
and hence
∥ u ′ ( x ) ∥ = 1 1 − x 2 ≤ 2 3 < 2. \lVert u'(x)\rVert=\frac{1}{\sqrt{1-x^2}}\le\frac{2}{\sqrt{3}}<2. ∥ u ′ ( x )∥ = 1 − x 2 1 ≤ 3 2 < 2.
Because all operators M c M_c M c are functions of the fixed Hamiltonian A A A , they are simultaneously diagonalizable. Applying the scalar mean-value bound in their common eigenbasis gives
∥ U c 1 − U c 0 ∥ ≤ 2 ∣ c 1 − c 0 ∣ α . \lVert U_{c_1}-U_{c_0}\rVert\le\frac{2|c_1-c_0|}{\alpha}. ∥ U c 1 − U c 0 ∥ ≤ α 2∣ c 1 − c 0 ∣ .
The same bound holds for adjoint and controlled queries. By Lemmas A.1 and A.2 ,
1 3 ≤ q ∥ U c 1 − U c 0 ∥ ≤ q 2 ( c 1 − c 0 ) α = q 8 ϵ α β . \frac{1}{3}\le q\lVert U_{c_1}-U_{c_0}\rVert\le q\frac{2(c_1-c_0)}{\alpha}=q\frac{8\epsilon}{\alpha\beta}. 3 1 ≤ q ∥ U c 1 − U c 0 ∥ ≤ q α 2 ( c 1 − c 0 ) = q α β 8 ϵ .
Thus
q ≥ α β 24 ϵ . q\ge\frac{\alpha\beta}{24\epsilon}. q ≥ 24 ϵ α β .
To extend the bound to a random query count, let T T T be the number of block-encoding queries made by the algorithm, and set Q : = max { E c 0 [ T ] , E c 1 [ T ] } Q:=\max\{\mathbb{E}_{c_0}[T],\mathbb{E}_{c_1}[T]\} Q := max { E c 0 [ T ] , E c 1 [ T ]} . If Q = ∞ Q=\infty Q = ∞ , the claim is immediate. Otherwise, truncate the algorithm before its ( q + 1 ) (q+1) ( q + 1 ) -st query, where q : = ⌊ 12 Q ⌋ q:=\lfloor12Q\rfloor q := ⌊ 12 Q ⌋ , and return an arbitrary estimate if it is truncated. For either input, Markov’s inequality gives
Pr [ T > q ] ≤ E [ T ] q + 1 ≤ Q ⌊ 12 Q ⌋ + 1 < 1 12 . \Pr[T>q]\le\frac{\mathbb{E}[T]}{q+1}\le\frac{Q}{\lfloor12Q\rfloor+1}<\frac{1}{12}. Pr [ T > q ] ≤ q + 1 E [ T ] ≤ ⌊ 12 Q ⌋ + 1 Q < 12 1 .
The truncated algorithm therefore succeeds with probability at least 7 / 12 7/12 7/12 on each input. The event that its output exceeds m m m then has probabilities differing by at least 1 / 6 1/6 1/6 . As in Lemma A.2 , this probability difference lower-bounds the Euclidean distance between purified final states. The hybrid bound consequently gives
1 6 ≤ q 1 α β ≤ 8 ϵ α β , Q ≥ α β 576 ϵ . \frac{1}{6}\le q\frac{1}{\alpha\beta}\le\frac{8\epsilon}{\alpha\beta},\qquad Q\ge\frac{\alpha\beta}{576\epsilon}. 6 1 ≤ q α β 1 ≤ α β 8 ϵ , Q ≥ 576 ϵ α β .
Since Q Q Q is bounded above by the worst-case expected query count over the family, this proves the expected-query lower bound.
Corollary A.4 (Linear lower bound for extensive block encodings). Let h = Θ ( n ) h=\Theta(n) h = Θ ( n ) , α = Θ ( n ) \alpha=\Theta(n) α = Θ ( n ) , and β > 0 \beta>0 β > 0 . Consider the hidden-offset family and input model of Theorem A.3 with D = 2 n D=2^n D = 2 n . Every Hamiltonian in this family satisfies 0 ⪯ H c ⪯ h I 0\preceq H_c\preceq hI 0 ⪯ H c ⪯ h I . Any algorithm that estimates ln Z H c ( β ) \ln Z_{H_c}(\beta) ln Z H c ( β ) to additive error ϵ \epsilon ϵ , with success probability at least 2 / 3 2/3 2/3 for every member of the family, requires
Ω ( n β ϵ ) \Omega\left(\frac{n\beta}{\epsilon}\right) Ω ( ϵ n β ) block-encoding queries in worst-case expectation, provided
0 < ϵ ≤ β min { h , α } 16 . 0<\epsilon\le\frac{\beta\min\{h,\alpha\}}{16}. 0 < ϵ ≤ 16 β min { h , α } . The bound holds even with free fixed-temperature and parameter-controlled TFD preparations, subject to the offset-independence conditions in that theorem. In particular, for β = Θ ( 1 ) \beta=\Theta(1) β = Θ ( 1 ) and the same accuracy condition, the lower bound is
Ω ( n ϵ ) . \Omega\left(\frac{n}{\epsilon}\right). Ω ( ϵ n ) .
Proof. Apply Theorem A.3 with D = 2 n D = 2^n D = 2 n . Under the stated accuracy condition, it gives
q = Ω ( α β ϵ ) = Ω ( n β ϵ ) , q = \Omega\left(\frac{\alpha\beta}{\epsilon}\right) = \Omega\left(\frac{n\beta}{\epsilon}\right), q = Ω ( ϵ α β ) = Ω ( ϵ n β ) ,
where the second equality uses α = Θ ( n ) \alpha= \Theta(n) α = Θ ( n ) . The constant-temperature statement follows by taking β = Θ ( 1 ) \beta= \Theta(1) β = Θ ( 1 ) . □
Remark A.5 (Interpretation of the offset lower bound). The lower bound uses an unknown absolute offset. It therefore applies in the generic block-encoding model whenever the absolute ground energy is not separately supplied, even if a non-tight lower bound on that energy is known. It does not apply to a stronger input model that promises and enforces an exact normalization such as λ min ( H ) = 0 \lambda_{\min}(H) = 0 λ m i n ( H ) = 0 .
The bound concerns N B E N_{\mathrm{BE}} N BE ; it places no lower bound on N T F D N_{\mathrm{TFD}} N TFD , N c o h T F D N_{\mathrm{cohTFD}} N cohTFD , total gate count, or circuit depth.
The common h β h\beta h β scale has different roles in the two arguments. In the upper bounds it controls the repeated halving of schedule intervals needed to keep δ i ∥ H ∥ = O ( 1 ) \delta_i\lVert H\rVert= O(1) δ i ∥ H ∥ = O ( 1 ) . In the lower bound it arises because an offset changes f ( β ) f(\beta) f ( β ) by β c \beta c β c while perturbing an α \alpha α -block encoding by only O ( c / α ) O(c/\alpha) O ( c / α ) .
Proofs for fixed-temperature reconstruction
This appendix proves the local logarithmic bounds and the variable-depth reconstruction used in § 4 . Every local branch is chosen classically. No coherent superposition over temperatures or doubling levels is used.
QSVT implementation of the imaginary-time step
The reweighting terms use a block encoding of the scaled imaginary-time operator e − 1 e − δ H / 2 e^{-1}e^{-\delta H/2} e − 1 e − δ H /2 . The fixed scale ensures that the approximating polynomial is bounded on the full interval [ − 1 , 1 ] [-1,1] [ − 1 , 1 ] , as required by QSVT. Its effect on the reweighting logarithm is the known additive correction 2.
Let S S S denote the system register on which H H H acts, and suppose that U H U_H U H is an exact α \alpha α -block encoding of H H H . Let A A A contain both the original block-encoding ancillas and the two additional ancilla qubits used by the polynomial transformation, and let a a a be the total number of qubits in A A A . Padding U H U_H U H with the identity on the additional qubits, we have
( ⟨ 0 a ∣ A ⊗ I S ) U H ( ∣ 0 a ⟩ A ⊗ I S ) = H / α , \left(\langle0^a|_A \otimes I_S\right)U_H\left(|0^a\rangle_A \otimes I_S\right) = H/\alpha, ( ⟨ 0 a ∣ A ⊗ I S ) U H ( ∣ 0 a ⟩ A ⊗ I S ) = H / α ,
where ∣ 0 a ⟩ A |0^a\rangle_A ∣ 0 a ⟩ A is the all-zero state of A A A .
Lemma B.1 (Block encoding of the imaginary-time step). Let δ ≥ 0 \delta\ge0 δ ≥ 0 and 0 < ν < 1 0 < \nu< 1 0 < ν < 1 . There exists a unitary D δ D_\delta D δ acting on A ⊗ S A \otimes S A ⊗ S such that
( ⟨ 0 a ∣ A ⊗ I S ) D δ ( ∣ 0 a ⟩ A ⊗ I S ) = A ~ δ , ∥ A ~ δ − e − 1 e − δ H / 2 ∥ ≤ ν . \left(\langle0^a|_A \otimes I_S\right)D_\delta\left(|0^a\rangle_A \otimes I_S\right) = \widetilde{A}_\delta,\qquad\left\|\widetilde{A}_\delta-e^{-1}e^{-\delta H/2}\right\| \le\nu. ( ⟨ 0 a ∣ A ⊗ I S ) D δ ( ∣ 0 a ⟩ A ⊗ I S ) = A δ , A δ − e − 1 e − δ H /2 ≤ ν . The unitary D δ D_\delta D δ uses
q = O ( ( 1 + α δ ) log ( 2 / ν ) ) q = O\left((1+\alpha\delta)\log(2/\nu)\right) q = O ( ( 1 + α δ ) log ( 2/ ν ) ) queries to U H U_H U H , U H † U_H^\dagger U H † , and their controlled versions. In particular, if α = Θ ( h ) \alpha= \Theta(h) α = Θ ( h ) and h δ ≤ 1 h\delta\le1 h δ ≤ 1 , then q = O ( log ( 2 / ν ) ) q = O(\log(2/\nu)) q = O ( log ( 2/ ν )) . Hence q = O ~ ( 1 ) q = \widetilde{O}(1) q = O ( 1 ) when ν \nu ν is inverse polynomial in the reconstruction parameters.
Proof. Set t : = α δ / 2 t := \alpha\delta/2 t := α δ /2 . If t = 0 t = 0 t = 0 , a single-qubit rotation implements the block e − 1 I e^{-1}I e − 1 I without oracle queries. For t > 0 t > 0 t > 0 , set
s : = min { 1 , 1 4 t } , ϵ ∗ : = min { ν 2 , 1 80 } . s := \min\left\{1,\frac{1}{4t}\right\},\qquad\epsilon_* := \min\left\{\frac{\nu}{2},\frac{1}{80}\right\}. s := min { 1 , 4 t 1 } , ϵ ∗ := min { 2 ν , 80 1 } .
The function g ( x ) : = e − 1 − t x g(x) := e^{-1-tx} g ( x ) := e − 1 − t x has Taylor coefficients c k = e − 1 − t ( − t ) k / k ! c_k=e^{-1-t}(-t)^k/k! c k = e − 1 − t ( − t ) k / k ! about x = 1 x=1 x = 1 , satisfying
∑ k = 0 ∞ ( 1 + s ) k ∣ c k ∣ = e − 1 + t s ≤ e − 3 / 4 < 19 40 . \sum_{k=0}^{\infty}(1+s)^k|c_k|=e^{-1+ts}\le e^{-3/4}<\frac{19}{40}. k = 0 ∑ ∞ ( 1 + s ) k ∣ c k ∣ = e − 1 + t s ≤ e − 3/4 < 40 19 .
Apply [11 Corollary 66] with x 0 = r = 1 x_0=r=1 x 0 = r = 1 , extension parameter s s s , coefficient bound 19 / 40 19/40 19/40 , and accuracy ε ∗ \varepsilon_* ε ∗ . Taking the real part of the resulting polynomial gives P ∈ R [ x ] P\in\mathbb{R}[x] P ∈ R [ x ] such that
sup x ∈ [ 0 , 1 ] ∣ P ( x ) − e − 1 − t x ∣ ≤ ε ∗ , sup x ∈ [ − 1 , 1 ] ∣ P ( x ) ∣ < 19 40 + ε ∗ < 1 2 . \sup_{x\in[0,1]}|P(x)-e^{-1-tx}|\le\varepsilon_*,\qquad\sup_{x\in[-1,1]}|P(x)|<\frac{19}{40}+\varepsilon_*<\frac{1}{2}. x ∈ [ 0 , 1 ] sup ∣ P ( x ) − e − 1 − t x ∣ ≤ ε ∗ , x ∈ [ − 1 , 1 ] sup ∣ P ( x ) ∣ < 40 19 + ε ∗ < 2 1 .
with degree
d = O ( s − 1 log ( 1 / ε ∗ ) ) = O ( ( 1 + α δ ) log ( 2 / ν ) ) . d=O\left(s^{-1}\log(1/\varepsilon_*)\right)=O\left((1+\alpha\delta)\log(2/\nu)\right). d = O ( s − 1 log ( 1/ ε ∗ ) ) = O ( ( 1 + α δ ) log ( 2/ ν ) ) .
By [11 Theorem 56] , the exact block encoding of H / α H/\alpha H / α can therefore be transformed into a block encoding of P ( H / α ) P(H/\alpha) P ( H / α ) with error at most ν / 2 \nu/2 ν /2 , using O ( d ) O(d) O ( d ) queries to U H U_H U H , U H † U_H^\dagger U H † , and their controlled versions. The two additional ancilla qubits required by this construction are included in A A A . Since the spectrum of H / α H/\alpha H / α lies in [ 0 , 1 ] [0,1] [ 0 , 1 ] , the resulting all-zero block satisfies
∥ A ~ δ − e − 1 e − δ H / 2 ∥ ≤ ν 2 + ε ∗ < ν . \left\|\widetilde{A}_{\delta}-e^{-1}e^{-\delta H/2}\right\|\le\frac{\nu}{2}+\varepsilon_*<\nu. A δ − e − 1 e − δ H /2 ≤ 2 ν + ε ∗ < ν .
This proves the approximation and query bounds.
Nondestructive amplitude estimation and local logarithmic bounds
We first record the amplitude-estimation result used by Algorithm 1.
Theorem B.2 (Nondestructive unbiased amplitude estimation; Cornelissen–Hamoudi). [10 Theorem 2.4] Let ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ be a quantum state and let Π \Pi Π be a projector with p = ∥ Π ∣ ψ ⟩ ∥ 2 p=\|\Pi|\psi\rangle\|^2 p = ∥Π∣ ψ ⟩ ∥ 2 . Given t > 4 t>4 t > 4 and ϵ ∈ ( 0 , 1 ) \epsilon\in(0,1) ϵ ∈ ( 0 , 1 ) , the algorithm NdUb-Amplitude( ∣ ψ ⟩ , Π , t , ϵ ) (|\psi\rangle,\Pi,t,\epsilon) ( ∣ ψ ⟩ , Π , t , ϵ ) of Cornelissen and Hamoudi [10 Algorithm 3] outputs p ~ ∈ [ − 2 π , 2 π ] \widetilde{p}\in[-2\pi,2\pi] p ∈ [ − 2 π , 2 π ] such that
∣ E [ p ~ ] − p ∣ ≤ ϵ , Var ( p ~ ) ≤ 91 p t 2 + ϵ . |\mathbb{E}[\widetilde{p}]-p|\le\epsilon,\qquad\operatorname{Var}(\widetilde{p})\le\frac{91p}{t^2}+\epsilon. ∣ E [ p ] − p ∣ ≤ ϵ , Var ( p ) ≤ t 2 91 p + ϵ . It uses one copy of ∣ ψ ⟩ |\psi\rangle ∣ ψ ⟩ , which is restored at the end with probability at least 1 − ϵ 1-\epsilon 1 − ϵ , and an expected O ( t log log t log ( t / ϵ ) ) O(t\log\log t\log(t/\epsilon)) O ( t log log t log ( t / ϵ )) applications of the reflections I − 2 ∣ ψ ⟩ ⟨ ψ ∣ I-2|\psi\rangle\langle\psi| I − 2∣ ψ ⟩ ⟨ ψ ∣ and I − 2 Π I-2\Pi I − 2Π .
In Algorithm 1, we set t = M t=M t = M and use η \eta η as the internal accuracy parameter. Writing c v : = 91 c_v:=91 c v := 91 and denoting the resulting estimate by p ^ M , η \widehat{p}_{M,\eta} p M , η , Theorem B.2 gives
∣ E [ p ^ M , η ] − p ∣ ≤ η , Var ( p ^ M , η ) ≤ c v p M 2 + η ≤ c v M 2 + η . (21) |\mathbb{E}[\widehat{p}_{M,\eta}]-p|\le\eta,\qquad\operatorname{Var}(\widehat{p}_{M,\eta})\le\frac{c_vp}{M^2}+\eta\le\frac{c_v}{M^2}+\eta. \tag*{(21)} ∣ E [ p M , η ] − p ∣ ≤ η , Var ( p M , η ) ≤ M 2 c v p + η ≤ M 2 c v + η . (21)
We now use these bounds to prove the bias, variance, and query estimates for the logarithmic estimator in Lemma 4.2 .
Proof of Lemma 4.2. Define
Λ γ : = ln 2 γ , q + ( x ) : = ln ( min { 2 , max { γ 2 , x } } ) , q − ( x ) : = − q + ( x ) . \Lambda_\gamma:=\ln\frac{2}{\gamma},\qquad q_+(x):=\ln\left(\min\left\{2,\max\left\{\frac{\gamma}{2},x\right\}\right\}\right),\qquad q_-(x):=-q_+(x). Λ γ := ln γ 2 , q + ( x ) := ln ( min { 2 , max { 2 γ , x } } ) , q − ( x ) := − q + ( x ) .
The algorithm returns q − ( p ^ M , η ) q_-(\widehat{p}_{M,\eta}) q − ( p M , η ) for an overlap term and q + ( p ^ M , η ) + 2 q_+(\widehat{p}_{M,\eta})+2 q + ( p M , η ) + 2 for a reweighting term. The unshifted maps q + q_+ q + and q − q_- q − are 2 / γ 2/\gamma 2/ γ -Lipschitz and have absolute value at most Λ γ \Lambda_\gamma Λ γ . Adding the constant 2 2 2 does not change the Lipschitz bound or the variance. For either sign, the Lipschitz bound and Eq. (21) give
Var ( Y ^ M , η ) ≤ 4 γ 2 ( c v M 2 + η ) ≤ K γ ( M − 2 + η ) . \operatorname{Var}(\widehat{Y}_{M,\eta}) \le\frac{4}{\gamma^2}\left(\frac{c_v}{M^2}+\eta\right) \le K_\gamma\left(M^{-2}+\eta\right). Var ( Y M , η ) ≤ γ 2 4 ( M 2 c v + η ) ≤ K γ ( M − 2 + η ) .
It remains to bound the bias. Write Δ : = p ^ M , η − p \Delta:= \widehat{p}_{M,\eta}-p Δ := p M , η − p . Since 0 < η < 1 0<\eta<1 0 < η < 1 ,
E [ Δ 2 ] = Var ( p ^ M , η ) + ( E [ Δ ] ) 2 ≤ c v M 2 + 2 η . (22) \mathbb{E}[\Delta^2] = \operatorname{Var}(\widehat{p}_{M,\eta})+\left(\mathbb{E}[\Delta]\right)^2 \le\frac{c_v}{M^2}+2\eta. \tag*{(22)} E [ Δ 2 ] = Var ( p M , η ) + ( E [ Δ ] ) 2 ≤ M 2 c v + 2 η . (22)
Let E : = { ∣ Δ ∣ ≤ γ / 2 } \mathcal{E}:=\{|\Delta|\le\gamma/2\} E := { ∣Δ∣ ≤ γ /2 } . Since p ∈ [ γ , 1 ] p\in[\gamma,1] p ∈ [ γ , 1 ] , clipping is inactive on E \mathcal{E} E . Let g ( x ) = ln x + 2 g(x)=\ln x+2 g ( x ) = ln x + 2 for a reweighting term and g ( x ) = − ln x g(x)=-\ln x g ( x ) = − ln x for an overlap term. Taylor’s theorem about p p p , using ∣ g ′ ( p ) ∣ ≤ 1 / γ |g'(p)|\le1/\gamma ∣ g ′ ( p ) ∣ ≤ 1/ γ and ∣ g ′ ′ ( x ) ∣ ≤ 4 / γ 2 |g''(x)|\le4/\gamma^2 ∣ g ′′ ( x ) ∣ ≤ 4/ γ 2 on the relevant interval, gives
∣ E [ ( Y ^ M , η − Y ) 1 E ] ∣ ≤ 1 γ ∣ E [ Δ 1 E ] ∣ + 2 γ 2 E [ Δ 2 ] . \left|\mathbb{E}\left[(\widehat{Y}_{M,\eta}-Y)\mathbf{1}_{\mathcal{E}}\right]\right|
\le\frac{1}{\gamma}\left|\mathbb{E}[\Delta\mathbf{1}_{\mathcal{E}}]\right|+\frac{2}{\gamma^2}\mathbb{E}[\Delta^2]. E [ ( Y M , η − Y ) 1 E ] ≤ γ 1 ∣ E [ Δ 1 E ] ∣ + γ 2 2 E [ Δ 2 ] .
Moreover,
∣ E [ Δ 1 E ] ∣ ≤ ∣ E [ Δ ] ∣ + ∣ E [ Δ 1 E c ] ∣ ≤ η + 2 γ E [ Δ 2 ] , \left|\mathbb{E}[\Delta\mathbf{1}_{\mathcal{E}}]\right|
\le|\mathbb{E}[\Delta]|+|\mathbb{E}[\Delta\mathbf{1}_{\mathcal{E}^{c}}]|
\le\eta+\frac{2}{\gamma}\mathbb{E}[\Delta^2], ∣ E [ Δ 1 E ] ∣ ≤ ∣ E [ Δ ] ∣ + ∣ E [ Δ 1 E c ] ∣ ≤ η + γ 2 E [ Δ 2 ] ,
where on E c \mathcal{E}^{c} E c we used ∣ Δ ∣ ≤ 2 Δ 2 / γ |\Delta|\le2\Delta^2/\gamma ∣Δ∣ ≤ 2 Δ 2 / γ . Hence the contribution from E \mathcal{E} E is at most
η γ + 4 γ 2 E [ Δ 2 ] . \frac{\eta}{\gamma}+\frac{4}{\gamma^2}\mathbb{E}[\Delta^2]. γ η + γ 2 4 E [ Δ 2 ] .
By Markov’s inequality, Pr ( E c ) ≤ 4 E [ Δ 2 ] / γ 2 \Pr(\mathcal{E}^{c})\le4\mathbb{E}[\Delta^2]/\gamma^2 Pr ( E c ) ≤ 4 E [ Δ 2 ] / γ 2 . The additive correction cancels from Y ^ M , η − Y \widehat{Y}_{M,\eta}-Y Y M , η − Y . Each unshifted logarithm is bounded in absolute value by Λ γ \Lambda_\gamma Λ γ , so ∣ Y ^ M , η − Y ∣ ≤ 2 Λ γ |\widehat{Y}_{M,\eta}-Y|\le2\Lambda_\gamma ∣ Y M , η − Y ∣ ≤ 2 Λ γ for either branch. The contribution from E c \mathcal{E}^{c} E c is therefore at most 8 Λ γ E [ Δ 2 ] / γ 2 8\Lambda_\gamma\mathbb{E}[\Delta^2]/\gamma^2 8 Λ γ E [ Δ 2 ] / γ 2 . Combining the two events and using Eq. (22) gives
∣ E [ Y ^ M , η ] − Y ∣ ≤ η γ + 4 + 8 Λ γ γ 2 ( c v M 2 + 2 η ) ≤ K γ ( M − 2 + η ) . \left|\mathbb{E}[\widehat{Y}_{M,\eta}]-Y\right|
\le\frac{\eta}{\gamma}+\frac{4+8\Lambda_\gamma}{\gamma^2}\left(\frac{c_v}{M^2}+2\eta\right)
\le K_\gamma\left(M^{-2}+\eta\right). E [ Y M , η ] − Y ≤ γ η + γ 2 4 + 8 Λ γ ( M 2 c v + 2 η ) ≤ K γ ( M − 2 + η ) .
with K γ K_\gamma K γ as defined in Eq. (11). This proves the bias and variance bounds. If η ≤ M − 2 \eta\le M^{-2} η ≤ M − 2 , both are therefore at most 2 K γ / M 2 2K_\gamma/M^2 2 K γ / M 2 .
We finally count oracle calls. For an overlap term, the prepared state is obtained from U θ † U θ + δ U_\theta^\dagger U_{\theta+\delta} U θ † U θ + δ . One reflection about this state uses the preparation and its inverse, and hence four fixed-temperature TFD calls and no block-encoding query. For a reweighting term, one reflection about the prepared state uses U θ U_\theta U θ , U θ † U_\theta^\dagger U θ † , D δ D_\delta D δ , and D δ † D_\delta^\dagger D δ † . Thus it uses two fixed-temperature TFD calls and O ( q ) O(q) O ( q ) block-encoding queries when D δ D_\delta D δ has QSVT degree q q q .
By Theorem B.2 , the expected number of such reflections is O ( M log log M log ( M / η ) ) = O ~ ( M ) O(M\log\log M\log(M/\eta))=\widetilde{O}(M) O ( M log log M log ( M / η )) = O ( M ) . Therefore an overlap term uses N T F D = O ~ ( M ) N_{\mathrm{TFD}}=\widetilde{O}(M) N TFD = O ( M ) and N B E = 0 N_{\mathrm{BE}}=0 N BE = 0 , while a reweighting term uses N T F D = O ~ ( M ) N_{\mathrm{TFD}}=\widetilde{O}(M) N TFD = O ( M ) and N B E = O ~ ( M q ) N_{\mathrm{BE}}=\widetilde{O}(Mq) N BE = O ( M q ) . No coherent-temperature TFD call is used. Under α = Θ ( h ) \alpha=\Theta(h) α = Θ ( h ) , h δ ≤ 1 h\delta\le1 h δ ≤ 1 , and inverse-polynomial QSVT accuracy, standard QSVT approximation gives q = O ~ ( 1 ) q=\widetilde{O}(1) q = O ( 1 ) [11 ] .
Stability of the reweighting dilation
For a reweighting term, let A i : = e − δ i H / 2 A_i:=e^{-\delta_i H/2} A i := e − δ i H /2 , and let A ~ i \widetilde{A}_i A i denote the all-zero block of the QSVT unitary D δ i D_{\delta_i} D δ i from Lemma B.1. The following lemma controls the implemented success probability and its logarithm after the known scaling correction.
Lemma B.3 (Probability and logarithm stability). Suppose that ∥ A ~ i − e − 1 A i ∥ ≤ ν \|\widetilde{A}_i-e^{-1}A_i\|\le\nu ∥ A i − e − 1 A i ∥ ≤ ν . Let
R ( β i , δ i ) : = ∥ ( A i ⊗ I R ) ∣ ψ β i ⟩ ∥ 2 , p i , 0 : = ∥ ( A ~ i ⊗ I R ) ∣ ψ β i ⟩ ∥ 2 , R(\beta_i,\delta_i):=\|(A_i\otimes I_R)|\psi_{\beta_i}\rangle\|^2,\qquad p_{i,0}:=\|(\widetilde{A}_i\otimes I_R)|\psi_{\beta_i}\rangle\|^2, R ( β i , δ i ) := ∥ ( A i ⊗ I R ) ∣ ψ β i ⟩ ∥ 2 , p i , 0 := ∥ ( A i ⊗ I R ) ∣ ψ β i ⟩ ∥ 2 ,
where R R R in I R I_R I R denotes the TFD reference register. Then
∣ p i , 0 − e − 2 R ( β i , δ i ) ∣ ≤ 2 ν . |p_{i,0}-e^{-2R(\beta_i,\delta_i)}|\le2\nu. ∣ p i , 0 − e − 2 R ( β i , δ i ) ∣ ≤ 2 ν .
If, in addition,
e − 2 R ( β i , δ i ) ≥ γ 0 , 2 ν ≤ γ 0 2 , e^{-2R(\beta_i,\delta_i)}\ge\gamma_0,\qquad2\nu\le\frac{\gamma_0}{2}, e − 2 R ( β i , δ i ) ≥ γ 0 , 2 ν ≤ 2 γ 0 ,
then
p i , 0 ≥ γ 0 2 , ∣ ln p i , 0 + 2 − ln R ( β i , δ i ) ∣ ≤ 4 ν γ 0 . p_{i,0}\ge\frac{\gamma_0}{2},\qquad|\ln p_{i,0}+2-\ln R(\beta_i,\delta_i)|\le\frac{4\nu}{\gamma_0}. p i , 0 ≥ 2 γ 0 , ∣ ln p i , 0 + 2 − ln R ( β i , δ i ) ∣ ≤ γ 0 4 ν .
Proof. Since H ⪰ 0 H\succeq0 H ⪰ 0 , the operator e − 1 A i e^{-1}A_i e − 1 A i is a contraction. The operator A ~ i \widetilde{A}_i A i is also a contraction because it is a block of the unitary D δ i D_{\delta_i} D δ i . Hence
∣ p i , 0 − e − 2 R ( β i , δ i ) ∣ ≤ ∥ A ~ i † A ~ i − e − 2 A i † A i ∥ ≤ ∥ A ~ i † ( A ~ i − e − 1 A i ) ∥ + ∥ ( A ~ i † − e − 1 A i † ) e − 1 A i ∥ ≤ 2 ν . \begin{aligned}
|p_{i,0}-e^{-2R(\beta_i,\delta_i)}|
&\le\|\widetilde{A}_i^\dagger\widetilde{A}_i-e^{-2}A_i^\dagger A_i\|\\
&\le\|\widetilde{A}_i^\dagger(\widetilde{A}_i-e^{-1}A_i)\|
+\|(\widetilde{A}_i^\dagger-e^{-1}A_i^\dagger)e^{-1}A_i\|\\
&\le2\nu.
\end{aligned} ∣ p i , 0 − e − 2 R ( β i , δ i ) ∣ ≤ ∥ A i † A i − e − 2 A i † A i ∥ ≤ ∥ A i † ( A i − e − 1 A i ) ∥ + ∥ ( A i † − e − 1 A i † ) e − 1 A i ∥ ≤ 2 ν .
Under the additional assumptions,
p i , 0 ≥ e − 2 R ( β i , δ i ) − 2 ν ≥ γ 0 2 . p_{i,0}\ge e^{-2R(\beta_i,\delta_i)}-2\nu\ge\frac{\gamma_0}{2}. p i , 0 ≥ e − 2 R ( β i , δ i ) − 2 ν ≥ 2 γ 0 .
Both p i , 0 p_{i,0} p i , 0 and e − 2 R ( β i , δ i ) e^{-2R(\beta_i,\delta_i)} e − 2 R ( β i , δ i ) therefore lie in [ γ 0 / 2 , 1 ] [\gamma_0/2,1] [ γ 0 /2 , 1 ] . The mean-value theorem gives
∣ ln p i , 0 + 2 − ln R ( β i , δ i ) ∣ = ∣ ln p i , 0 − ln ( e − 2 R ( β i , δ i ) ) ∣ ≤ 2 γ 0 ∣ p i , 0 − e − 2 R ( β i , δ i ) ∣ ≤ 4 ν γ 0 . \begin{aligned}
|\ln p_{i,0}+2-\ln R(\beta_i,\delta_i)|
&=|\ln p_{i,0}-\ln(e^{-2R(\beta_i,\delta_i)})|\\
&\le\frac{2}{\gamma_0}|p_{i,0}-e^{-2R(\beta_i,\delta_i)}|
\le\frac{4\nu}{\gamma_0}.
\end{aligned} ∣ ln p i , 0 + 2 − ln R ( β i , δ i ) ∣ = ∣ ln p i , 0 − ln ( e − 2 R ( β i , δ i ) ) ∣ ≤ γ 0 2 ∣ p i , 0 − e − 2 R ( β i , δ i ) ∣ ≤ γ 0 4 ν .
Let f ~ ( β ) \widetilde{f}(\beta) f ( β ) denote the deterministic reconstruction obtained from Eq. (7) by replacing each ln R ( β i , δ i ) \ln R(\beta_i,\delta_i) ln R ( β i , δ i ) with ln p i , 0 + 2 \ln p_{i,0}+2 ln p i , 0 + 2 , leaving the overlap terms unchanged. Therefore
f ~ ( β ) − f ( β ) = ∑ i = 0 ℓ − 1 2 k i ( ln p i , 0 + 2 − ln R ( β i , δ i ) ) . \widetilde{f}(\beta)-f(\beta)=\sum_{i=0}^{\ell-1}2^{k_i}(\ln p_{i,0}+2-\ln R(\beta_i,\delta_i)). f ( β ) − f ( β ) = i = 0 ∑ ℓ − 1 2 k i ( ln p i , 0 + 2 − ln R ( β i , δ i )) .
The uniform bound e − 2 R ( β i , δ i ) ≥ γ 0 e^{-2R(\beta_i,\delta_i)}\ge\gamma_0 e − 2 R ( β i , δ i ) ≥ γ 0 follows from Eq. (9) . With the choice
ν = γ 0 ϵ 64 ∑ i = 0 ℓ − 1 2 k i \nu=\frac{\gamma_0\epsilon}{64\sum_{i=0}^{\ell-1}2^{k_i}} ν = 64 ∑ i = 0 ℓ − 1 2 k i γ 0 ϵ
in Algorithm 2, we have 2 ν ≤ γ 0 / 2 2\nu\le\gamma_0/2 2 ν ≤ γ 0 /2 . Thus the stability lemma gives
∣ f ~ ( β ) − f ( β ) ∣ ≤ 4 ν γ 0 ∑ i = 0 ℓ − 1 2 k i = ϵ 16 . (23) |\widetilde{f}(\beta)-f(\beta)|\le\frac{4\nu}{\gamma_0}\sum_{i=0}^{\ell-1}2^{k_i}=\frac{\epsilon}{16}. \tag*{(23)} ∣ f ( β ) − f ( β ) ∣ ≤ γ 0 4 ν i = 0 ∑ ℓ − 1 2 k i = 16 ϵ . (23)
The QSVT approximation therefore contributes at most ϵ / 16 \epsilon/16 ϵ /16 to the reconstruction error.
Finally, since α = Θ ( h ) \alpha=\Theta(h) α = Θ ( h ) and h δ i ≤ 1 h\delta_i\le1 h δ i ≤ 1 , Lemma B.1 implements an approximation to e − 1 e − δ i H / 2 e^{-1}e^{-\delta_i H/2} e − 1 e − δ i H /2 with QSVT degree q = O ~ ( 1 ) q=\widetilde{O}(1) q = O ( 1 ) , where the suppressed dependence on ν − 1 \nu^{-1} ν − 1 is polylogarithmic.
Choice of the local estimation depths
We derive the depths M i , j M_{i,j} M i , j used in Algorithm 2. Fix one repetition r r r before taking the final median, and let Y ^ i , j \widehat{Y}_{i,j} Y i , j denote its local logarithmic estimates. Let a i , 0 = 2 k i a_{i,0}=2^{k_i} a i , 0 = 2 k i , a i , j = 2 k i − j a_{i,j}=2^{k_i-j} a i , j = 2 k i − j for j ≥ 1 j\ge1 j ≥ 1 , and define
S : = ∑ i = 0 ℓ − 1 ∑ j = 0 k i a i , j 2 / 3 . (24) S := \sum_{i=0}^{\ell-1}\sum_{j=0}^{k_i} a_{i,j}^{2/3}. \tag*{(24)} S := i = 0 ∑ ℓ − 1 j = 0 ∑ k i a i , j 2/3 . (24)
We choose η i , j = M i , j − 2 \eta_{i,j}=M_{i,j}^{-2} η i , j = M i , j − 2 . By Lemma 4.2 , Var ( Y ^ i , j ) ≤ 2 K γ / M i , j 2 \operatorname{Var}(\widehat{Y}_{i,j})\le2K_\gamma/M_{i,j}^{2} Var ( Y i , j ) ≤ 2 K γ / M i , j 2 . Since the local runs are independent, the weighted reconstruction satisfies
Var ( f ^ ( r ) ( β ) ) ≤ 2 K γ ∑ i , j a i , j 2 M i , j 2 . \operatorname{Var}\bigl(\widehat{f}^{(r)}(\beta)\bigr)\le2K_\gamma\sum_{i,j}\frac{a_{i,j}^{2}}{M_{i,j}^{2}}. Var ( f ( r ) ( β ) ) ≤ 2 K γ i , j ∑ M i , j 2 a i , j 2 .
It is therefore sufficient to impose ∑ i , j a i , j 2 / M i , j 2 ≤ ϵ s t a t 2 / ( 16 K γ ) \sum_{i,j}a_{i,j}^{2}/M_{i,j}^{2}\le\epsilon_{\mathrm{stat}}^{2}/(16K_\gamma) ∑ i , j a i , j 2 / M i , j 2 ≤ ϵ stat 2 / ( 16 K γ ) .
Up to logarithmic factors, a local estimate of depth M i , j M_{i,j} M i , j costs O ( M i , j ) O(M_{i,j}) O ( M i , j ) queries. Ignoring integer rounding, we thus minimize ∑ i , j M i , j \sum_{i,j}M_{i,j} ∑ i , j M i , j subject to the variance constraint above. Introducing a Lagrange multiplier λ \lambda λ gives
L = ∑ i , j M i , j + λ ( ∑ i , j a i , j 2 M i , j 2 − ϵ s t a t 2 16 K γ ) , ∂ L ∂ M i , j = 1 − 2 λ a i , j 2 M i , j 3 . \mathcal{L}=\sum_{i,j}M_{i,j}+\lambda\left(\sum_{i,j}\frac{a_{i,j}^{2}}{M_{i,j}^{2}}-\frac{\epsilon_{\mathrm{stat}}^{2}}{16K_\gamma}\right),\qquad
\frac{\partial\mathcal{L}}{\partial M_{i,j}}=1-\frac{2\lambda a_{i,j}^{2}}{M_{i,j}^{3}}. L = i , j ∑ M i , j + λ ( i , j ∑ M i , j 2 a i , j 2 − 16 K γ ϵ stat 2 ) , ∂ M i , j ∂ L = 1 − M i , j 3 2 λ a i , j 2 .
Hence the stationary point satisfies M i , j ∝ a i , j 2 / 3 M_{i,j}\propto a_{i,j}^{2/3} M i , j ∝ a i , j 2/3 . Writing M i , j = c a i , j 2 / 3 M_{i,j}=c a_{i,j}^{2/3} M i , j = c a i , j 2/3 and substituting into the variance constraint gives S / c 2 = ϵ s t a t 2 / ( 16 K γ ) S/c^{2}=\epsilon_{\mathrm{stat}}^{2}/(16K_\gamma) S / c 2 = ϵ stat 2 / ( 16 K γ ) , and therefore
M i , j ⋆ = 4 K γ S 1 / 2 a i , j 2 / 3 ϵ s t a t . (25) M_{i,j}^{\star}=\frac{4\sqrt{K_\gamma}S^{1/2}a_{i,j}^{2/3}}{\epsilon_{\mathrm{stat}}}. \tag*{(25)} M i , j ⋆ = ϵ stat 4 K γ S 1/2 a i , j 2/3 . (25)
The algorithm uses
M i , j = max { 5 , ⌈ M i , j ⋆ ⌉ } , η i , j = M i , j − 2 . M_{i,j}=\max\{5,\lceil M_{i,j}^{\star}\rceil\},\qquad\eta_{i,j}=M_{i,j}^{-2}. M i , j = max { 5 , ⌈ M i , j ⋆ ⌉} , η i , j = M i , j − 2 .
Increasing M i , j M_{i,j} M i , j can only decrease the variance, so rounding preserves the variance bound. Since a i , j ≥ 1 a_{i,j}\ge1 a i , j ≥ 1 , the number of local terms is at most S S S , and hence
∑ i , j M i , j = O ( S + K γ S 3 / 2 ϵ s t a t ) = O ( S 3 / 2 ϵ ) , \sum_{i,j}M_{i,j}=O\left(S+\frac{\sqrt{K_\gamma}S^{3/2}}{\epsilon_{\mathrm{stat}}}\right)=O\left(\frac{S^{3/2}}{\epsilon}\right), i , j ∑ M i , j = O ( S + ϵ stat K γ S 3/2 ) = O ( ϵ S 3/2 ) ,
where the last equality uses ϵ s t a t = ϵ / 2 \epsilon_{\mathrm{stat}}=\epsilon/2 ϵ stat = ϵ /2 and K γ = O ( 1 ) K_\gamma=O(1) K γ = O ( 1 ) for C = O ( 1 ) C=O(1) C = O ( 1 ) .
The same choice also controls the accumulated bias. Indeed, Lemma 4.2 gives
∣ E [ f ^ ( r ) ( β ) ] − f ~ ( β ) ∣ ≤ ϵ s t a t 2 8 S ∑ i , j a i , j − 1 / 3 ≤ ϵ s t a t 2 8 , \left|\mathbb{E}\left[\widehat{f}^{(r)}(\beta)\right]-\widetilde{f}(\beta)\right|
\le\frac{\epsilon_{\mathrm{stat}}^{2}}{8S}\sum_{i,j}a_{i,j}^{-1/3}\le\frac{\epsilon_{\mathrm{stat}}^{2}}{8}, E [ f ( r ) ( β ) ] − f ( β ) ≤ 8 S ϵ stat 2 i , j ∑ a i , j − 1/3 ≤ 8 ϵ stat 2 ,
because a i , j − 1 / 3 ≤ a i , j 2 / 3 a_{i,j}^{-1/3}\le a_{i,j}^{2/3} a i , j − 1/3 ≤ a i , j 2/3 . Thus Eq. (25) gives the minimum continuous total depth under the required variance constraint and provides the depth allocation used in Algorithm 2.
Finite-temperature normalization
The reconstruction starts from the exact value f ( 0 ) = n ln 2 f(0)=n\ln2 f ( 0 ) = n ln 2 . For every finite β \beta β , 0 ⪯ H ⪯ h I 0\preceq H\preceq hI 0 ⪯ H ⪯ h I implies
2 n e − β h ≤ Z ( β ) ≤ 2 n , n ln 2 − β h ≤ f ( β ) ≤ n ln 2. 2^{n}e^{-\beta h}\le Z(\beta)\le2^{n},\qquad n\ln2-\beta h\le f(\beta)\le n\ln2. 2 n e − β h ≤ Z ( β ) ≤ 2 n , n ln 2 − β h ≤ f ( β ) ≤ n ln 2.
If the normalization additionally satisfies λ min ( H ) = 0 \lambda_{\min}(H)=0 λ m i n ( H ) = 0 , then Z ( β ) ≥ 1 Z(\beta)\ge1 Z ( β ) ≥ 1 and hence f ( β ) ≥ 0 f(\beta)\ge0 f ( β ) ≥ 0 . No zero-temperature limit is used in either the algorithm or its proof.
Implementation and proofs for coherent temperature access
This appendix gives the circuit-level implementation and the complete error and resource accounting for § 5 . The algorithm itself remains in the main text. We use the query counts defined in Definitions 4.1 and 5.1; branch-state preparation, parameter loading, and reversible arithmetic are additional gate costs.
Preparing and loading the branch
For each interval i i i ,
∑ j = 0 k i a i , j = ∑ j = 0 k i 2 k i − j = 2 k i + 1 − 1. \sum_{j=0}^{k_i} a_{i,j}=\sum_{j=0}^{k_i}2^{k_i-j}=2^{k_i+1}-1. j = 0 ∑ k i a i , j = j = 0 ∑ k i 2 k i − j = 2 k i + 1 − 1.
Hence the branch-preparation unitary U π U_\pi U π can be implemented coherently in two stages. Starting from the all-zero branch register, first prepare
∑ i = 0 ℓ − 1 2 k i + 1 − 1 L ∣ i ⟩ . \sum_{i=0}^{\ell-1}\sqrt{\frac{2^{k_i+1}-1}{L}}\lvert i\rangle. i = 0 ∑ ℓ − 1 L 2 k i + 1 − 1 ∣ i ⟩ .
Conditioned coherently on i i i , prepare the second branch register as
∣ i ⟩ ∣ 0 ⟩ ⟼ ∣ i ⟩ ∑ j = 0 k i 2 k i − j 2 k i + 1 − 1 ∣ j ⟩ . \lvert i\rangle\lvert0\rangle\longmapsto\lvert i\rangle\sum_{j=0}^{k_i}\sqrt{\frac{2^{k_i-j}}{2^{k_i+1}-1}}\lvert j\rangle. ∣ i ⟩ ∣ 0 ⟩ ⟼ ∣ i ⟩ j = 0 ∑ k i 2 k i + 1 − 1 2 k i − j ∣ j ⟩ .
The resulting state is
∑ ( i , j ) ∈ R 2 k i − j L ∣ i , j ⟩ = ∑ ( i , j ) ∈ R π i , j ∣ i , j ⟩ , \sum_{(i,j)\in\mathcal{R}}\sqrt{\frac{2^{k_i-j}}{L}}\lvert i,j\rangle=\sum_{(i,j)\in\mathcal{R}}\sqrt{\pi_{i,j}}\lvert i,j\rangle, ( i , j ) ∈ R ∑ L 2 k i − j ∣ i , j ⟩ = ( i , j ) ∈ R ∑ π i , j ∣ i , j ⟩ ,
which is exactly the branch state required by Definition 5.1 . No measurement or classical sampling of i i i or j j j is performed.
The coherent preparation of this branch state is part of the access model in Definition 5.1 . Throughout this section, U π U_\pi U π is assumed to be implemented exactly. Its gate cost is not included in N T F D N_{\mathrm{TFD}} N TFD , N c o h T F D N_{\mathrm{cohTFD}} N cohTFD , or N B E N_{\mathrm{BE}} N BE .
After preparing the branch register, apply the reversible loading unitary
U l o a d : ∣ i , j ⟩ ∣ 0 ⟩ ⟼ ∣ i , j ⟩ ∣ β i , δ i , 2 δ i , β i + 2 j δ i ⟩ . U_{\mathrm{load}}:\lvert i,j\rangle\lvert0\rangle\longmapsto\lvert i,j\rangle\lvert\beta_i,\delta_i,2^{\delta_i},\beta_i+2^j\delta_i\rangle. U load : ∣ i , j ⟩ ∣ 0 ⟩ ⟼ ∣ i , j ⟩ ∣ β i , δ i , 2 δ i , β i + 2 j δ i ⟩ .
Thus each branch remains in coherent superposition while the parameters required by the corresponding overlap or reweighting construction are made available in separate registers. The inverse U l o a d † U_{\mathrm{load}}^\dagger U load † is used when the coherent sample is uncomputed.
The schedule values are treated as exact classical bit strings supplied to the algorithm. Approximate parameter loading would require an additional error budget and is not included in the stated query bounds.
Coherent implementation of the two branch types
Let I I I , J J J be the branch registers and let P P P contain the parameters loaded for each branch. Let Q = S ⊗ R Q=S\otimes R Q = S ⊗ R be the TFD registers, where S S S is the physical register and R R R is the reference register. Let A A A be an a a a -qubit QSVT ancilla register and F F F a one-qubit flag register. After preparing the branch distribution and loading the corresponding parameters, the state has the form
∣ Ψ i n ⟩ = ∑ ( i , j ) ∈ R π i , j ∣ i , j ⟩ I J ∣ p a r i , j ⟩ P ∣ 0 ⟩ Q ∣ 0 a ⟩ A ∣ 0 ⟩ F . \lvert\Psi_{\mathrm{in}}\rangle=\sum_{(i,j)\in\mathcal{R}}\sqrt{\pi_{i,j}}\lvert i,j\rangle_{IJ}\lvert\mathrm{par}_{i,j}\rangle_P\lvert0\rangle_Q\lvert0^a\rangle_A\lvert0\rangle_F. ∣ Ψ in ⟩ = ( i , j ) ∈ R ∑ π i , j ∣ i , j ⟩ I J ∣ par i , j ⟩ P ∣ 0 ⟩ Q ∣ 0 a ⟩ A ∣ 0 ⟩ F .
The registers I I I , J J J are not measured. The parameters and branch-dependent operations below are selected coherently by ( i , j ) (i,j) ( i , j ) .
By Lemma 3.3 and Eq. (10) , the overlap branches j ≥ 1 j \ge1 j ≥ 1 realize the exact probabilities p i , j = O ( β i , 2 j δ i ) p_{i,j}=O(\beta_i,2^{j}\delta_i) p i , j = O ( β i , 2 j δ i ) , while the reweighting branches j = 0 j=0 j = 0 realize the QSVT-implemented probabilities p i , 0 = R ~ ( β i , δ i ) p_{i,0}=\widetilde{R}(\beta_i,\delta_i) p i , 0 = R ( β i , δ i ) . We now describe the two branch actions.
Overlap branches j ≥ 1 j \ge1 j ≥ 1 . Fix a branch ( i , j ) (i,j) ( i , j ) with 1 ≤ j ≤ k i 1 \le j \le k_i 1 ≤ j ≤ k i . Using the parameters stored in ∣ p a r i , j ⟩ P \lvert\mathrm{par}_{i,j}\rangle_P ∣ par i , j ⟩ P , apply U c o h T F D U_{\mathrm{cohTFD}} U cohTFD at inverse temperature β i + 2 j δ i \beta_i+2^j\delta_i β i + 2 j δ i to prepare ∣ ψ β i + 2 j δ i ⟩ Q \lvert\psi_{\beta_i+2^j\delta_i}\rangle_Q ∣ ψ β i + 2 j δ i ⟩ Q , and then apply U c o h T F D † U_{\mathrm{cohTFD}}^\dagger U cohTFD † at inverse temperature β i \beta_i β i . The amplitude of the all-zero state on Q Q Q is
⟨ ψ β i ∣ ψ β i + 2 j δ i ⟩ . \langle\psi_{\beta_i}\mid\psi_{\beta_i+2^j\delta_i}\rangle. ⟨ ψ β i ∣ ψ β i + 2 j δ i ⟩ .
Hence, by Lemma 3.3, the corresponding success probability is
p i , j = O ( β i , 2 j δ i ) . p_{i,j}=O(\beta_i,2^j\delta_i). p i , j = O ( β i , 2 j δ i ) .
A reversible all-zero test on Q Q Q writes this outcome into F F F , so that Pr ( F = 1 ∣ i , j ) = p i , j \Pr(F=1\mid i,j)=p_{i,j} Pr ( F = 1 ∣ i , j ) = p i , j . This probability is exact and involves no QSVT approximation.
One forward overlap action uses one call to U c o h T F D U_{\mathrm{cohTFD}} U cohTFD and one call to U c o h T F D † U_{\mathrm{cohTFD}}^\dagger U cohTFD † , and no Hamiltonian block-encoding query. The inverse action has the same query cost.
Reweighting branches j = 0 j=0 j = 0 . Fix a branch ( i , 0 ) (i,0) ( i , 0 ) . With the inverse-temperature input set to β i \beta_i β i , apply U c o h T F D U_{\mathrm{cohTFD}} U cohTFD to prepare ∣ ψ β i ⟩ Q \lvert\psi_{\beta_i}\rangle_Q ∣ ψ β i ⟩ Q . The reweighting term requires e − 1 e − δ i H / 2 e^{-1}e^{-\delta_i H/2} e − 1 e − δ i H /2 on the physical register S S S . We implement this scaled operator using the QSVT unitary D δ i D_{\delta_i} D δ i from Lemma B.1, acting on A ⊗ S A \otimes S A ⊗ S and leaving R R R unchanged.
If A ~ δ i \widetilde{A}_{\delta_i} A δ i denotes the all-zero block of D δ i D_{\delta_i} D δ i , then
( ⟨ 0 a ∣ A ⊗ I S ) D δ i ( ∣ 0 a ⟩ A ⊗ I S ) = A ~ δ i , ∥ A ~ δ i − e − 1 e − δ i H / 2 ∥ ≤ ν . (\langle0^a|_A \otimes I_S)D_{\delta_i}(|0^a\rangle_A \otimes I_S)=\widetilde{A}_{\delta_i},\qquad\left\|\widetilde{A}_{\delta_i}-e^{-1}e^{-\delta_i H/2}\right\|\le\nu. (⟨ 0 a ∣ A ⊗ I S ) D δ i ( ∣ 0 a ⟩ A ⊗ I S ) = A δ i , A δ i − e − 1 e − δ i H /2 ≤ ν .
Therefore
( D δ i ⊗ I R ) ( ∣ 0 a ⟩ A ∣ ψ β i ⟩ Q ) = ∣ 0 a ⟩ A ( A ~ δ i ⊗ I R ) ∣ ψ β i ⟩ Q + ∣ ⊥ i , 0 ⟩ A Q , (D_{\delta_i}\otimes I_R)(|0^a\rangle_A|\psi_{\beta_i}\rangle_Q)=|0^a\rangle_A(\widetilde{A}_{\delta_i}\otimes I_R)|\psi_{\beta_i}\rangle_Q+|\perp_{i,0}\rangle_{AQ}, ( D δ i ⊗ I R ) ( ∣ 0 a ⟩ A ∣ ψ β i ⟩ Q ) = ∣ 0 a ⟩ A ( A δ i ⊗ I R ) ∣ ψ β i ⟩ Q + ∣ ⊥ i , 0 ⟩ A Q ,
where ( ⟨ 0 a ∣ A ⊗ I Q ) ∣ ⊥ i , 0 ⟩ A Q = 0 (\langle0^a|_A\otimes I_Q)|\perp_{i,0}\rangle_{AQ}=0 (⟨ 0 a ∣ A ⊗ I Q ) ∣ ⊥ i , 0 ⟩ A Q = 0 .
A reversible all-zero test on A A A flips the flag qubit F F F . Hence the implemented branch probability is
p i , 0 = Pr ( F = 1 ∣ i , 0 ) = ∥ ( A ~ δ i ⊗ I R ) ∣ ψ β i ⟩ ∥ 2 . p_{i,0}=\Pr(F=1\mid i,0)=\left\|(\widetilde{A}_{\delta_i}\otimes I_R)|\psi_{\beta_i}\rangle\right\|^2. p i , 0 = Pr ( F = 1 ∣ i , 0 ) = ( A δ i ⊗ I R ) ∣ ψ β i ⟩ 2 .
The corresponding exact reweighting quantity is
R ( β i , δ i ) = Tr ( ρ β i e − δ i H ) . R(\beta_i,\delta_i)=\operatorname{Tr}\left(\rho_{\beta_i}e^{-\delta_i H}\right). R ( β i , δ i ) = Tr ( ρ β i e − δ i H ) .
Lemma B.3 bounds ∣ p i , 0 − e − 2 R ( β i , δ i ) ∣ ≤ 2 ν |p_{i,0}-e^{-2}R(\beta_i,\delta_i)|\le2\nu ∣ p i , 0 − e − 2 R ( β i , δ i ) ∣ ≤ 2 ν and, under the uniform conditioning assumption, ∣ ln p i , 0 + 2 − ln R ( β i , δ i ) ∣ ≤ 4 ν / γ 0 |\ln p_{i,0}+2-\ln R(\beta_i,\delta_i)|\le4\nu/\gamma_0 ∣ ln p i , 0 + 2 − ln R ( β i , δ i ) ∣ ≤ 4 ν / γ 0 .
At the accuracy used in Algorithm 3, Lemma B.1 gives QSVT degree O ~ ( 1 ) \widetilde{O}(1) O ( 1 ) uniformly in i i i , since α = Θ ( h ) \alpha=\Theta(h) α = Θ ( h ) and h δ i ≤ 1 h\delta_i\le1 h δ i ≤ 1 . Thus the standalone reweighting action uses one call to U c o h T F D U_{\mathrm{cohTFD}} U cohTFD and O ~ ( 1 ) \widetilde{O}(1) O ( 1 ) Hamiltonian block-encoding queries. Its inverse has the same query cost.
Combined branch unitary. Let W A W_A W A and W Q W_Q W Q denote the reversible all-zero tests on A A A and Q Q Q , respectively:
W A : = ∣ 0 a ⟩ ⟨ 0 a ∣ A ⊗ X F + ( I A − ∣ 0 a ⟩ ⟨ 0 a ∣ A ) ⊗ I F , W Q : = ∣ 0 ⟩ ⟨ 0 ∣ Q ⊗ X F + ( I Q − ∣ 0 ⟩ ⟨ 0 ∣ Q ) ⊗ I F . W_A:=|0^a\rangle\langle0^a|_A\otimes X_F+(I_A-|0^a\rangle\langle0^a|_A)\otimes I_F,\qquad W_Q:=|0\rangle\langle0|_Q\otimes X_F+(I_Q-|0\rangle\langle0|_Q)\otimes I_F. W A := ∣ 0 a ⟩ ⟨ 0 a ∣ A ⊗ X F + ( I A − ∣ 0 a ⟩ ⟨ 0 a ∣ A ) ⊗ I F , W Q := ∣0 ⟩ ⟨ 0 ∣ Q ⊗ X F + ( I Q − ∣0 ⟩ ⟨ 0 ∣ Q ) ⊗ I F .
These tests flip F F F exactly when the corresponding tested register is all zero, without otherwise changing that register.
Define the branch actions
U i r w : = U c o h T F D † W A ( D δ i ⊗ I R ) U c o h T F D , U i , j o v : = W Q U c o h T F D † U c o h T F D , U_i^{\mathrm{rw}} := U_{\mathrm{cohTFD}}^\dagger W_A(D_{\delta_i} \otimes I_R)U_{\mathrm{cohTFD}}, \qquad U_{i,j}^{\mathrm{ov}} := W_Q U_{\mathrm{cohTFD}}^\dagger U_{\mathrm{cohTFD}}, U i rw := U cohTFD † W A ( D δ i ⊗ I R ) U cohTFD , U i , j ov := W Q U cohTFD † U cohTFD ,
where both TFD calls in U i r w U_i^{\mathrm{rw}} U i rw use temperature β i \beta_i β i , while in U i , j o v U_{i,j}^{\mathrm{ov}} U i , j ov the forward call uses β i + 2 j δ i \beta_i + 2^j\delta_i β i + 2 j δ i and the adjoint call uses β i \beta_i β i . The final adjoint in U i , j o v U_{i,j}^{\mathrm{ov}} U i , j ov acts only on Q Q Q , so it preserves the flag probability computed above.
On the valid branch subspace, define
U b r a n c h : = ∑ i = 0 ℓ − 1 ∣ i , 0 ⟩ ⟨ i , 0 ∣ I J ⊗ U i r w + ∑ i = 0 ℓ − 1 ∑ j = 1 k i ∣ i , j ⟩ ⟨ i , j ∣ I J ⊗ U i , j o v . U_{\mathrm{branch}} := \sum_{i=0}^{\ell-1} |i,0\rangle\langle i,0|_{IJ} \otimes U_i^{\mathrm{rw}} + \sum_{i=0}^{\ell-1}\sum_{j=1}^{k_i} |i,j\rangle\langle i,j|_{IJ} \otimes U_{i,j}^{\mathrm{ov}}. U branch := i = 0 ∑ ℓ − 1 ∣ i , 0 ⟩ ⟨ i , 0 ∣ I J ⊗ U i rw + i = 0 ∑ ℓ − 1 j = 1 ∑ k i ∣ i , j ⟩ ⟨ i , j ∣ I J ⊗ U i , j ov .
and extend it as the identity on the orthogonal complement of this subspace. Since the branch projectors are mutually orthogonal and each branch action is unitary, this defines a unitary.
To implement this direct sum, first load β i \beta_i β i on reweighting branches and β i + 2 j δ i \beta_i + 2^j\delta_i β i + 2 j δ i on overlap branches into a temporary temperature register, and apply U c o h T F D U_{\mathrm{cohTFD}} U cohTFD unconditionally. Apply D δ i D_{\delta_i} D δ i and W A W_A W A only on the reweighting branches. Reversibly replace the temperature by β i \beta_i β i , apply U c o h T F D † U_{\mathrm{cohTFD}}^\dagger U cohTFD † unconditionally, and apply W Q W_Q W Q only on the overlap branches. Unload the temperature register; the branch and parameter registers remain unchanged, and the temporary register returns to zero. For invalid branch indices, use temperature zero in both calls and omit the QSVT operation and both tests, so the two calls cancel exactly. No externally controlled coherent-TFD call is required.
For every ( i , j ) ∈ R (i,j) \in\mathcal{R} ( i , j ) ∈ R , its action on the initialized workspace is
U b r a n c h ∣ i , j ⟩ I J ∣ p a r i , j ⟩ P ∣ 0 ⟩ Q ∣ 0 ⟩ A ∣ 0 ⟩ F = ∣ i , j ⟩ I J ∣ p a r i , j ⟩ P ( p i , j ∣ ϕ i , j 1 ⟩ Q A ∣ 1 ⟩ F + 1 − p i , j ∣ ϕ i , j 0 ⟩ Q A ∣ 0 ⟩ F ) , \begin{aligned}
U_{\mathrm{branch}}|i,j\rangle_{IJ}|\mathrm{par}_{i,j}\rangle_P|0\rangle_Q|0\rangle_A|0\rangle_F \\
&= |i,j\rangle_{IJ}|\mathrm{par}_{i,j}\rangle_P\left(\sqrt{p_{i,j}}|\phi^1_{i,j}\rangle_{QA}|1\rangle_F+\sqrt{1-p_{i,j}}|\phi^0_{i,j}\rangle_{QA}|0\rangle_F\right),
\end{aligned} U branch ∣ i , j ⟩ I J ∣ par i , j ⟩ P ∣0 ⟩ Q ∣0 ⟩ A ∣0 ⟩ F = ∣ i , j ⟩ I J ∣ par i , j ⟩ P ( p i , j ∣ ϕ i , j 1 ⟩ Q A ∣1 ⟩ F + 1 − p i , j ∣ ϕ i , j 0 ⟩ Q A ∣0 ⟩ F ) ,
where ∣ ϕ i , j 1 ⟩ |\phi^1_{i,j}\rangle ∣ ϕ i , j 1 ⟩ and ∣ ϕ i , j 0 ⟩ |\phi^0_{i,j}\rangle ∣ ϕ i , j 0 ⟩ are normalized states of Q ⊗ A Q \otimes A Q ⊗ A . Thus Pr ( F = 1 ∣ i , j ) = p i , j \Pr(F=1\mid i,j)=p_{i,j} Pr ( F = 1 ∣ i , j ) = p i , j , while the branch and parameter registers are unchanged. By linearity, the same unitary acts coherently on the full branch superposition.
The two coherent-TFD calls are shared by all branches. Thus one application of U b r a n c h U_{\mathrm{branch}} U branch uses one forward and one adjoint coherent-TFD call, no fixed-temperature TFD call, and O ~ ( 1 ) \widetilde{O}(1) O ( 1 ) block-encoding queries. For the latter bound, pad the branch-dependent QSVT circuits to a common query schedule and use the supplied controlled block-encoding access to enable the required queries on each reweighting branch. The adjoint U b r a n c h † U_{\mathrm{branch}}^\dagger U branch † has the same query cost.
Reversible harmonic-number sample
Proof of Lemma 5.2. Fix a branch with success probability μ ∈ [ γ , 1 ] \mu\in[\gamma,1] μ ∈ [ γ , 1 ] . For 1 ≤ m ≤ M 1 \le m \le M 1 ≤ m ≤ M , Pr ( G M ≥ m ) = ( 1 − μ ) m \Pr(G_M \ge m)=(1-\mu)^m Pr ( G M ≥ m ) = ( 1 − μ ) m . Hence the tail-sum identity gives
E [ H G M ] = ∑ m = 1 M ( 1 − μ ) m m . \mathbb{E}[H_{G_M}] = \sum_{m=1}^{M}\frac{(1-\mu)^m}{m}. E [ H G M ] = m = 1 ∑ M m ( 1 − μ ) m .
Since − ln μ = ∑ m = 1 ∞ ( 1 − μ ) m / m -\ln\mu=\sum_{m=1}^{\infty}(1-\mu)^m/m − ln μ = ∑ m = 1 ∞ ( 1 − μ ) m / m , the truncation bias is nonnegative and satisfies
− ln μ − E [ H G M ] = ∑ m = M + 1 ∞ ( 1 − μ ) m m ≤ ( 1 − μ ) M + 1 μ ( M + 1 ) ≤ e − γ ( M + 1 ) γ ( M + 1 ) . \begin{aligned}
-\ln\mu-\mathbb{E}[H_{G_M}]
= \sum_{m=M+1}^{\infty}\frac{(1-\mu)^m}{m} \\
&\le\frac{(1-\mu)^{M+1}}{\mu(M+1)}
\le\frac{e^{-\gamma(M+1)}}{\gamma(M+1)}.
\end{aligned} − ln μ − E [ H G M ] = m = M + 1 ∑ ∞ m ( 1 − μ ) m ≤ μ ( M + 1 ) ( 1 − μ ) M + 1 ≤ γ ( M + 1 ) e − γ ( M + 1 ) .
Moreover, 0 ≤ H G M ≤ H M 0 \le H_{GM} \le H_M 0 ≤ H GM ≤ H M , so H G M 2 ≤ H M H G M H_{GM}^{2} \le H_M H_{GM} H GM 2 ≤ H M H GM . Taking expectations and using E [ H G M ] ≤ − ln μ ≤ ln ( 1 / γ ) \mathbb{E}[H_{GM}] \le-\ln\mu\le\ln(1/\gamma) E [ H GM ] ≤ − ln μ ≤ ln ( 1/ γ ) proves the second-moment bound.
For the coherent implementation, use M M M fresh flag and workspace registers and apply U b r a n c h U_{\mathrm{branch}} U branch once to each pair, without measurement. Conditioned on the fixed branch, let b m b_m b m be the success flag of the m m m -th trial. Reversibly compute
r m : = ∏ t = 1 m ( 1 − b t ) , 1 ≤ m ≤ M , r_m := \prod_{t=1}^{m}(1-b_t), \qquad1 \le m \le M, r m := t = 1 ∏ m ( 1 − b t ) , 1 ≤ m ≤ M ,
so that
H G M = ∑ m = 1 M r m m . H_{GM} = \sum_{m=1}^{M} \frac{r_m}{m}. H GM = m = 1 ∑ M m r m .
Reversible Boolean circuits compute the r m r_m r m , and controlled fixed-point additions approximate this sum within ζ \zeta ζ . The branch register J J J selects the logarithmic sample 2 − H ~ G M 2-\widetilde{H}_{GM} 2 − H GM for j = 0 j=0 j = 0 and H ~ G M \widetilde{H}_{GM} H GM for j ≥ 1 j \ge1 j ≥ 1 . All these computations are reversible, so the complete coherent preparation is unitary and its inverse is obtained by reversing the circuit. The full register-level construction is given below, in the proof of Lemma 5.3 . This proves the claimed coherent implementation. □
Let Y ~ i , 0 : = 2 − H ~ G M \widetilde{Y}_{i,0}:=2-\widetilde{H}_{GM} Y i , 0 := 2 − H GM and Y ~ i , j : = H ~ G M \widetilde{Y}_{i,j}:=\widetilde{H}_{GM} Y i , j := H GM for j ≥ 1 j\ge1 j ≥ 1 be the local logarithmic samples, and define
Y ~ i , j : = { ln p i , 0 + 2 , j = 0 , − ln p i , j , j ≥ 1. \widetilde{Y}_{i,j}:=
\begin{cases}
\ln p_{i,0}+2, & j=0,\\
-\ln p_{i,j}, & j\ge1.
\end{cases} Y i , j := { ln p i , 0 + 2 , − ln p i , j , j = 0 , j ≥ 1.
With the parameters in Algorithm 3, every implemented branch probability satisfies p i , j ≥ γ = γ 0 / 2 p_{i,j}\ge\gamma=\gamma_0/2 p i , j ≥ γ = γ 0 /2 . Therefore
∣ E [ Y ~ i , j ] − Y ~ i , j ∣ ≤ ϵ 8 L , E [ Y ~ i , j 2 ] ≤ 4 H M ln ( 1 / γ ) + 4 ζ 2 + 8 = O ~ ( 1 ) . \left|\mathbb{E}[\widetilde{Y}_{i,j}]-\widetilde{Y}_{i,j}\right|\le\frac{\epsilon}{8L},\qquad
\mathbb{E}[\widetilde{Y}_{i,j}^{2}]\le4H_M\ln(1/\gamma)+4\zeta^2+8=\widetilde{O}(1). E [ Y i , j ] − Y i , j ≤ 8 L ϵ , E [ Y i , j 2 ] ≤ 4 H M ln ( 1/ γ ) + 4 ζ 2 + 8 = O ( 1 ) .
The first bound combines the truncation error ϵ / ( 16 L ) \epsilon/(16L) ϵ / ( 16 L ) and the arithmetic error ζ = ϵ / ( 16 L ) \zeta=\epsilon/(16L) ζ = ϵ / ( 16 L ) ; the constant correction cancels when subtracting Y ~ i , j \widetilde{Y}_{i,j} Y i , j . For the second bound, both branch types satisfy
Y ~ i , j 2 ≤ 2 H ~ G M 2 + 8 , \widetilde{Y}_{i,j}^{2}\le2\widetilde{H}_{GM}^{2}+8, Y i , j 2 ≤ 2 H GM 2 + 8 ,
so Eq. (18) gives the stated uniform bound. For j ≥ 1 j\ge1 j ≥ 1 , Y ~ i , j = Y i , j \widetilde{Y}_{i,j}=Y_{i,j} Y i , j = Y i , j , whereas for j = 0 j=0 j = 0 the difference between Y ~ i , 0 \widetilde{Y}_{i,0} Y i , 0 and Y i , 0 Y_{i,0} Y i , 0 is controlled by Lemma B.3 .
Preparing one coherent logarithmic sample, excluding branch-state preparation and arithmetic gates, uses M M M applications of U b r a n c h U_{\mathrm{branch}} U branch , and its inverse uses M M M applications of U b r a n c h † U_{\mathrm{branch}}^{\dagger} U branch † . Since each branch trial uses at most two coherent-TFD calls and O ~ ( 1 ) \widetilde{O}(1) O ( 1 ) block-encoding queries, one reflection about the prepared sample state uses at most 4 M 4M 4 M coherent-TFD calls, O ~ ( M ) \widetilde{O}(M) O ( M ) block-encoding queries, and no fixed-temperature TFD call.
Proof of Lemma 5.3. Use the branch set R \mathcal{R} R , distribution π \pi π , scale L L L , truncation length M M M , and accuracy ζ \zeta ζ from the statement. The registers I , J I,J I , J store the branch index, and P P P stores the corresponding parameter string p a r i , j \mathrm{par}_{i,j} par i , j . The branch-preparation and parameter-loading unitaries satisfy
U π ∣ 0 ⟩ I J = ∑ ( i , j ) ∈ R π i , j ∣ i , j ⟩ I J , U_{\pi}|0\rangle_{IJ}=\sum_{(i,j)\in\mathcal{R}}\sqrt{\pi_{i,j}}\,|i,j\rangle_{IJ}, U π ∣0 ⟩ I J = ( i , j ) ∈ R ∑ π i , j ∣ i , j ⟩ I J ,
and
U l o a d ∣ i , j ⟩ I J ∣ 0 ⟩ P = ∣ i , j ⟩ I J ∣ p a r i , j ⟩ P . U_{\mathrm{load}}|i,j\rangle_{IJ}|0\rangle_P
=|i,j\rangle_{IJ}|\mathrm{par}_{i,j}\rangle_P. U load ∣ i , j ⟩ I J ∣0 ⟩ P = ∣ i , j ⟩ I J ∣ par i , j ⟩ P .
For m = 1 , … , M m = 1,\ldots,M m = 1 , … , M , let F m F_m F m be the success-flag register for the m m m -th trial, and let U b r a n c h ( m ) U_{\mathrm{branch}}^{(m)} U branch ( m ) act on the shared I , J , P I,J,P I , J , P registers and a fresh flag and workspace:
U b r a n c h ( m ) ∣ i , j ⟩ I J ∣ p a r i , j ⟩ P ∣ 0 ⟩ = ∣ i , j ⟩ I J ∣ p a r i , j ⟩ P ( p i , j ∣ 1 ⟩ F m ∣ ϕ i , j 1 ⟩ + 1 − p i , j ∣ 0 ⟩ F m ∣ ϕ i , j 0 ⟩ ) . U_{\mathrm{branch}}^{(m)} |i,j\rangle_{IJ}|\mathrm{par}_{i,j}\rangle_P|0\rangle
= |i,j\rangle_{IJ}|\mathrm{par}_{i,j}\rangle_P\left(\sqrt{p_{i,j}}|1\rangle_{F_m}|\phi_{i,j}^{1}\rangle+\sqrt{1-p_{i,j}}|0\rangle_{F_m}|\phi_{i,j}^{0}\rangle\right). U branch ( m ) ∣ i , j ⟩ I J ∣ par i , j ⟩ P ∣0 ⟩ = ∣ i , j ⟩ I J ∣ par i , j ⟩ P ( p i , j ∣1 ⟩ F m ∣ ϕ i , j 1 ⟩ + 1 − p i , j ∣0 ⟩ F m ∣ ϕ i , j 0 ⟩ ) .
Here p i , j p_{i,j} p i , j is the branch success probability, and ∣ ϕ i , j b ⟩ |\phi_{i,j}^{b}\rangle ∣ ϕ i , j b ⟩ is the normalized conditional workspace state for flag value b ∈ { 0 , 1 } b \in\{0,1\} b ∈ { 0 , 1 } . For a zero-probability outcome, this state may be chosen arbitrarily. The workspace registers of different trials are disjoint. Since the branch and parameter registers are unchanged, the flags are independent conditional on ( i , j ) (i,j) ( i , j ) .
Write F = F 1 ⋯ F M F = F_1 \cdots F_M F = F 1 ⋯ F M for the collection of flag registers. Introduce registers R p r e f R_{\mathrm{pref}} R pref , H H H , and X X X to store the prefix-failure indicators, the fixed-point harmonic value, and the scaled logarithmic sample, respectively. All registers are initially zero. The arithmetic maps below retain their inputs and are implemented reversibly, with any temporary arithmetic workspace returned to zero.
First, define U r U_r U r by
U r : ∣ b 1 , … , b M ⟩ F ∣ 0 M ⟩ R p r e f ⟼ ∣ b 1 , … , b M ⟩ F ∣ r 1 , … , r M ⟩ R p r e f , r m : = ∏ t = 1 m ( 1 − b t ) . U_r: |b_1,\ldots,b_M\rangle_F|0^M\rangle_{R_{\mathrm{pref}}} \longmapsto|b_1,\ldots,b_M\rangle_F|r_1,\ldots,r_M\rangle_{R_{\mathrm{pref}}}, \qquad r_m := \prod_{t=1}^{m}(1-b_t). U r : ∣ b 1 , … , b M ⟩ F ∣ 0 M ⟩ R pref ⟼ ∣ b 1 , … , b M ⟩ F ∣ r 1 , … , r M ⟩ R pref , r m := t = 1 ∏ m ( 1 − b t ) .
Thus r m = 1 r_m = 1 r m = 1 exactly when the first m m m trials all fail.
Choose fixed-point constants c ~ m \widetilde{c}_m c m , represented at a common precision, such that
∣ c ~ m − 1 m ∣ ≤ ζ M , m = 1 , … , M . \left|\widetilde{c}_m-\frac{1}{m}\right|\le\frac{\zeta}{M}, \qquad m=1,\ldots,M. c m − m 1 ≤ M ζ , m = 1 , … , M .
Use a sufficiently large accumulator to perform the following sum without further rounding or overflow:
U H : ∣ r 1 , … , r M ⟩ R p r e f ∣ 0 ⟩ H ⟼ ∣ r 1 , … , r M ⟩ R p r e f ∣ H ~ ⟩ H , H ~ : = ∑ m = 1 M r m c ~ m . U_H: |r_1,\ldots,r_M\rangle_{R_{\mathrm{pref}}}|0\rangle_H \longmapsto|r_1,\ldots,r_M\rangle_{R_{\mathrm{pref}}}|\widetilde{H}\rangle_H, \qquad\widetilde{H}:=\sum_{m=1}^{M}r_m\widetilde{c}_m. U H : ∣ r 1 , … , r M ⟩ R pref ∣0 ⟩ H ⟼ ∣ r 1 , … , r M ⟩ R pref ∣ H ⟩ H , H := m = 1 ∑ M r m c m .
Since r m ∈ { 0 , 1 } r_m \in\{0,1\} r m ∈ { 0 , 1 } ,
∣ H ~ − ∑ m = 1 M r m m ∣ ≤ ∑ m = 1 M r m ∣ c ~ m − 1 m ∣ ≤ ζ . \left|\widetilde{H}-\sum_{m=1}^{M}\frac{r_m}{m}\right|\le\sum_{m=1}^{M}r_m\left|\widetilde{c}_m-\frac{1}{m}\right|\le\zeta. H − m = 1 ∑ M m r m ≤ m = 1 ∑ M r m c m − m 1 ≤ ζ .
Using the sample-value map from the statement,
x j ( y ) = { L ( 2 − y ) , j = 0 , L y , j ≥ 1 , x_j(y)=
\begin{cases}
L(2-y), & j=0,\\
Ly, & j\ge1,
\end{cases} x j ( y ) = { L ( 2 − y ) , L y , j = 0 , j ≥ 1 ,
define U X U_X U X by
U X : ∣ i , j ⟩ I J ∣ H ~ ⟩ H ∣ 0 ⟩ X ⟼ ∣ i , j ⟩ I J ∣ H ~ ⟩ H ∣ x j ( H ~ ) ⟩ X . U_X: |i,j\rangle_{IJ}|\widetilde{H}\rangle_H|0\rangle_X \longmapsto|i,j\rangle_{IJ}|\widetilde{H}\rangle_H|x_j(\widetilde{H})\rangle_X. U X : ∣ i , j ⟩ I J ∣ H ⟩ H ∣0 ⟩ X ⟼ ∣ i , j ⟩ I J ∣ H ⟩ H ∣ x j ( H ) ⟩ X .
The correction 2 and the integer scale L L L are represented exactly; with a sufficiently large value register, this computation introduces no additional rounding error or oracle queries. The full coherent sampler is
U s a m p l e : = U X U H U r ( U b r a n c h ( M ) ⋯ U b r a n c h ( 1 ) ) U l o a d U π . U_{\mathrm{sample}}:=U_XU_HU_r\left(U_{\mathrm{branch}}^{(M)}\cdots U_{\mathrm{branch}}^{(1)}\right)U_{\mathrm{load}}U_{\pi}. U sample := U X U H U r ( U branch ( M ) ⋯ U branch ( 1 ) ) U load U π .
For b = ( b 1 , … , b M ) ∈ { 0 , 1 } M \mathbf{b}=(b_1,\ldots,b_M)\in\{0,1\}^M b = ( b 1 , … , b M ) ∈ { 0 , 1 } M , write
q i , j ( b ) : = ∏ m = 1 M p i , j b m ( 1 − p i , j ) 1 − b m , q_{i,j}(\mathbf{b}):=\prod_{m=1}^{M}p_{i,j}^{b_m}(1-p_{i,j})^{1-b_m}, q i , j ( b ) := m = 1 ∏ M p i , j b m ( 1 − p i , j ) 1 − b m ,
∣ Φ i , j , b ⟩ : = ⨂ m = 1 M ∣ ϕ i , j b m ⟩ , \lvert\Phi_{i,j,\mathbf{b}}\rangle:=\bigotimes_{m=1}^{M}\lvert\phi_{i,j}^{b_m}\rangle, ∣ Φ i , j , b ⟩ := m = 1 ⨂ M ∣ ϕ i , j b m ⟩ ,
r ( b ) : = ( r 1 ( b ) , … , r M ( b ) ) , r(\mathbf{b}):=(r_1(\mathbf{b}),\ldots,r_M(\mathbf{b})), r ( b ) := ( r 1 ( b ) , … , r M ( b )) ,
H ~ ( b ) : = ∑ m = 1 M r m ( b ) c ~ m . \widetilde{H}(\mathbf{b}):=\sum_{m=1}^{M}r_m(\mathbf{b})\widetilde{c}_m. H ( b ) := m = 1 ∑ M r m ( b ) c m .
Here ∣ Φ i , j , b ⟩ \lvert\Phi_{i,j,\mathbf{b}}\rangle ∣ Φ i , j , b ⟩ is the joint conditional state of all trial workspaces. Expanding the circuit gives
U s a m p l e ∣ 0 ⟩ = ∑ ( i , j ) ∈ R ∑ b ∈ { 0 , 1 } M π i , j q i , j ( b ) × ∣ i , j ⟩ I J ∣ p a r i , j ⟩ P ∣ b ⟩ F ∣ Φ i , j , b ⟩ ⊗ ∣ r ( b ) ⟩ R p r e f ∣ H ~ ( b ) ⟩ H ∣ x j ( H ~ ( b ) ) ⟩ X . \begin{aligned}
U_{\mathrm{sample}}\lvert0\rangle
={}&\sum_{(i,j)\in\mathcal{R}}\sum_{\mathbf{b}\in\{0,1\}^{M}}\sqrt{\pi_{i,j}q_{i,j}(\mathbf{b})}\\
&\quad\times\lvert i,j\rangle_{IJ}\lvert\mathrm{par}_{i,j}\rangle_{P}\lvert\mathbf{b}\rangle_{F}\lvert\Phi_{i,j,\mathbf{b}}\rangle\\
&\quad\otimes\lvert r(\mathbf{b})\rangle_{R_{\mathrm{pref}}}\lvert\widetilde{H}(\mathbf{b})\rangle_{H}\lvert x_j(\widetilde{H}(\mathbf{b}))\rangle_{X}.
\end{aligned} U sample ∣ 0 ⟩ = ( i , j ) ∈ R ∑ b ∈ { 0 , 1 } M ∑ π i , j q i , j ( b ) × ∣ i , j ⟩ I J ∣ par i , j ⟩ P ∣ b ⟩ F ∣ Φ i , j , b ⟩ ⊗ ∣ r ( b ) ⟩ R pref ∣ H ( b ) ⟩ H ∣ x j ( H ( b )) ⟩ X .
Collecting all registers other than X X X into ∣ w o r k i , j , b ⟩ \lvert\mathrm{work}_{i,j,\mathbf{b}}\rangle ∣ work i , j , b ⟩ gives the state in the statement. These workspace states retain the branch index and all flags, so distinct ( i , j , b ) (i,j,\mathbf{b}) ( i , j , b ) give orthogonal states. Measuring only the value register therefore produces X = L ^ I , J X=\widehat{L}_{I,J} X = L I , J , with ( I , J ) ∼ π (I,J)\sim\pi ( I , J ) ∼ π and conditional flag distribution q i , j q_{i,j} q i , j . No measurement is performed during the construction.
The circuit uses one application each of U π U_\pi U π and U l o a d U_{\mathrm{load}} U load , M M M applications of U b r a n c h U_{\mathrm{branch}} U branch , and reversible arithmetic only. Its adjoint is obtained by applying the adjoints of all operations in reverse order, and uses M M M applications of U b r a n c h † U_{\mathrm{branch}}^\dagger U branch † . The arithmetic computing r m r_m r m , H ~ \widetilde{H} H , and X X X requires no additional TFD-preparation or block-encoding queries.
Adaptive cooling schedules
This appendix proves the schedule-length bounds used in § 6 . We first recall the convexity properties of the log-partition function and then prove the bound on L P B L_{\mathrm{PB}} L PB , the length of a perfectly-balanced schedule, for finite endpoints and in the low-temperature specialization. We also give a simple family showing that the low-temperature bound can be asymptotically tight when the smallest excitation energy is exponentially small. The arguments are based on the convexity analysis of [26].
Lemma D.1 ([26]). Let H ⪰ 0 H\succeq0 H ⪰ 0 have eigenvalues E 0 , … , E N − 1 ≥ 0 E_0,\ldots,E_{N-1}\ge0 E 0 , … , E N − 1 ≥ 0 , and let f ( β ) = ln Z ( β ) f(\beta)=\ln Z(\beta) f ( β ) = ln Z ( β ) , where
Z ( β ) = ∑ i = 0 N − 1 e − β E i Z(\beta)=\sum_{i=0}^{N-1}e^{-\beta E_i} Z ( β ) = i = 0 ∑ N − 1 e − β E i is the partition function, with eigenvalues counted with multiplicity. Let Y β Y_\beta Y β denote the random energy under the Gibbs distribution:
Pr ( Y β = E ) = ∑ i : E i = E e − β E i Z ( β ) , E ∈ spec ( H ) . \Pr(Y_\beta=E)=\frac{\sum_{i:E_i=E}e^{-\beta E_i}}{Z(\beta)},\qquad E\in\operatorname{spec}(H). Pr ( Y β = E ) = Z ( β ) ∑ i : E i = E e − β E i , E ∈ spec ( H ) . Then:
f ( β ) f(\beta) f ( β ) is nonincreasing, with
f ′ ( β ) = − E [ Y β ] ≤ 0. f'(\beta)=-\mathbb{E}[Y_\beta]\le0. f ′ ( β ) = − E [ Y β ] ≤ 0.
f ( β ) f(\beta) f ( β ) is convex, with
f ′ ′ ( β ) = Var ( Y β ) ≥ 0. f^{\prime\prime}(\beta)=\operatorname{Var}(Y_\beta)\ge0. f ′′ ( β ) = Var ( Y β ) ≥ 0.
At β = 0 \beta=0 β = 0 ,
f ′ ( 0 ) = − E [ Y 0 ] ≥ − ∥ H ∥ ∞ . f^\prime(0)=-\mathbb{E}[Y_0]\ge-\lVert H\rVert_\infty. f ′ ( 0 ) = − E [ Y 0 ] ≥ − ∥ H ∥ ∞ .
We now prove the perfectly-balanced schedule-length bound used in the main text. The argument is based on the convexity construction of [26], but we use it directly for perfectly-balanced schedules and do not perform the additional Chebyshev refinement. The related bound in Harrow and Wei [12 ] appears to contain minor sign mistakes as written, so we give an alternative proof here for completeness.
Proof of Theorem 6.2 . The finite-endpoint statement follows from [26, Lemma 4.3]. Applied to f ( β ) = ln Z ( β ) f(\beta)=\ln Z(\beta) f ( β ) = ln Z ( β ) , that lemma gives a sequence
0 = γ 0 < γ 1 < ⋯ < γ L P B = γ 0=\gamma_0<\gamma_1<\cdots<\gamma_{L_{\mathrm{PB}}}=\gamma 0 = γ 0 < γ 1 < ⋯ < γ L PB = γ
satisfying
f ( γ i + γ i + 1 2 ) ≥ f ( γ i ) + f ( γ i + 1 ) 2 − 1 f\left(\frac{\gamma_i+\gamma_{i+1}}{2}\right)\ge\frac{f(\gamma_i)+f(\gamma_{i+1})}{2}-1 f ( 2 γ i + γ i + 1 ) ≥ 2 f ( γ i ) + f ( γ i + 1 ) − 1
for every interval and
L P B ≤ 1 + ( f ( 0 ) − f ( γ ) ) ln − f ′ ( 0 ) − f ′ ( γ ) . L_{\mathrm{PB}}\le1+\sqrt{\bigl(f(0)-f(\gamma)\bigr)\ln\frac{-f^\prime(0)}{-f^\prime(\gamma)}}. L PB ≤ 1 + ( f ( 0 ) − f ( γ ) ) ln − f ′ ( γ ) − f ′ ( 0 ) .
In the maximal-endpoint construction used in the proof of that lemma, every nonfinal interval saturates the inequality. Hence every nonfinal interval is perfectly balanced in our terminology, while the final interval may satisfy the inequality strictly if it terminates at the prescribed endpoint γ \gamma γ . The stated O ( ⋅ ) O(\cdot) O ( ⋅ ) bound follows immediately when f ( 0 ) − f ( γ ) = O ( n ) f(0)-f(\gamma)=O(n) f ( 0 ) − f ( γ ) = O ( n ) .
We now prove the low-temperature specialization. For H ˉ = H − E 0 I \bar{H}=H-E_0I H ˉ = H − E 0 I , write
Z ˉ ( β ) : = Tr ( e − β H ˉ ) , f H ˉ ( β ) : = ln Z ˉ ( β ) . \bar{Z}(\beta):=\operatorname{Tr}(e^{-\beta\bar{H}}),\qquad f_{\bar{H}}(\beta):=\ln\bar{Z}(\beta). Z ˉ ( β ) := Tr ( e − β H ˉ ) , f H ˉ ( β ) := ln Z ˉ ( β ) .
The shifted Hamiltonian has ground energy zero, ground-state degeneracy N 0 N_0 N 0 , and smallest positive excitation E s E_s E s . Therefore
f H ˉ ( 0 ) = n ln 2 , lim β → ∞ f H ˉ ( β ) = ln N 0 . f_{\bar{H}}(0)=n\ln2,\qquad\lim_{\beta\to\infty}f_{\bar{H}}(\beta)=\ln N_0. f H ˉ ( 0 ) = n ln 2 , β → ∞ lim f H ˉ ( β ) = ln N 0 .
Since ln N 0 + 2 < n ln 2 \ln N_0+2<n\ln2 ln N 0 + 2 < n ln 2 , continuity implies that there exists a finite γ > 0 \gamma>0 γ > 0 such that
f H ˉ ( γ ) = ln N 0 + 2. f_{\bar{H}}(\gamma)=\ln N_0+2. f H ˉ ( γ ) = ln N 0 + 2.
Thus
f H ˉ ( 0 ) − f H ˉ ( γ ) = n ln 2 − ln N 0 − 2 , Z ˉ ( γ ) = N 0 e 2 . f_{\bar{H}}(0)-f_{\bar{H}}(\gamma)=n\ln2-\ln N_0-2,\qquad\bar{Z}(\gamma)=N_0e^2. f H ˉ ( 0 ) − f H ˉ ( γ ) = n ln 2 − ln N 0 − 2 , Z ˉ ( γ ) = N 0 e 2 .
The excited states contribute
Z ˉ ( γ ) − N 0 = N 0 ( e 2 − 1 ) . \bar{Z}(\gamma)-N_0=N_0(e^2-1). Z ˉ ( γ ) − N 0 = N 0 ( e 2 − 1 ) .
Since every positive eigenvalue of H ˉ \bar{H} H ˉ is at least E s E_s E s ,
− f H ˉ ′ ( γ ) = ∑ i ( E i − E 0 ) e − γ ( E i − E 0 ) Z ˉ ( γ ) ≥ E s ( e 2 − 1 ) e 2 . -f^\prime_{\bar{H}}(\gamma)=\frac{\sum_i(E_i-E_0)e^{-\gamma(E_i-E_0)}}{\bar{Z}(\gamma)}\ge\frac{E_s(e^2-1)}{e^2}. − f H ˉ ′ ( γ ) = Z ˉ ( γ ) ∑ i ( E i − E 0 ) e − γ ( E i − E 0 ) ≥ e 2 E s ( e 2 − 1 ) .
At β = 0 \beta=0 β = 0 ,
− f H ˉ ′ ( 0 ) ≤ ∥ H ˉ ∥ ∞ . -f^\prime_{\bar{H}}(0)\le\lVert\bar{H}\rVert_\infty. − f H ˉ ′ ( 0 ) ≤ ∥ H ˉ ∥ ∞ .
Substituting these estimates into the finite-endpoint bound gives
L P B ≤ 1 + ( n ln 2 − ln N 0 − 2 ) ln ( e 2 ∥ H ˉ ∥ ∞ ( e 2 − 1 ) E s ) L_{\mathrm{PB}} \le1+\sqrt{(n\ln2-\ln N_0-2)\ln\left(\frac{e^2\lVert\bar{H}\rVert_\infty}{(e^2-1)E_s}\right)} L PB ≤ 1 + ( n ln 2 − ln N 0 − 2 ) ln ( ( e 2 − 1 ) E s e 2 ∥ H ˉ ∥ ∞ )
Since n ln 2 − ln N 0 − 2 ≤ n ln 2 n\ln2-\ln N_0-2\le n\ln2 n ln 2 − ln N 0 − 2 ≤ n ln 2 , the stated asymptotic bound follows.
Finally,
Z ˉ ( ∞ ) = N 0 , Z ˉ ( γ ) = N 0 e 2 . \bar{Z}(\infty)=N_0,\qquad\bar{Z}(\gamma)=N_0e^2. Z ˉ ( ∞ ) = N 0 , Z ˉ ( γ ) = N 0 e 2 .
Hence the squared TFD overlap between inverse temperatures γ \gamma γ and ∞ \infty ∞ is
O H ˉ ( γ , ∞ ) = Z ˉ ( ∞ ) 2 Z ˉ ( γ ) Z ˉ ( ∞ ) = e − 2 . O_{\bar{H}}(\gamma,\infty)=\frac{\bar{Z}(\infty)^2}{\bar{Z}(\gamma)\bar{Z}(\infty)}=e^{-2}. O H ˉ ( γ , ∞ ) = Z ˉ ( γ ) Z ˉ ( ∞ ) Z ˉ ( ∞ ) 2 = e − 2 .
Thus the terminal interval is e 2 e^2 e 2 -slowly varying. □ \square □
Theorem D.2 (A tightness example). For every n ≥ 3 n\ge3 n ≥ 3 , consider the n n n -qubit Hamiltonian
H n : = ∑ j = 1 n 2 − j ∣ 1 ⟩ ⟨ 1 ∣ j , H_n:=\sum_{j=1}^{n}2^{-j}|1\rangle\langle1|_j, H n := j = 1 ∑ n 2 − j ∣1 ⟩ ⟨ 1 ∣ j , where ∣ 1 ⟩ ⟨ 1 ∣ j |1\rangle\langle1|_j ∣1 ⟩ ⟨ 1 ∣ j denotes the projector ∣ 1 ⟩ ⟨ 1 ∣ |1\rangle\langle1| ∣1 ⟩ ⟨ 1∣ acting on qubit j j j and the identity on all other qubits. Thus, on a computational-basis state ∣ x 1 ⋯ x n ⟩ |x_1\cdots x_n\rangle ∣ x 1 ⋯ x n ⟩ ,
H n ∣ x 1 ⋯ x n ⟩ = ( ∑ j = 1 n x j 2 − j ) ∣ x 1 ⋯ x n ⟩ . H_n|x_1\cdots x_n\rangle=\left(\sum_{j=1}^{n}x_j2^{-j}\right)|x_1\cdots x_n\rangle. H n ∣ x 1 ⋯ x n ⟩ = ( j = 1 ∑ n x j 2 − j ) ∣ x 1 ⋯ x n ⟩ . Let f n ( β ) : = ln Z n ( β ) f_n(\beta):=\ln Z_n(\beta) f n ( β ) := ln Z n ( β ) , and let γ n > 0 \gamma_n>0 γ n > 0 be the unique inverse temperature satisfying
f n ( γ n ) = 2. f_n(\gamma_n)=2. f n ( γ n ) = 2. Then every e 2 e^2 e 2 -slowly-varying schedule from 0 0 0 to γ n \gamma_n γ n contains Ω ( n ) \Omega(n) Ω ( n ) intervals. Conversely, there exists a perfectly-balanced schedule from 0 0 0 to γ n \gamma_n γ n with O ( n ) O(n) O ( n ) intervals. Hence the minimum number of intervals is Θ ( n ) \Theta(n) Θ ( n ) .
Moreover,
E s = 2 − n , ∥ H n ∥ ∞ = 1 − 2 − n , E_s=2^{-n},\qquad\lVert H_n\rVert_\infty=1-2^{-n}, E s = 2 − n , ∥ H n ∥ ∞ = 1 − 2 − n , so that
n ln ∥ H n ∥ ∞ E s = Θ ( n ) . \sqrt{n\ln\frac{\lVert H_n\rVert_\infty}{E_s}}=\Theta(n). n ln E s ∥ H n ∥ ∞ = Θ ( n ) . Thus the low-temperature schedule-length bound is asymptotically tight in this regime.
Proof. Set N : = 2 n N:=2^n N := 2 n . By binary expansion, the spectrum of H n H_n H n is
{ 0 , 1 N , 2 N , … , N − 1 N } , \left\{0,\frac{1}{N},\frac{2}{N},\ldots,\frac{N-1}{N}\right\}, { 0 , N 1 , N 2 , … , N N − 1 } ,
with each eigenvalue appearing once. Therefore E s = 1 / N = 2 − n E_s=1/N=2^{-n} E s = 1/ N = 2 − n and ∥ H n ∥ ∞ = ( N − 1 ) / N \lVert H_n\rVert_\infty=(N-1)/N ∥ H n ∥ ∞ = ( N − 1 ) / N . The partition function is
Z n ( β ) = ∑ k = 0 N − 1 e − β k / N = 1 − e − β 1 − e − β / N , β > 0 , Z_n(\beta)=\sum_{k=0}^{N-1}e^{-\beta k/N}=\frac{1-e^{-\beta}}{1-e^{-\beta/N}},\qquad\beta>0, Z n ( β ) = k = 0 ∑ N − 1 e − β k / N = 1 − e − β / N 1 − e − β , β > 0 ,
with Z n ( 0 ) = N Z_n(0)=N Z n ( 0 ) = N . Since N > e 2 N>e^2 N > e 2 for n ≥ 3 n\ge3 n ≥ 3 , while Z n ( β ) Z_n(\beta) Z n ( β ) decreases continuously from N N N to 1 1 1 , there is a unique finite γ n > 0 \gamma_n>0 γ n > 0 such that Z n ( γ n ) = e 2 Z_n(\gamma_n)=e^2 Z n ( γ n ) = e 2 .
We first prove the lower bound. For every t ≥ 0 t\ge0 t ≥ 0 ,
Z n ( t / 2 ) Z n ( t ) = 1 + e − t / ( 2 N ) 1 + e − t / 2 ≤ 2. \frac{Z_n(t/2)}{Z_n(t)}=\frac{1+e^{-t/(2N)}}{1+e^{-t/2}}\le2. Z n ( t ) Z n ( t /2 ) = 1 + e − t /2 1 + e − t / ( 2 N ) ≤ 2.
where the identity for t = 0 t=0 t = 0 is understood by continuity. Consider any interval 0 ≤ a < b 0\le a<b 0 ≤ a < b . Since Z n Z_n Z n is decreasing and ( a + b ) / 2 ≥ b / 2 (a+b)/2\ge b/2 ( a + b ) /2 ≥ b /2 ,
Z n ( a + b 2 ) ≤ Z n ( b / 2 ) ≤ 2 Z n ( b ) . Z_n\left(\frac{a+b}{2}\right)\le Z_n(b/2)\le2Z_n(b). Z n ( 2 a + b ) ≤ Z n ( b /2 ) ≤ 2 Z n ( b ) .
Hence its squared TFD overlap satisfies
O ( a , b − a ) = Z n ( ( a + b ) / 2 ) 2 Z n ( a ) Z n ( b ) ≤ 4 Z n ( b ) Z n ( a ) . O(a,b-a)=\frac{Z_n((a+b)/2)^2}{Z_n(a)Z_n(b)}\le4\frac{Z_n(b)}{Z_n(a)}. O ( a , b − a ) = Z n ( a ) Z n ( b ) Z n (( a + b ) /2 ) 2 ≤ 4 Z n ( a ) Z n ( b ) .
If the interval is e 2 e^2 e 2 -slowly varying, then O ( a , b − a ) ≥ e − 2 O(a,b-a)\ge e^{-2} O ( a , b − a ) ≥ e − 2 . Therefore
f n ( a ) − f n ( b ) = ln Z n ( a ) Z n ( b ) ≤ 2 + ln 4. f_n(a)-f_n(b)=\ln\frac{Z_n(a)}{Z_n(b)}\le2+\ln4. f n ( a ) − f n ( b ) = ln Z n ( b ) Z n ( a ) ≤ 2 + ln 4.
Now let
0 = β 0 < β 1 < ⋯ < β ℓ = γ n 0=\beta_0<\beta_1<\cdots<\beta_\ell=\gamma_n 0 = β 0 < β 1 < ⋯ < β ℓ = γ n
be any e 2 e^2 e 2 -slowly-varying schedule. Summing the preceding bound over its intervals gives
n ln 2 − 2 = f n ( 0 ) − f n ( γ n ) ≤ ℓ ( 2 + ln 4 ) . n\ln2-2=f_n(0)-f_n(\gamma_n)\le\ell(2+\ln4). n ln 2 − 2 = f n ( 0 ) − f n ( γ n ) ≤ ℓ ( 2 + ln 4 ) .
Thus
ℓ ≥ n ln 2 − 2 2 + ln 4 = Ω ( n ) . \ell\ge\frac{n\ln2-2}{2+\ln4}=\Omega(n). ℓ ≥ 2 + ln 4 n ln 2 − 2 = Ω ( n ) .
Every interval of a perfectly-balanced schedule has squared TFD overlap at least e − 2 e^{-2} e − 2 , with equality on every nonfinal interval. Thus every perfectly-balanced schedule is e 2 e^2 e 2 -slowly varying, and the lower bound above applies to it. Hence
L P B ≥ n ln 2 − 2 2 + ln 4 = Ω ( n ) . L_{\mathrm{PB}}\ge\frac{n\ln2-2}{2+\ln4}=\Omega(n). L PB ≥ 2 + ln 4 n ln 2 − 2 = Ω ( n ) .
A matching upper bound follows directly from Theorem 6.2 . For H n H_n H n , the ground state is unique, E s = 2 − n = 1 / N E_s=2^{-n}=1/N E s = 2 − n = 1/ N , and ∥ H n ∥ ∞ = 1 − 2 − n = ( N − 1 ) / N \lVert H_n\rVert_\infty=1-2^{-n}=(N-1)/N ∥ H n ∥ ∞ = 1 − 2 − n = ( N − 1 ) / N . Moreover, f n ( γ n ) = 2 f_n(\gamma_n)=2 f n ( γ n ) = 2 , so the low-temperature specialization of Theorem 6.2 gives
L P B ≤ 1 + ( n ln 2 − 2 ) ln ( ( N − 1 ) e 2 e 2 − 1 ) = O ( n ) , L_{\mathrm{PB}}\le1+\sqrt{(n\ln2-2)\ln\left(\frac{(N-1)e^2}{e^2-1}\right)}=O(n), L PB ≤ 1 + ( n ln 2 − 2 ) ln ( e 2 − 1 ( N − 1 ) e 2 ) = O ( n ) ,
where N = 2 n N=2^n N = 2 n . Combining the two bounds gives
L P B = Θ ( n ) . L_{\mathrm{PB}}=\Theta(n). L PB = Θ ( n ) .
Finally,
ln ∥ H n ∥ ∞ E s = ln ( N − 1 ) = Θ ( n ) , \ln\frac{\lVert H_n\rVert_\infty}{E_s}=\ln(N-1)=\Theta(n), ln E s ∥ H n ∥ ∞ = ln ( N − 1 ) = Θ ( n ) ,
and therefore
n ln ∥ H n ∥ ∞ E s = Θ ( n ) . \sqrt{n\ln\frac{\lVert H_n\rVert_\infty}{E_s}}=\Theta(n). n ln E s ∥ H n ∥ ∞ = Θ ( n ) .
Thus this family saturates the low-temperature schedule-length bound up to constant factors.
Approximate preparation
In our algorithm, the logarithmic terms A ( β i , 2 j δ i ) A(\beta_i,2^j\delta_i) A ( β i , 2 j δ i ) and B ( β i , δ i ) B(\beta_i,\delta_i) B ( β i , δ i ) from § 3 are evaluated using the canonical thermofield-double purifications of Gibbs states. In practice, these purifications can only be prepared approximately. It is therefore necessary to quantify how state-preparation errors affect the local estimators used by the algorithm. In this appendix, we analyze their effect on the logarithmic terms and on the final reconstruction.
Throughout this section, ∥ ⋅ ∥ 2 \lVert\cdot\rVert_2 ∥ ⋅ ∥ 2 denotes the Euclidean norm on state vectors, and ∥ ⋅ ∥ 1 \lVert\cdot\rVert_1 ∥ ⋅ ∥ 1 denotes the trace norm on operators. As in the main text, assume 0 ⪯ H ⪯ h I 0\preceq H\preceq hI 0 ⪯ H ⪯ h I , with h > 0 h>0 h > 0 , and δ i ≥ 0 \delta_i\geq0 δ i ≥ 0 . For each inverse temperature β \beta β , let ∣ ψ β ⟩ \lvert\psi_\beta\rangle ∣ ψ β ⟩ denote the canonical thermofield-double purification used in the reconstruction. The purification convention is fixed across temperatures. Let ∣ ψ ~ β ⟩ \lvert\widetilde{\psi}_\beta\rangle ∣ ψ β ⟩ denote the normalized state actually prepared by the algorithm. We assume that, for every inverse temperature queried by the algorithm,
∥ ∣ ψ ~ β ⟩ − ∣ ψ β ⟩ ∥ 2 ≤ η . \lVert\lvert\widetilde{\psi}_\beta\rangle-\lvert\psi_\beta\rangle\rVert_2\leq\eta. ∥∣ ψ β ⟩ − ∣ ψ β ⟩ ∥ 2 ≤ η .
This assumption concerns approximation to the prescribed canonical purification; closeness of the reduced Gibbs states alone is not sufficient. Each approximate preparation is implemented by a fixed unitary U ~ β \widetilde{U}_\beta U β satisfying U ~ β ∣ 0 ⟩ = ∣ ψ ~ β ⟩ \widetilde{U}_\beta\lvert0\rangle=\lvert\widetilde{\psi}_\beta\rangle U β ∣ 0 ⟩ = ∣ ψ β ⟩ , and its adjoint is used consistently in the estimation circuits. Thus the preparation error changes the local probabilities being estimated, while the estimation procedure still uses a fixed coherent preparation.
When comparing reduced states, we write
ρ β = Tr a n c ( ∣ ψ β ⟩ ⟨ ψ β ∣ ) , ρ ~ β = Tr a n c ( ∣ ψ ~ β ⟩ ⟨ ψ ~ β ∣ ) . \rho_\beta=\operatorname{Tr}_{\mathrm{anc}}(\lvert\psi_\beta\rangle\langle\psi_\beta\rvert),\qquad\widetilde{\rho}_\beta=\operatorname{Tr}_{\mathrm{anc}}(\lvert\widetilde{\psi}_\beta\rangle\langle\widetilde{\psi}_\beta\rvert). ρ β = Tr anc (∣ ψ β ⟩ ⟨ ψ β ∣) , ρ β = Tr anc (∣ ψ β ⟩ ⟨ ψ β ∣) .
We first bound the perturbation of the overlap-based quantity A ( β i , 2 j δ i ) A(\beta_i,2^j\delta_i) A ( β i , 2 j δ i ) , assuming that the ideal squared overlap is bounded away from zero. We then prove an analogous bound for B ( β i , δ i ) B(\beta_i,\delta_i) B ( β i , δ i ) , using contractivity of partial trace and the trace-norm bound for expectation values.
Theorem E.1 (Stability under approximate purification). *Assume the preparation model above. Suppose that there exist γ A , γ B > 0 \gamma_A,\gamma_B>0 γ A , γ B > 0 such that, for every queried overlap pair ( i , j ) (i,j) ( i , j ) and every queried reweighting term i i i ,
∣ ⟨ ψ β i ∣ ψ β i + 2 j δ i ⟩ ∣ 2 ≥ γ A , Tr ( ρ β i e − δ i H ) ≥ γ B . \left|\langle\psi_{\beta_i}\mid\psi_{\beta_i+2^j\delta_i}\rangle\right|^2\geq\gamma_A,\qquad\operatorname{Tr}(\rho_{\beta_i}e^{-\delta_iH})\geq\gamma_B. ⟨ ψ β i ∣ ψ β i + 2 j δ i ⟩ 2 ≥ γ A , Tr ( ρ β i e − δ i H ) ≥ γ B . If
η ≤ 1 8 min { γ A , γ B } , \eta\leq\frac{1}{8}\min\{\gamma_A,\gamma_B\}, η ≤ 8 1 min { γ A , γ B } , then the quantities obtained by replacing the ideal purifications by the prepared purifications satisfy
∣ A ~ ( β i , 2 j δ i ) − A ( β i , 2 j δ i ) ∣ ≤ 8 η γ A , ∣ B ~ ( β i , δ i ) − B ( β i , δ i ) ∣ ≤ 4 η γ B . \left|\widetilde{A}(\beta_i,2^j\delta_i)-A(\beta_i,2^j\delta_i)\right|\leq\frac{8\eta}{\gamma_A},\qquad\left|\widetilde{B}(\beta_i,\delta_i)-B(\beta_i,\delta_i)\right|\leq\frac{4\eta}{\gamma_B}. A ( β i , 2 j δ i ) − A ( β i , 2 j δ i ) ≤ γ A 8 η , B ( β i , δ i ) − B ( β i , δ i ) ≤ γ B 4 η .
Proof. We first consider
A ( β i , 2 j δ i ) = − ln ∣ ⟨ ψ β i ∣ ψ β i + 2 j δ i ⟩ ∣ 2 , A(\beta_i,2^j\delta_i)=-\ln\left|\langle\psi_{\beta_i}\mid\psi_{\beta_i+2^j\delta_i}\rangle\right|^2, A ( β i , 2 j δ i ) = − ln ⟨ ψ β i ∣ ψ β i + 2 j δ i ⟩ 2 ,
and its approximate counterpart
A ~ ( β i , 2 j δ i ) = − ln ∣ ⟨ ψ ~ β i ∣ ψ ~ β i + 2 j δ i ⟩ ∣ 2 . \widetilde{A}(\beta_i,2^j\delta_i)=-\ln\left|\langle\widetilde{\psi}_{\beta_i}\mid\widetilde{\psi}_{\beta_i+2^j\delta_i}\rangle\right|^2. A ( β i , 2 j δ i ) = − ln ⟨ ψ β i ∣ ψ β i + 2 j δ i ⟩ 2 .
By normalization and the triangle inequality,
∣ ⟨ ψ ~ β i ∣ ψ ~ β i + 2 j δ i ⟩ − ⟨ ψ β i ∣ ψ β i + 2 j δ i ⟩ ∣ ≤ 2 η . \left|\langle\widetilde{\psi}_{\beta_i}\mid\widetilde{\psi}_{\beta_i+2^j\delta_i}\rangle-\langle\psi_{\beta_i}\mid\psi_{\beta_i+2^j\delta_i}\rangle\right|\leq2\eta. ⟨ ψ β i ∣ ψ β i + 2 j δ i ⟩ − ⟨ ψ β i ∣ ψ β i + 2 j δ i ⟩ ≤ 2 η .
Since both overlap amplitudes have modulus at most one, their squared moduli differ by at most 4 η 4\eta 4 η . The ideal squared overlap is at least γ A \gamma_A γ A , so the approximate squared overlap is at least γ A − 4 η ≥ γ A / 2 \gamma_A-4\eta\ge\gamma_A/2 γ A − 4 η ≥ γ A /2 . The logarithm is 2 / γ A 2/\gamma_A 2/ γ A -Lipschitz on [ γ A / 2 , 1 ] [\gamma_A/2,1] [ γ A /2 , 1 ] . Consequently,
∣ A ~ ( β i , 2 j δ i ) − A ( β i , 2 j δ i ) ∣ ≤ 8 η γ A . \left|\widetilde{A}(\beta_i,2^{j}\delta_i)-A(\beta_i,2^{j}\delta_i)\right|\leq\frac{8\eta}{\gamma_A}. A ( β i , 2 j δ i ) − A ( β i , 2 j δ i ) ≤ γ A 8 η .
We next consider
B ( β i , δ i ) = ln Tr ( ρ β i e − δ i H ) , B ~ ( β i , δ i ) = ln Tr ( ρ ~ β i e − δ i H ) . B(\beta_i,\delta_i)=\ln\operatorname{Tr}(\rho_{\beta_i}e^{-\delta_i H}),\qquad\widetilde{B}(\beta_i,\delta_i)=\ln\operatorname{Tr}(\widetilde{\rho}_{\beta_i}e^{-\delta_i H}). B ( β i , δ i ) = ln Tr ( ρ β i e − δ i H ) , B ( β i , δ i ) = ln Tr ( ρ β i e − δ i H ) .
For normalized pure states, the state-vector error implies
∥ ∣ ψ ~ β i ⟩ ⟨ ψ ~ β i ∣ − ∣ ψ β i ⟩ ⟨ ψ β i ∣ ∥ 1 ≤ 2 ∥ ∣ ψ ~ β i ⟩ − ∣ ψ β i ⟩ ∥ 2 ≤ 2 η . \left\|\lvert\widetilde{\psi}_{\beta_i}\rangle\langle\widetilde{\psi}_{\beta_i}\rvert-\lvert\psi_{\beta_i}\rangle\langle\psi_{\beta_i}\rvert\right\|_1\leq2\left\|\lvert\widetilde{\psi}_{\beta_i}\rangle-\lvert\psi_{\beta_i}\rangle\right\|_2\leq2\eta. ∣ ψ β i ⟩ ⟨ ψ β i ∣ − ∣ ψ β i ⟩ ⟨ ψ β i ∣ 1 ≤ 2 ∣ ψ β i ⟩ − ∣ ψ β i ⟩ 2 ≤ 2 η .
Contractivity of partial trace therefore gives
∥ ρ ~ β i − ρ β i ∥ 1 ≤ 2 η . \left\|\widetilde{\rho}_{\beta_i}-\rho_{\beta_i}\right\|_1\leq2\eta. ∥ ρ β i − ρ β i ∥ 1 ≤ 2 η .
Since H ⪰ 0 H\succeq0 H ⪰ 0 and δ i ≥ 0 \delta_i\geq0 δ i ≥ 0 , ∥ e − δ i H ∥ ∞ ≤ 1 \left\|e^{-\delta_iH}\right\|_\infty\leq1 e − δ i H ∞ ≤ 1 , and hence
∣ Tr ( ρ ~ β i e − δ i H ) − Tr ( ρ β i e − δ i H ) ∣ ≤ ∥ ρ ~ β i − ρ β i ∥ 1 ∥ e − δ i H ∥ ∞ ≤ 2 η . \left|\operatorname{Tr}(\widetilde{\rho}_{\beta_i}e^{-\delta_iH})-\operatorname{Tr}(\rho_{\beta_i}e^{-\delta_iH})\right|\leq\left\|\widetilde{\rho}_{\beta_i}-\rho_{\beta_i}\right\|_1\left\|e^{-\delta_iH}\right\|_\infty\leq2\eta. Tr ( ρ β i e − δ i H ) − Tr ( ρ β i e − δ i H ) ≤ ∥ ρ β i − ρ β i ∥ 1 e − δ i H ∞ ≤ 2 η .
The approximate expectation is thus at least γ B − 2 η ≥ γ B / 2 \gamma_B-2\eta\geq\gamma_B/2 γ B − 2 η ≥ γ B /2 . Applying the 2 / γ B 2/\gamma_B 2/ γ B -Lipschitz bound for the logarithm yields
∣ B ~ ( β i , δ i ) − B ( β i , δ i ) ∣ ≤ 4 η γ B . \left|\widetilde{B}(\beta_i,\delta_i)-B(\beta_i,\delta_i)\right|\leq\frac{4\eta}{\gamma_B}. B ( β i , δ i ) − B ( β i , δ i ) ≤ γ B 4 η .
It follows that a uniform additive perturbation of O ( ϵ ~ ) O(\widetilde{\epsilon}) O ( ϵ ) in each logarithmic term is ensured by
η = O ( ϵ ~ min { γ A , γ B } ) , \eta=O\bigl(\widetilde{\epsilon}\min\{\gamma_A,\gamma_B\}\bigr), η = O ( ϵ min { γ A , γ B } ) ,
with a sufficiently small implied constant.
The statistical analysis in Section 4 uses variable-depth variance-sensitive accumulation. Preparation error, however, produces a deterministic bias in the implemented logarithmic terms, which we control using the sum of the absolute reconstruction weights. To make this accumulation explicit, let f p r e p ( β ) f_{\mathrm{prep}}(\beta) f prep ( β ) denote the deterministic reconstruction obtained by replacing A A A and B B B by A ~ \widetilde{A} A and B ~ \widetilde{B} B , respectively. For the schedule 0 = β 0 < ⋯ < β l S V = β 0=\beta_0<\cdots<\beta_{l_{\mathrm{SV}}}=\beta 0 = β 0 < ⋯ < β l SV = β , the reconstruction in Section 3 and the theorem above give
∣ f p r e p ( β ) − f ( β ) ∣ ≤ ∑ i = 0 l S V − 1 ( 2 k i 4 η γ B + ∑ j = 1 k i 2 k i − j 8 η γ A ) ≤ 8 η min { γ A , γ B } ∑ i = 0 l S V − 1 ( 2 k i + 1 − 1 ) . \begin{aligned}
\left|f_{\mathrm{prep}}(\beta)-f(\beta)\right|\leq\sum_{i=0}^{l_{\mathrm{SV}}-1}\left(2^{k_i}\frac{4\eta}{\gamma_B}+\sum_{j=1}^{k_i}2^{k_i-j}\frac{8\eta}{\gamma_A}\right) \\
&\leq\frac{8\eta}{\min\{\gamma_A,\gamma_B\}}\sum_{i=0}^{l_{\mathrm{SV}}-1}\left(2^{k_i+1}-1\right).
\end{aligned} ∣ f prep ( β ) − f ( β ) ∣ ≤ i = 0 ∑ l SV − 1 ( 2 k i γ B 4 η + j = 1 ∑ k i 2 k i − j γ A 8 η ) ≤ min { γ A , γ B } 8 η i = 0 ∑ l SV − 1 ( 2 k i + 1 − 1 ) .
Here the depth choice
k i = max { 0 , ⌊ log 2 ( h ( β i + 1 − β i ) ) ⌋ } k_i=\max\left\{0,\left\lfloor\log_2\bigl(h(\beta_{i+1}-\beta_i)\bigr)\right\rfloor\right\} k i = max { 0 , ⌊ log 2 ( h ( β i + 1 − β i ) ) ⌋ }
implies 2 k i ≤ 1 + 2 h ( β i + 1 − β i ) 2^{k_i}\leq1+2h(\beta_{i+1}-\beta_i) 2 k i ≤ 1 + 2 h ( β i + 1 − β i ) . Therefore,
∑ i = 0 l S V − 1 ( 2 k i + 1 − 1 ) ≤ l S V + 4 h β . \sum_{i=0}^{l_{\mathrm{SV}}-1}\left(2^{k_i+1}-1\right)\leq l_{\mathrm{SV}}+4h\beta. i = 0 ∑ l SV − 1 ( 2 k i + 1 − 1 ) ≤ l SV + 4 h β .
Thus it suffices to take
ϵ ~ = Θ ( ϵ l S V + h β ) , η = O ( ϵ min { γ A , γ B } l S V + h β ) , \widetilde{\epsilon}=\Theta\left(\frac{\epsilon}{l_{\mathrm{SV}}+h\beta}\right), \qquad\eta=O\left(\frac{\epsilon\min\{\gamma_A,\gamma_B\}}{l_{\mathrm{SV}}+h\beta}\right), ϵ = Θ ( l SV + h β ϵ ) , η = O ( l SV + h β ϵ min { γ A , γ B } ) ,
with constants chosen so that preparation bias uses only a fixed fraction of the total error budget.
The approximate local probabilities remain bounded below by constant fractions of their ideal lower bounds, so the statistical analysis applies with correspondingly adjusted conditioning constants. Any operator-approximation error in the reweighting circuit is budgeted separately and combined with preparation error by the triangle inequality. With these error budgets, the final additive accuracy for f ( β ) = ln Z ( β ) f(\beta)=\ln Z(\beta) f ( β ) = ln Z ( β ) , and hence the corresponding multiplicative accuracy for Z ( β ) Z(\beta) Z ( β ) , is preserved.
Ground-state degeneracy from finite-temperature estimates
This appendix gives the detailed reduction from finite-temperature partition-function estimation to ground-state degeneracy estimation. The reduction never requires evaluating the partition function at β = ∞ \beta=\infty β = ∞ . Instead, a sufficiently large finite inverse temperature suppresses the excited-state contribution. The required inverse temperature is controlled by a lower bound on the spectral gap above the ground space, and the reduction additionally requires either the exact ground energy or an estimate of it.
Theorem F.1 (Ground-state degeneracy from finite-temperature estimates). Let H H H be an n n n -qubit Hamiltonian satisfying
0 ⪯ H ⪯ h I , 0\preceq H\preceq hI, 0 ⪯ H ⪯ h I , with ground-state energy E 0 E_0 E 0 and ground-state degeneracy N 0 N_0 N 0 . Write
Z ( β ) : = Tr ( e − β H ) , f ( β ) : = ln Z ( β ) . Z(\beta):=\operatorname{Tr}(e^{-\beta H}), \qquad f(\beta):=\ln Z(\beta). Z ( β ) := Tr ( e − β H ) , f ( β ) := ln Z ( β ) . Assume that a lower bound Δ l b > 0 \Delta_{\mathrm{lb}}>0 Δ lb > 0 on the gap above the ground space is known, so that
E j − E 0 ≥ Δ l b E_j-E_0\ge\Delta_{\mathrm{lb}} E j − E 0 ≥ Δ lb for every eigenvalue E j > E 0 E_j>E_0 E j > E 0 . Fix ϵ ∈ ( 0 , 1 ] \epsilon\in(0,1] ϵ ∈ ( 0 , 1 ] , and choose a finite inverse temperature satisfying
β ≥ n ln 2 + ln ( 6 / ϵ ) Δ l b . \beta\ge\frac{n\ln2+\ln(6/\epsilon)}{\Delta_{\mathrm{lb}}}. β ≥ Δ lb n ln 2 + ln ( 6/ ϵ ) . Suppose that estimates f ^ ( β ) \widehat{f}(\beta) f ( β ) and E ^ 0 \widehat{E}_0 E 0 satisfy
∣ f ^ ( β ) − f ( β ) ∣ ≤ ϵ 6 , ∣ E ^ 0 − E 0 ∣ ≤ ϵ 6 β . \left|\widehat{f}(\beta)-f(\beta)\right|\le\frac{\epsilon}{6}, \qquad\left|\widehat{E}_0-E_0\right|\le\frac{\epsilon}{6\beta}. f ( β ) − f ( β ) ≤ 6 ϵ , E 0 − E 0 ≤ 6 β ϵ . Define
N ^ 0 : = exp ( f ^ ( β ) + β E ^ 0 ) . \widehat{N}_0:=\exp\left(\widehat{f}(\beta)+\beta\widehat{E}_0\right). N 0 := exp ( f ( β ) + β E 0 ) . Then
1 − ϵ ≤ N ^ 0 N 0 ≤ 1 + ϵ . 1-\epsilon\le\frac{\widehat{N}_0}{N_0}\le1+\epsilon. 1 − ϵ ≤ N 0 N 0 ≤ 1 + ϵ . Proof. Writing the eigenvalues with multiplicity, we have
Z ( β ) = N 0 e − β E 0 + ∑ j : E j > E 0 e − β E j . Z(\beta)=N_0e^{-\beta E_0}+\sum_{j:E_j>E_0}e^{-\beta E_j}. Z ( β ) = N 0 e − β E 0 + j : E j > E 0 ∑ e − β E j . After factoring out the ground-state contribution,
e β E 0 Z ( β ) = N 0 + T β , T β : = ∑ j : E j > E 0 e − β ( E j − E 0 ) . e^{\beta E_0}Z(\beta)=N_0+T_\beta, \qquad T_\beta:=\sum_{j:E_j>E_0}e^{-\beta(E_j-E_0)}. e β E 0 Z ( β ) = N 0 + T β , T β := j : E j > E 0 ∑ e − β ( E j − E 0 ) .
By the assumed gap lower bound,
T β ≤ 2 n e − β Δ l b . T_{\beta} \le2^n e^{-\beta\Delta_{\mathrm{lb}}}. T β ≤ 2 n e − β Δ lb .
The chosen value of β \beta β therefore implies
T β ≤ ϵ 6 . T_{\beta} \le\frac{\epsilon}{6}. T β ≤ 6 ϵ .
Since N 0 ≥ 1 N_0 \ge1 N 0 ≥ 1 ,
T β N 0 ≤ ϵ 6 . \frac{T_{\beta}}{N_0} \le\frac{\epsilon}{6}. N 0 T β ≤ 6 ϵ .
Write the estimation errors as
f ^ ( β ) = f ( β ) + η f , E ^ 0 = E 0 + η E . \widehat{f}(\beta) = f(\beta) + \eta_f,\qquad\widehat{E}_0 = E_0 + \eta_E. f ( β ) = f ( β ) + η f , E 0 = E 0 + η E .
Then
N ^ 0 = exp ( f ( β ) + β E 0 + η f + β η E ) = e η f + β η E ( N 0 + T β ) , \widehat{N}_0 = \exp(f(\beta) + \beta E_0 + \eta_f + \beta\eta_E) = e^{\eta_f+\beta\eta_E}(N_0 + T_{\beta}), N 0 = exp ( f ( β ) + β E 0 + η f + β η E ) = e η f + β η E ( N 0 + T β ) ,
and hence
N ^ 0 N 0 = e η f + β η E ( 1 + T β N 0 ) . \frac{\widehat{N}_0}{N_0} = e^{\eta_f+\beta\eta_E}\left(1+\frac{T_{\beta}}{N_0}\right). N 0 N 0 = e η f + β η E ( 1 + N 0 T β ) .
The assumed estimation guarantees give
∣ η f + β η E ∣ ≤ ϵ 3 . \lvert\eta_f+\beta\eta_E\rvert\le\frac{\epsilon}{3}. ∣ η f + β η E ∣ ≤ 3 ϵ .
Together with T β / N 0 ≤ ϵ / 6 T_{\beta}/N_0 \le\epsilon/6 T β / N 0 ≤ ϵ /6 , this implies
N ^ 0 N 0 ≤ e ϵ / 3 ( 1 + ϵ 6 ) . \frac{\widehat{N}_0}{N_0} \le e^{\epsilon/3}\left(1+\frac{\epsilon}{6}\right). N 0 N 0 ≤ e ϵ /3 ( 1 + 6 ϵ ) .
For 0 < ϵ ≤ 1 0 < \epsilon\le1 0 < ϵ ≤ 1 , the inequality e x ≤ 1 + 2 x e^x \le1+2x e x ≤ 1 + 2 x for 0 ≤ x ≤ 1 / 3 0 \le x \le1/3 0 ≤ x ≤ 1/3 gives
N ^ 0 N 0 ≤ ( 1 + 2 ϵ 3 ) ( 1 + ϵ 6 ) = 1 + 5 ϵ 6 + ϵ 2 9 ≤ 1 + ϵ . \begin{aligned}
\frac{\widehat{N}_0}{N_0} \le\left(1+\frac{2\epsilon}{3}\right)\left(1+\frac{\epsilon}{6}\right) \\
&=1+\frac{5\epsilon}{6}+\frac{\epsilon^2}{9}\le1+\epsilon.
\end{aligned} N 0 N 0 ≤ ( 1 + 3 2 ϵ ) ( 1 + 6 ϵ ) = 1 + 6 5 ϵ + 9 ϵ 2 ≤ 1 + ϵ .
Similarly,
N ^ 0 N 0 ≥ e − ϵ / 3 ≥ 1 − ϵ . \frac{\widehat{N}_0}{N_0} \ge e^{-\epsilon/3}\ge1-\epsilon. N 0 N 0 ≥ e − ϵ /3 ≥ 1 − ϵ .
This proves the multiplicative error guarantee.
The theorem specifies the temperature and estimation accuracies needed to recover the ground-state degeneracy. We now apply the two partition-function reconstruction theorems at these parameters to obtain the query bounds. Any additional cost of estimating the ground energy is accounted for separately.
Corollary F.2 (Cost of ground-state degeneracy estimation). Under the assumptions of Theorem F.1 , fix 0 < p < 1 0 < p < 1 0 < p < 1 and let
β = n ln 2 + ln ( 6 / ϵ ) Δ l b . \beta= \frac{n\ln2+\ln(6/\epsilon)}{\Delta_{\mathrm{lb}}}. β = Δ lb n ln 2 + ln ( 6/ ϵ ) . Suppose that a supplied C C C -slowly-varying schedule of length ℓ S V ( β ) \ell_{\mathrm{SV}}(\beta) ℓ SV ( β ) reaches this inverse temperature, where C = O ( 1 ) C=O(1) C = O ( 1 ) . For each reconstruction method below, assume the block-encoding normalization and state-preparation access required by the corresponding partition-function estimation theorem.
Using the fixed-temperature reconstruction of Theorem 4.3 with failure probability p / 2 p/2 p /2 , the expected reconstruction-stage query counts for the required partition-function estimate satisfy
N T F D , N B E = O ~ ( ℓ S V ( β ) ( ℓ S V ( β ) + h β ) ln ( 4 / p ) ϵ ) . N_{\mathrm{TFD}},N_{\mathrm{BE}}=\widetilde{\mathcal{O}}\left(\frac{\sqrt{\ell_{\mathrm{SV}}(\beta)}\left(\ell_{\mathrm{SV}}(\beta)+h\beta\right)\ln(4/p)}{\epsilon}\right). N TFD , N BE = O ( ϵ ℓ SV ( β ) ( ℓ SV ( β ) + h β ) ln ( 4/ p ) ) .
Alternatively, using the coherent-temperature reconstruction of Theorem 5.4 with failure probability p / 2 p/2 p /2 , the expected reconstruction-stage query counts for the same partition-function estimate satisfy
N c o h T F D , N B E = O ~ ( ( ℓ S V ( β ) + h β ) ln ( 4 / p ) ϵ ) . N_{\mathrm{cohTFD}},N_{\mathrm{BE}}=\widetilde{\mathcal{O}}\left(\frac{\left(\ell_{\mathrm{SV}}(\beta)+h\beta\right)\ln(4/p)}{\epsilon}\right). N cohTFD , N BE = O ( ϵ ( ℓ SV ( β ) + h β ) ln ( 4/ p ) ) .
If E 0 E_0 E 0 is not known exactly, an additional estimate E ^ 0 \widehat{E}_0 E 0 is required with
∣ E ^ 0 − E 0 ∣ ≤ ϵ 6 β ≤ ϵ Δ l b 6 ( n ln 2 + ln ( 6 / ϵ ) ) . \left|\widehat{E}_0-E_0\right|\leq\frac{\epsilon}{6\beta}\leq\frac{\epsilon\Delta_{\mathrm{lb}}}{6(n\ln2+\ln(6/\epsilon))}. E 0 − E 0 ≤ 6 β ϵ ≤ 6 ( n ln 2 + ln ( 6/ ϵ )) ϵ Δ lb .
If the partition-function and ground-energy estimates each fail with probability at most p / 2 p/2 p /2 , then the resulting N ^ 0 \widehat{N}_0 N 0 has relative error at most ϵ \epsilon ϵ with probability at least 1 − p 1-p 1 − p . The displayed query bounds exclude schedule-generation costs and any additional cost of estimating E 0 E_0 E 0 .
Proof. Run Theorem 4.3 , or alternatively Theorem 5.4 , with additive accuracy ϵ / 6 \epsilon/6 ϵ /6 and failure probability p / 2 p/2 p /2 . Constant rescaling of the accuracy is absorbed by O ~ \widetilde{\mathcal{O}} O . The required ground-energy accuracy is exactly the second estimation guarantee in Theorem F.1 . A union bound shows that both estimation guarantees hold with probability at least 1 − p 1-p 1 − p , and that theorem then gives the claimed relative error.
The gap lower bound determines the inverse temperature needed to suppress excited states. This choice of β \beta β also sets the required precision of the ground-energy estimate: a larger inverse temperature requires a more accurate estimate of the ground energy.
Comparison with prior work
Table 1 compares guarantees and resource units under the stated access models. The system-size bounds for this work use h = O ( n ) h=O(n) h = O ( n ) , β = Θ ( 1 ) \beta=\Theta(1) β = Θ ( 1 ) , and ℓ = O ~ ( n ) \ell=\widetilde{O}(\sqrt{n}) ℓ = O ( n ) .
Table 1 (PDF p. 60). Representative results under the stated access models and resource units. Costs involving ℓ \ell ℓ assume a supplied suitable schedule of length ℓ \ell ℓ , constant conditioning, and constant failure probability; schedule-generation costs are separate.
For partition-function estimation, relative error and additive error in ln Z \ln Z ln Z are equivalent up to constant rescaling for 0 < ϵ ≤ 1 0 < \epsilon\le1 0 < ϵ ≤ 1 .
Remark 5.6 derives the uniform-grid benchmarks for our access models and states the additional temperature-access condition for their coherent-temperature specialization.
Additional notes on the common reconstruction
This appendix records the energy-shift identities and interpretations of the overlap and reweighting terms used in § 3 .
Energy normalization
For the normalization H = H o r i g − L I H = H_{\mathrm{orig}} - LI H = H orig − L I introduced in § 3 , the TFD overlaps are unchanged, while the reweighting terms transform as
R H ( β , s ) = e s L R H o r i g ( β , s ) , B H ( β , s ) = B H o r i g ( β , s ) + s L . R_H(\beta,s) = e^{sL}R_{H_{\mathrm{orig}}}(\beta,s), \qquad B_H(\beta,s) = B_{H_{\mathrm{orig}}}(\beta,s) + sL. R H ( β , s ) = e s L R H orig ( β , s ) , B H ( β , s ) = B H orig ( β , s ) + s L .
The stronger information needed to extract the ground-state degeneracy is discussed separately in § 2.5 .
Thermodynamic interpretation
The logarithmic terms A ( β , s ) A(\beta,s) A ( β , s ) and B ( β , s ) B(\beta,s) B ( β , s ) are second and first finite differences of f f f , respectively, as specified in Definition 3.2 . Their small-step limits give the usual thermodynamic derivatives.
The recursive-doubling identity uses this finite-difference structure to recover a full schedule increment from a short reweighting step. The following interpretation explains the role of its overlap terms.
Circuit constructions for spin chains
This appendix gives the circuit constructions for the one-dimensional application. We prove Proposition 8.1 and account for the auxiliary operations and implementation errors used in Corollary 8.2 . We use the circuit architecture of § 7 . The preparation accuracy concerns the canonical TFD and all additional workspace, not only the reduced Gibbs state.
Proof of Proposition 8.1
Proof. Group a fixed number of adjacent sites if necessary to use the nearest-neighbor formulation of the cited preparation construction. Let H t H_t H t be the Hermitian parent Hamiltonian of its Gaussian-filter Gibbs sampler with single-site Pauli jumps and local-rate normalization. Choose its sign so that its unique ground state is ∣ ψ t ⟩ |\psi_t\rangle ∣ ψ t ⟩ , with energy zero. The gap bound and its uniformity on bounded temperature intervals follow from [5 Theorem I.1 and Section VII] . Thus one positive gap bound applies throughout [ 0 , β max ] [0,\beta_{\max}] [ 0 , β m a x ] , independently of the chain length. This is a gap of the parent Hamiltonian, not an assumption about the physical Hamiltonian.
Uniform preparation path. For endpoint θ \theta θ , use the path s ↦ H s θ s \mapsto H_{s\theta} s ↦ H s θ , 0 ≤ s ≤ 1 0 \leq s \leq1 0 ≤ s ≤ 1 . At s = 0 s = 0 s = 0 , the canonical TFD is a product of Bell pairs. The quasi-adiabatic construction in [5 Theorem C.1 and Appendix C] transports this ground state by unitary evolution. Its local decomposition has a constant number of layers of simulations on blocks of polylogarithmically many sites. Choose the spatial cutoffs, integration ranges, discretizations, and error tolerances using the common gap and locality bounds for [ 0 , β max ] [0,\beta_{\max}] [ 0 , β m a x ] . These choices do not depend on the temperature label.
Temperature-controlled local operations. The temperature-dependent ingredients are block encodings of the parent Hamiltonian and its derivative. Their controlled versions are provided by [8 v2, Lemmas C.5 and C.6] . Reversibly compute the product s θ s\theta s θ to the required precision and use it as the temperature input. The path derivative is
∂ ∂ s H s θ = θ H s θ ′ . \frac{\partial}{\partial s}H_{s\theta}=\theta H'_{s\theta}. ∂ s ∂ H s θ = θ H s θ ′ .
and the second derivative is θ 2 H s θ ′ ′ \theta^2 H''_{s\theta} θ 2 H s θ ′′ . The scalar factors can be encoded using bounds valid for every θ ≤ β max \theta\leq\beta_{\max} θ ≤ β m a x . Multiplication and the additional controls use polynomially many gates in the precision-bit count; they do not require a lookup over the set of queried temperatures.
We verify the normalization and locality requirements for these subroutines. On a block of r r r sites, there are O ( r ) O(r) O ( r ) single-site Pauli jumps. Dividing each jump by the square root of their number gives ∥ ∑ a A a † A a ∥ ≤ 1 \left\|\sum_a A_a^\dagger A_a\right\| \leq1 ∑ a A a † A a ≤ 1 , as required by the cited block-encoding lemmas. Restoring local-rate normalization multiplies the block-encoding normalization by O ( r ) O(r) O ( r ) , not by n n n . For bounded finite-range interactions, the first and second commutators of a single-site jump with the physical Hamiltonian contain only boundedly many bounded local terms. The derivative estimates in [8 v2, Proposition C.2] therefore give polynomial bounds in r r r for the required local operators and their derivatives, uniformly in θ ≤ β max \theta\leq\beta_{\max} θ ≤ β m a x . Their Pauli coefficients and controls are obtained from the supplied local interactions.
The local operators being simulated are the restrictions of the quasi-adiabatic generator, not independent Gibbs preparations on small blocks. Use the explicitly computable decomposition in [5 Appendix C.3] . It expresses these restrictions as polynomially many sums and differences of integrals of local derivatives conjugated by local parent-Hamiltonian evolutions. The preceding block encodings apply to those terms and their spatial truncations. The integral block-encoding and time-dependent simulation construction in [8 v2, proof of Proposition C.1] then applies with θ \theta θ retained as a control. Its filter uses the gap of the full preparation path; no gap of a truncated block is assumed. If a block simulation has target error ξ \xi ξ , its gate count is
poly ( r , log ( 2 n / r ) , log ( 1 / ξ ) ) . \operatorname{poly}\left(r,\log(2n/r),\log(1/\xi)\right). poly ( r , log ( 2 n / r ) , log ( 1/ ξ ) ) .
This conclusion uses the explicit local block encodings, rather than arbitrary matrix synthesis on r r r sites.
Parallel execution and workspace. Take r = polylog ( 2 n / η ) r = \operatorname{polylog}(2n/\eta) r = polylog ( 2 n / η ) , as required by the local decomposition. There are O ( n ) O(n) O ( n ) block simulations in a constant number of layers. Assign the decomposition error at most η / 4 \eta/4 η /4 , and give each block a full-state simulation error O ( η / n ) O(\eta/n) O ( η / n ) , with constants chosen so their sum is at most η / 4 \eta/4 η /4 . The per-block cost is then polylogarithmic in 2 n / η 2n/\eta 2 n / η . An implementation that initially provides only a unitary block approximation can be run at squared accuracy: if its ancilla block approximates a unitary within τ \tau τ , the full output on a zero-ancilla input differs by at most 2 τ \sqrt{2}\tau 2 τ . This converts the block guarantee to a workspace-inclusive error with only logarithmically increased precision.
Distribute the temperature bits to the block workspaces using CNOT trees. This takes O ( n log ( 2 n / η ) ) O(n\log(2n/\eta)) O ( n log ( 2 n / η )) gates and O ( log ( 2 n ) ) O(\log(2n)) O ( log ( 2 n )) depth. Disjoint blocks in the same layer run in parallel with separate simulation workspace. Their parameter registers serve only as controls; reverse the parameter computations and CNOT trees after use. This gives a size and auxiliary-qubit count of n polylog ( 2 n / η ) n\operatorname{polylog}(2n/\eta) n polylog ( 2 n / η ) , and a depth of polylog ( 2 n / η ) \operatorname{polylog}(2n/\eta) polylog ( 2 n / η ) . Locality is used separately on each temperature branch before adding these controls; we do not assume that a Hamiltonian coupled to one shared temperature register is spatially local.
Phase and coherent error. The exact canonical path satisfies ⟨ ψ t ∣ ∂ t ψ t ⟩ = 0 \langle\psi_t|\partial_t\psi_t\rangle= 0 ⟨ ψ t ∣ ∂ t ψ t ⟩ = 0 . Since its parent eigenvalue is zero for every t t t , ⟨ ψ t ∣ H t ′ ∣ ψ t ⟩ = 0 \langle\psi_t|H'_t|\psi_t\rangle= 0 ⟨ ψ t ∣ H t ′ ∣ ψ t ⟩ = 0 . The quasi-adiabatic generator is an integral of conjugated path derivatives, so it has zero expectation in the corresponding ground state. Evolution from the canonical Bell-pair state therefore has no temperature-dependent phase relative to ∣ ψ θ ⟩ |\psi_\theta\rangle ∣ ψ θ ⟩ . This fixes the phase before any numerical simulation is introduced. Allocate the remaining error budget to internal arithmetic and simulation approximations, using uniform tolerances over [ 0 , β max ] [0,\beta_{\max}] [ 0 , β m a x ] .
Let e θ e_\theta e θ be the full output error on label θ \theta θ . The constructed circuit preserves that label. Hence, for ∑ θ ∣ c θ ∣ 2 = 1 \sum_\theta|c_\theta|^2 = 1 ∑ θ ∣ c θ ∣ 2 = 1 ,
∥ ∑ θ c θ ∣ θ ⟩ e θ ∥ 2 2 = ∑ θ ∣ c θ ∣ 2 ∥ e θ ∥ 2 2 ≤ η 2 . \left\|\sum_\theta c_\theta|\theta\rangle e_\theta\right\|_2^2 = \sum_\theta|c_\theta|^2\|e_\theta\|_2^2 \le\eta^2. θ ∑ c θ ∣ θ ⟩ e θ 2 2 = θ ∑ ∣ c θ ∣ 2 ∥ e θ ∥ 2 2 ≤ η 2 .
Thus the error does not acquire a factor equal to the number of temperatures. Reversing the explicit circuit gives its inverse. For an external control, distribute its bit to parallel workspaces and control the elementary gates. This changes the costs by at most polylogarithmic factors and restores the control workspace to zero.
Temperature rounding. The proposition refers to the temperature represented by the input bits. For an unrounded requested temperature, the additional error is controlled by
∥ ∂ ∂ t ∣ ψ t ⟩ ∥ 2 = 1 2 Var ρ t ( H ) ≤ h 4 . \left\|\frac{\partial}{\partial t}|\psi_t\rangle\right\|_2 = \frac{1}{2}\sqrt{\operatorname{Var}_{\rho_t}(H)} \le\frac{h}{4}. ∂ t ∂ ∣ ψ t ⟩ 2 = 2 1 Var ρ t ( H ) ≤ 4 h .
The last inequality follows because the spectrum is contained in an interval of width at most h h h . Rounding within O ( η / h ) O(\eta/h) O ( η / h ) and using a constant fraction of η \eta η for preparation gives an η \eta η -accurate output for the requested temperature. Since h = O ( n ) h = O(n) h = O ( n ) and β max \beta_{\max} β m a x is fixed, this needs O ( log ( 2 n / η ) ) O(\log(2n/\eta)) O ( log ( 2 n / η )) temperature bits. Guard bits for internal products and simulation parameters have the same asymptotic length.
Auxiliary reconstruction costs
We now account for the quantum operations outside TFD preparation. The supplied schedule and the compiled numerical data have polylogarithmically many bits per entry at the precisions specified below. Classical compilation of these data is not included in the quantum circuit costs.
Hamiltonian block encoding. After a known scalar shift, the Hamiltonian has a Pauli expansion H = ∑ a c a P a H=\sum_a c_aP_a H = ∑ a c a P a with O ( n ) O(n) O ( n ) terms and ∑ a ∣ c a ∣ = O ( n ) \sum_a|c_a|=O(n) ∑ a ∣ c a ∣ = O ( n ) . When this sum is nonzero, prepare its coefficient state with amplitudes ∣ c a ∣ / ∑ b ∣ c b ∣ \sqrt{|c_a|/\sum_b|c_b|} ∣ c a ∣/ ∑ b ∣ c b ∣ in a register with exactly one occupied position. A balanced tree of two-qubit rotations splits the amplitude according to the total weight in each subtree. It uses O ( n ) O(n) O ( n ) gates and logarithmic depth. Each occupied position controls the corresponding signed Pauli term. The overlap graph of the nonidentity terms has bounded degree, so a constant number of groups suffices to apply these controlled terms in parallel. An identity term only requires its coefficient control. Reversing the coefficient preparation completes the linear-combination block encoding. If H = 0 H = 0 H = 0 , the block encoding is trivial. Padding the normalization by an ancilla rotation gives a chosen α = Θ ( n ) \alpha= \Theta(n) α = Θ ( n ) , and a known h = Θ ( n ) h = \Theta(n) h = Θ ( n ) can be used as a spectral upper bound. These operations have O ~ ( n ) \widetilde{O}(n) O ( n ) gates and polylogarithmic depth.
Branch preparation and table loading. The branch set R \mathcal{R} R of Eq. (16) has O ~ ( ℓ ) \widetilde{O}(\ell) O ( ℓ ) entries. Prepare its distribution by the same balanced-tree construction on an occupied-position register. Compute the binary pair ( i , j ) (i,j) ( i , j ) by parity trees on the relevant position bits. Since each valid pair identifies one position, reversibly decode the pair and clear the position register. Distribute control bits as needed and uncompute temporary copies. This implements U π U_{\pi} U π with O ~ ( ℓ ) \widetilde{O}(\ell) O ( ℓ ) gates and workspace and polylogarithmic depth, including the index conversion.
For U l o a d U_{\mathrm{load}} U load , fan out the index bits, compare them with every table address in parallel, and form each output bit by a parity tree over the matching entries. Reverse all comparisons and copies. The table has O ~ ( ℓ ) \widetilde{O}(\ell) O ( ℓ ) entries of polylogarithmic length, giving the same resource bounds. This implements the operations specified in Appendix § 13 , Subsection C.1, without assuming a special formula for the schedule. Repeated table values cause no problem because the branch labels are retained.
QSVT, estimation, and reflections. The elementary reweighting steps satisfy α δ i = O ( 1 ) \alpha\delta_i = O(1) α δ i = O ( 1 ) . Their QSVT circuits therefore have polylogarithmic length at the required accuracy. Store the compiled phase angles and active-step flags in the same table. Pad to a common maximum length, making unused gates identities by their flags. Binary-angle-controlled rotations require only linearly many elementary controlled rotations in the angle bit count. The actual block-encoding queries remain charged to the reconstruction query count.
The harmonic sample uses polylogarithmically many flags and precision bits. Prefix products and fixed-point additions therefore have polylogarithmic cost, as do the controlled arithmetic operations in quantum mean estimation. In the fixed-temperature estimator, the phase-estimation and signal-processing routines of [10 ] add at most polylogarithmic overhead per reflection: powers of the reflected unitary are implemented by the corresponding number of calls, not charged as single gates. Clipping and logarithm evaluation use polynomial-time arithmetic in the bit length. Weighted summation and the final median cost at most polylogarithmic overhead per estimate. Their costs are included here, even when performed classically between quantum calls.
A zero-state reflection on the full O ~ ( n ) \widetilde{O}(n) O ( n ) -qubit workspace is implemented by a reversible AND tree, a phase flip, and uncomputation. It has O ~ ( n ) \widetilde{O}(n) O ( n ) gates and polylogarithmic depth. Together with Proposition 8.1 , these constructions bound each elementary oracle or reflection call by O ~ ( n ) \widetilde{O}(n) O ( n ) gates and polylogarithmic depth. A full coherent sample uses polylogarithmically many such calls. For ℓ = O ~ ( n ) \ell= \widetilde{O}(\sqrt{n}) ℓ = O ( n ) , the remaining work above fits within the resource bounds of Corollary 8.2 .
Preparation and numerical error budgets. Run the statistical reconstruction with a constant fraction of the final error tolerance. Choose the uniform TFD accuracy as in Appendix § 15 , decreasing its constant if necessary to preserve the success-probability floor. Since L = ∑ i , j a i , j = O ( ℓ + h β ) L = \sum_{i,j} a_{i,j} = O(\ell+ h\beta) L = ∑ i , j a i , j = O ( ℓ + h β ) , an accuracy η = O ( ϵ / L ) \eta= O(\epsilon/L) η = O ( ϵ / L ) suffices when C = O ( 1 ) C = O(1) C = O ( 1 ) . Use the same approximate preparation and its own inverse every time. Preparation error then changes the fixed branch probabilities; it is not a new independent error on every call.
Approximate loading means exact reversible loading of fixed rounded data. Temperature rounding is included in the preceding state-error budget. Rounding a nonnegative imaginary-time step is controlled by
∥ e − δ H / 2 − e − δ ′ H / 2 ∥ ≤ h 2 ∣ δ − δ ′ ∣ . \left\lVert e^{-\delta H/2} - e^{-\delta' H/2} \right\rVert\le\frac{h}{2} \lvert\delta- \delta' \rvert. e − δ H /2 − e − δ ′ H /2 ≤ 2 h ∣ δ − δ ′ ∣ .
Choose the step precision and QSVT phase accuracy so that the total block error meets the dilation tolerance in the reconstruction algorithm. For a QSVT sequence of polylogarithmic length, summing its gate errors requires only polylogarithmic angle precision. Fixed-point sample evaluation meets the tolerance ζ \zeta ζ in the coherent algorithm; rounding the accumulated output uses another fixed fraction of ϵ \epsilon ϵ .
Branch-state approximation has a separate, bounded effect. If the implemented distribution differs from π \pi π in total variation by at most ξ \xi ξ , then, using ∣ X ∣ ≤ L ( 2 + H M + ζ ) |X| \le L(2 + H_M + \zeta) ∣ X ∣ ≤ L ( 2 + H M + ζ ) , its contribution to the mean error is at most
2 L ( 2 + H M + ζ ) ξ . 2L(2 + H_M + \zeta)\xi. 2 L ( 2 + H M + ζ ) ξ .
Taking ξ = O ( ϵ / [ L ( 2 + H M + ζ ) ] ) \xi= O(\epsilon/[L(2 + H_M + \zeta)]) ξ = O ( ϵ / [ L ( 2 + H M + ζ )]) therefore suffices. Uniform branch conditioning and the second-moment bounds remain valid under this change. All numerical tolerances above require only polylogarithmic bit lengths. Allocating their constants and the statistical failure budget gives the claimed additive error and success probability.
Optional compilation to a fixed finite gate set. The displayed bounds use the elementary-gate model of § 7 . They can also be compiled to a standard finite gate set with polylogarithmic overhead [20 ] . To address the random running time, let G 0 G_0 G 0 , D 0 D_0 D 0 be uniform expected gate and depth bounds for the ideal implementation, run with failure probability at most p / 2 p/2 p /2 . Stop and report failure before exceeding gate or depth budgets 32 G 0 / p 32G_0/p 32 G 0 / p and 32 D 0 / p 32D_0/p 32 D 0 / p , respectively. By Markov’s inequality, these cutoffs add failure probability at most p / 16 p/16 p /16 . The counters can be updated using the known gate and depth costs of each executed layer, with polylogarithmic overhead.
The number of gates is now deterministically bounded. Approximate each rotation sufficiently well that a hybrid bound makes the total variation distance of the complete stopped computation, including its execution history, at most p / 128 p/128 p /128 . It is enough to use operator-norm accuracy proportional to p p p divided by the gate cutoff. The expected gate cost changes by at most the gate cutoff times p / 128 p/128 p /128 , hence by at most G 0 / 4 G_0/4 G 0 /4 ; the analogous change in expected depth is at most D 0 / 4 D_0/4 D 0 /4 . Synthesis of each rotation and the counters add only polylogarithmic factors, and the added failure probabilities sum to less than p / 2 p/2 p /2 . This yields the same displayed bounds up to the suppressed polylogarithmic factors, without assuming a deterministic running time for the original estimator.