Walking the Hypercube: Unbiased Quantum Partition Functions Without the Matrix
Kumar Avinava Dubey, Arijit Sehanobish, Krzysztof Marcin Choromanski
NeurIPS 2026
TL;DR. We present a novel method for computing the trace of the partition functions of Ising systems without ever materializing the Hamiltonian.
Abstract. Computing the partition function of a quantum spin Hamiltonian on sites is a fundamental problem in statistical physics and quantum chemistry. However exact evaluation requires time and memory making it intractable for all but the smallest systems. We propose an unbiased stochastic estimator of , and more generally of for any function admitting a convergent power series over exponentially large, implicitly defined operators using only local random walks, avoiding both matrix materialization and matrix-vector products. Our approach combines Graph Random Features with the Hutchinson's stochastic trace estimator, and exploits the algebraic structure of quantum spin Hamiltonians to reduce the per-step computational cost to , where is the mean degree of the spin coupling graph, independent of the Hilbert space dimension . We validate the estimator empirically against exact matrix exponentiation for small system sizes, and demonstrate its applicability to system sizes where exact methods are infeasible.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:49 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes an unbiased stochastic estimator for quantum partition functions without explicit Hamiltonian materialization. Reviewers agree that the problem is important, the approach is novel, and the theoretical contribution is strong.
The main concerns are:
(0) Limited discussion around the sign problem is undoubtedly the main problem in stochastic estimators for quantum partition functions. (1) sample complexity and variance scaling. (2) scalability beyond the validated regime. (3) clarification of several technical details.
Addressing these points would further strengthen an already promising submission.
Final justification
I have read the authors’ response and the subsequent reviewer discussion.
The rebuttal substantially addressed the main concerns raised in the initial reviews and meta-review. In particular, the authors provided an end-to-end sample-complexity bound, clarified the memory/time tradeoff and underlying computational hardness, added experiments characterizing variance and sign behavior and extended tests to larger sizes.
The main limitation is the sign problem: variance becomes severe at low temperatures, and accuracy at large system sizes in frustrated regimes remains less thoroughly validated. The authors are now explicit about this fundamental limitation.
Following the rebuttal and discussion, overall, I believe the novelty and technical contribution outweigh the remaining limitations, and I recommend acceptance.
Read meta-review
Meta-review
This paper proposes an unbiased stochastic estimator for quantum partition functions without explicit Hamiltonian materialization. Reviewers agree that the problem is important, the approach is novel, and the theoretical contribution is strong.
The main concerns are:
(0) Limited discussion around the sign problem is undoubtedly the main problem in stochastic estimators for quantum partition functions. (1) sample complexity and variance scaling. (2) scalability beyond the validated regime. (3) clarification of several technical details.
Addressing these points would further strengthen an already promising submission.
Final justification
I have read the authors’ response and the subsequent reviewer discussion.
The rebuttal substantially addressed the main concerns raised in the initial reviews and meta-review. In particular, the authors provided an end-to-end sample-complexity bound, clarified the memory/time tradeoff and underlying computational hardness, added experiments characterizing variance and sign behavior and extended tests to larger sizes.
The main limitation is the sign problem: variance becomes severe at low temperatures, and accuracy at large system sizes in frustrated regimes remains less thoroughly validated. The authors are now explicit about this fundamental limitation.
Following the rebuttal and discussion, overall, I believe the novelty and technical contribution outweigh the remaining limitations, and I recommend acceptance.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper tackles the problem of computing the partition function (more generally , where admitting a convergent power series), of a quantum spin Hamiltonian on sites, a quantity that encodes a system's properties but whose exact evaluation requires memory and time, making it intractable beyond very small systems. The authors propose the Hypercube Walk Estimator (HWE), an unbiased stochastic estimator that combines graph random features with Hutchinson's trace estimator to estimate the trace using only local random walks, while never materializing the matrix. The core insight is that the off diagonal part of the Hamiltonian induces a structured hypercube, while the diagonal terms are maintained through incremental local updates and therefore reducing the per-step cost to (where is the mean degree of the spin coupling graph), independent of the Hilbert space dimension . They provide a proof that the estimator is exactly unbiased and adapt it to three Hamiltonian classes of physical interest: (1) the transverse-field Ising model, (2) the Sherrington-Kirkpatrick spin glass and (3) the XXZ model. HWE maintains a bounded memory and accuracy (n the validated that were checked) where exact matrix methods run out of memory.
Strengths and weaknesses
Strengths:
-
Reducing the memory footprint from an exponential to a bounded
-
HWE has exact unbiasedness, without introducing truncation or Trotter approximation errors
-
Dropping the per step computation cost to instead of materializing a giant matrix
Weaknesses:
-
The underlying problem is #P-hard, the number of samples required to control the estimator's noise can still scale exponentially with the system size (in the worst case scenarios)
-
In near zero temperatures, the random walks encounter rapid sign alterations causing the estimator's variance to explode
-
The accuracy was not checked past
Questions
- You describe the method as parallelizable but ran all experiments on a single CPU. Did you actually run any parallel experiments? and if so, how much faster does it get?
- You mention that you trade space complexity for sampling. What is the price of this trade off? How much sampling that trade actually costs as n grows?
- You show the method runs with low memory up to (Figure 2), but the empirical error comparisons stop at (Figures 1,3,4). How do you know the estimate is still accurate at ?
Limitations
Yes
Final justification
Parallelism and sample complexity concerns were resolved, and the novel, unbiased, memory efficient contribution outweighs remaining gaps.
Formatting concerns
No
5 comments
Response to the authors
I thank the authors for the substantial new experiments, which seem to address several concerns well. Two concerns remain regarding the sign behavior and the large accuracy validation:
-
How was the effective sign computed? The table reports 1.596 at and 1.080 at for the XXZ model. Could you define the metric used here and explain the values above 1?
-
The M_only estimator removes the diagonal , which as you note, is precisely what introduces the sign cancellations and larger importance weights. Do you have any check that the full estimate (not just the underlying machinery) is accurate for ?
Thank you for engaging with us.
- How was the effective sign computed? The table reports 1.596 at and 1.080 at for the XXZ model. Could you define the metric used here and explain the values above 1?
where both estimates use the same GRF machinery (Hutchinson probes, random walks, source sampling). uses the actual importance weights (which can be negative for off-diagonal Hamiltonian terms). replaces in the importance ratio while keeping all other components identical. Both quantities are averaged over 500 independent seeds.
Why values above 1 are possible. In path-integral QMC, each sampled configuration contributes to a single sum: , and the unsigned version satisfies term by term. This guarantees .
The GRF estimator has a fundamentally different structure. Each estimate is a product of two walk sums:
Each term carries three independent sign sources: (i) the importance weights , (ii) the Taylor coefficients which alternate in sign, and (iii) the Rademacher hash . Crucially, even when all weights are made positive (the unsigned variant), can still be negative due to sources (ii) and (iii). Removing the weight signs changes the cancellation pattern among all three sources, and can reduce the magnitude of the unsigned relative to the signed when the signed weights happen to align constructively with the Taylor and Rademacher signs. Since the final estimate is a product of two such sums, the term-by-term ordering guarantee of QMC does not hold, and is possible.
Updated results (500 trials). We reran the XXZ experiments with 500 independent seeds (up from 50) to confirm that the values above 1 are systematic, not finite-sample artifacts:
-sweep ():
| Effective Sign | ||
|---|---|---|
| 0.1 | 0.839 | 3.1×10⁻⁶ |
| 0.2 | 0.746 | 1.4×10⁻⁵ |
| 0.3 | 0.707 | 3.7×10⁻⁵ |
| 0.5 | 0.729 | 2.2×10⁻⁴ |
| 0.7 | 0.745 | 3.8×10⁻³ |
| 1.0 | 0.613 | 3.3×10⁻¹ |
| 1.5 | 0.517 | 1.4×10² |
| 2.0 | 1.155 | 4.2×10² |
-sweep ():
| Effective Sign | ||
|---|---|---|
| 4 | 1.597 | 5.4×10⁻⁶ |
| 6 | 0.770 | 9.0×10⁻⁶ |
| 8 | 0.899 | 1.2×10⁻⁵ |
| 10 | 0.746 | 1.5×10⁻⁵ |
| 14 | 1.080 | 2.6×10⁻⁵ |
| 20 | 0.624 | 6.5×10⁻⁵ |
The effective sign, as defined above, is an imperfect diagnostic for GRF because the signed and unsigned estimators compute different mathematical quantities, unlike in QMC where they share a common set of sampled configurations. The relative variance directly measures estimator quality without requiring an unsigned reference: when it is the estimate is precise, when it is dominated by noise. The -sweep shows that grows only mildly from to over to .
- The M-only estimator removes the diagonal , which as you note, is precisely what introduces the sign cancellations and larger importance weights. Do you have any check that the full estimate (not just the underlying machinery) is accurate for ?
To validate the GRF estimator at system sizes beyond the limit of exact diagonalization, we employ the Jordan-Wigner (JW) transformation, which maps the 1D transverse-field Ising model to a system of free fermions, yielding the exact partition function in time. This mapping is specific to one-dimensional models with nearest-neighbor couplings and no frustration, it does not apply to the SK model, the XXZ chain, frustrated lattices, or systems in two or more dimensions, all of which the GRF estimator handles without modification. Using JW as an oracle, we compare GRF estimates for . At , the average increase in error is from 2.5% for to 10.25% for .
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 4/4
- Clarity
- 3/4
- Significance
- 4/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
A method to calculate tr(f(H)) for various discrete systems (spin models). The focus is particularly on the important cases of TFIM, SK and XXZ. The method combines graph random features (GRF) and the Hutchinson trace estimator - crucially it is never necessary to materialize the Laplacian.
Strengths and weaknesses
The paper is well motivated (the problem is tackles is obviously important), and seems to offer a genuinely novel and creative approach. I am not an expert in the field, but my sense is that this is impressive work. The experimental work seems to suggest that the method is competitive. I thought that the baselines were reasonably chosen.
It is also nice that the authors show that walks beyond a hypercube graph walk work with the method, as for the XXZ model.
I would have liked a little more time spent on making the technical ideas clear. In particular, I struggled a little with getting an intuition or section 3.1.
It's probably worth emphasizing in the abstract and intro that this is a method for spin models (i.e. discrete variables), not general problems of the form tr(e^{\beta H}).
Questions
Section E mentions a reasonable concern for the method, namely a sign problem that requires, in the worst case, exponential scaling of the number of walks with system size. As I understand, the experiments tackle relatively small system sizes. Is there a regime of larger systems where another method, in particular QMC, would work but HWE does not for reasons of variance? Are the system sizes shown here useful in practice? (I suspect yes, but might be useful to state for someone outside the field)
Unbiasedness of GRF: you state this as a proposition. Is it known from the literature, obvious, or you proved it? I was unclear.
Limitations
yes
Final justification
Following clarifications about the sign problem and the applicability of the method, I am happy to maintain my score, and would advocate to accept the paper.
Formatting concerns
none
1 comment
Rebuttal
We thank the reviewer for the positive assessment and thoughtful questions.
Section E mentions a reasonable concern for the method, namely a sign problem that requires, in the worst case, exponential scaling of the number of walks with system size. As I understand, the experiments tackle relatively small system sizes. Is there a regime of larger systems where another method, in particular QMC, would work but HWE does not for reasons of variance? Are the system sizes shown here useful in practice?
For unfrustrated (stoquastic) systems, QMC does not have to deal with the sign problem and is highly scalable. However, QMC fundamentally breaks down in frustrated systems (such as the SK model). QMC avoids the exponential variance bottleneck of the "sign problem" under a few specific, basis-dependent conditions. It works inherently for "stoquastic" Hamiltonians, where off-diagonal matrix elements are non-positive in the computational basis; this ensures has non-negative off-diagonals, allowing path-integral weights to act as true probabilities (Bravyi et al., 2008). For unfrustrated models, like bipartite lattices, the Marshall-Peierls rule guarantees non-negative amplitudes (Marshall, 1955; Lieb & Mattis, 1962). In fermionic systems, determinant QMC can operate sign-problem-free when physical symmetries (such as time-reversal) ensure the fermion determinant remains strictly positive (Blankenbecler et al., 1981; Wu & Zhang, 2005). Because the sign problem is basis-dependent, non-stoquastic systems can sometimes be solved if mathematically transformed into a sign-problem-free basis (Hangleiter et al., 2020). However, universally curing the sign problem by finding such a basis is QMA-complete, and perfectly solving it for general frustrated or fermionic systems remains NP-hard (Troyer & Wiese, 2005; Marvian et al., 2019). Our experiments show that HWE has relatively small variance at moderate temperatures even for much higher .
Calculating the partition function for these general, frustrated Hamiltonians is inherently #P-hard, no algorithm can guarantee polynomial time to a fixed accuracy. Our new theorem explicitly reflects this fundamental computational limit (see theorem below), proving an exponential sample complexity scaling of .
However, our core contribution is not breaking #P-hardness, but rather relocating the exponential bottleneck. Exact methods fail due to a memory limit: they require continuous memory. Our HWE method strictly bounds memory to for dense couplings and for sparse couplings, completely eliminating the memory limit.
We trade that space bottleneck for a time bottleneck which, crucially, is embarrassingly parallel. By eliminating the memory barrier, our method allows us to scale to system sizes completely unreachable by exact methods and leverage parallel compute to manage the variance. We have substantially expanded our evaluation to demonstrate this:
Large- Scaling (TFIM on 64 cores) We successfully scaled HWE to (representing a dimensional Hilbert space).
| Avg Wall Time | ||
|---|---|---|
| 20 | 371.5s | |
| 30 | 467.8s | |
| 40 | 483.3s | |
| 50 | 508.8s |
Parallel Speedup (, 1 to 32 workers) Because each Hutchinson sample is independent, the algorithm achieves near-linear speedup ( on 32 workers), demonstrating that the time bottleneck can be effectively mitigated with standard parallel compute.
| Workers | Relative Speedup | Rel Diff in | |
|---|---|---|---|
| 1 | 1.00$\times$ | — | |
| 2 | 1.89$\times$ | -0.45% | |
| 4 | 3.62$\times$ | -0.98% | |
| 8 | 7.78$\times$ | +1.90% | |
| 16 | 13.72$\times$ | -0.16% | |
| 32 | 25.12$\times$ | -0.16% |
We furthermore show how the sign error changes as a function of and . The effective sign decays severely at higher (low temperatures), which is the standard manifestation of the sign problem. However, at moderate temperatures (), the effective sign decays gracefully and does not collapse with .
Effective Sign vs. Inverse Temperature () (system size )
| Frustrated TFIM | XXZ Model | |
|---|---|---|
| 0.1 | 0.837 | 0.839 |
| 0.2 | 0.725 | 0.746 |
| 0.3 | 0.649 | 0.708 |
| 0.5 | 0.561 | 0.729 |
| 0.7 | 0.523 | 0.738 |
| 1.0 | 0.508 | 0.542 |
| 1.5 | 0.551 | 0.134 |
| 2.0 | 0.620 | 0.048 |
Effective Sign vs. System Size () ()
| Frustrated TFIM | XXZ Model | |
|---|---|---|
| 4 | 0.810 | 1.596 |
| 6 | 0.775 | 0.770 |
| 8 | 0.747 | 0.898 |
| 10 | 0.725 | 0.746 |
| 14 | 0.693 | 1.080 |
| 20 | 0.658 | 0.625 |
Unbiasedness of GRF: you state this as a proposition. Is it known from the literature, obvious, or you proved it? I was unclear.
We apologize for the lack of clarity. Proposition 3.1 (the unbiasedness of the standard GRF method) is known from the literature, established by Choromanski (2023). We will revise the text to make this attribution explicit. Our novel mathematical contribution is Theorem 3.2, which proves the unbiasedness of our combined Two-Walk GRF-Hutchinson estimator.
In addition, we provide a novel sample complexity bound. Let be an -spin Hamiltonian with maximum degree , and let be the maximum absolute row sum of . To estimate to within relative error with probability , the number of samples satisfies:
Proof sketch. We split and generate two independent random walks from the same starting node, each producing a one-hot random feature vector for . The second moment of a single walk's importance weight is bounded by noting that the ratio at each step simplifies to the row sum . Averaging over the geometric walk length yields a series that evaluates to the modified Bessel function . The key cancellation occurs when forming the relative error bound via Chebyshev's inequality: the factor from the variance of the -scaled estimator cancels exactly with the from the partition function lower bound (Gershgorin), eliminating the Hilbert space dimension entirely.
I would have liked a little more time spent on making the technical ideas clear. In particular, I struggled a little with getting an intuition or section 3.1.
We will add a brief, intuitive summary at the start of Section 3.1: Instead of attempting to compute the exponentially large matrix exponential explicitly, we combine two stochastic techniques. First, Hutchinson's trace estimator lets us project the trace computation onto random probe vectors. Second, GRF allows us to estimate the result of this matrix-vector projection purely by simulating local random walks on the hypercube. Because the walk only needs to know its immediate neighbors to proceed, we completely bypass materializing the Hamiltonian matrix.
That particular construction, involving random walks, is a natural application of the mechanism of Graph Random Features (GRFs), that are constructed via random walks. Random walkers deposit values in the visited nodes of the graph, with the deposited values defined as functions of the current lengths of the walks (the exact formula depends on the particular form of the graph kernel that the GRF mechanism is used to estimate). One of the key insights is that matrices of interest for the quantum systems under consideration here can be equivalently represented as kernel matrices for certain graph kernels. That observation provides a direct link between the setup considered in this paper and the mechanism of GRFs, effectively constituting the cornerstone of the paper. We will clarify it in the camera-ready version.
It's probably worth emphasizing in the abstract and intro that this is a method for spin models (i.e. discrete variables), not general problems of the form
Thanks for pointing this out. We will modify the abstract and introduction to explicitly state that our method is designed for discrete-variable quantum spin models.
References:
- Blankenbecler, R., Scalapino, D. J., & Sugar, R. L. (1981). Monte Carlo calculations of coupled boson-fermion systems. I. Physical Review D, 24(8), 2278.
- Bravyi, S., DiVincenzo, D. P., Oliveira, R., & Terhal, B. M. (2008). The complexity of stoquastic local Hamiltonian problems. Quantum Information and Computation, 8(5), 361-385.
- Hangleiter, D., Roth, I., Nagaj, D., & Eisert, J. (2020). Easing the Monte Carlo sign problem. Science Advances, 6(33), eabb8341.
- Lieb, E., & Mattis, D. (1962). Ordering energy levels of interacting spin systems. Journal of Mathematical Physics, 3(4), 749-751.
- Marshall, W. (1955). Antiferromagnetism. Proceedings of the Royal Society of London. Series A. Mathematical and Physical Sciences, 232(1188), 48-68.
- Marvian, M., Lidar, D. A., & Hen, I. (2019). On the computational complexity of curing the sign problem. Nature Communications, 10(1), 1571.
- Troyer, M., & Wiese, U. J. (2005). Computational complexity and fundamental limitations to fermionic quantum Monte Carlo simulations. Physical Review Letters, 94(17), 170201.
- Wu, C., & Zhang, S. C. (2005). Sufficient condition for absence of the sign problem in the fermionic quantum Monte Carlo algorithm. Physical Review B, 71(15), 155115.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper try to estimating quantum partition functions without explicitly forming the exponentially large Hamiltonian. For an -spin system, the Hilbert space dimension is , so explicit matrix methods require exponential memory and time. The paper directly focuses on avoiding this matrix-materialization barrier. The authors propose a method combining Graph Random Features with the Hutchinson’s stochastic trace estimator.
Strengths and weaknesses
Strengths:
- It is interesting to combining Graph Random Features with Hutchinson trace estimation.
- The paper has a clear theoretical guarantee.
- The paper compares against exact diagonalization, mean-field theory, QMC, and high-temperature series expansions across TFIM, SK, and XXZ models.
Weakness:
- The paper does not show that the number of samples needed for a reliable relative-error estimate is polynomial in .
- There is no theorem connecting , , and to , and the variance experiments cover only .
- total memory is , not strictly
- The method does not solve the sign problem. not report the average sign, or separate sign-induced variance from source-sampling and Hutchinson variance.
- The paper’s pseudocode uses but does not clearly specify this implementation.
- The experimental evidence is also limited. Memory is shown up to . The only wall-clock comparison is at , where HWE already require 49mins. The variance ablation is restricted to .
Questions
- What is the end-to-end sample complexity for a fixed relative-error estimate of ?
- For the frustrated and XXZ cases, what is the measured average sign or sign-induced relative variance, and does it decay exponentially in or ?
- Your estimator is unbiased and memory efficient, but can you demonstrate polynomial time to fixed accuracy?
- how does scale with , , and the sign structure of the Hamiltonian?
Limitations
Yes
Final justification
The detailed rebuttal and additional experiments resolve most of my concerns.
Formatting concerns
N/A
5 comments
Rebuttal
We thank the reviewer for the detailed and constructive feedback. We address each point below.
Q1: What is the end-to-end sample complexity for a fixed relative-error estimate of ?
We provide a new sample complexity bound for a variant of our algorithm where the two independent random walks drop their weight at the last node when there is a collision. Let be an -spin Hamiltonian with maximum degree , and let be the maximum absolute row sum of . To estimate to within relative error with probability , the number of samples satisfies:
Proof sketch. We split and generate two independent random walks from the same starting node, each producing a one-hot random feature vector for . The second moment of a single walk's importance weight is bounded by noting that the ratio at each step simplifies to the row sum . Averaging over the geometric walk length yields a series that evaluates to the modified Bessel function . The key cancellation occurs when forming the relative error bound via Chebyshev's inequality: the factor from the variance of the -scaled estimator cancels exactly with the from the partition function lower bound (Gershgorin), eliminating the Hilbert space dimension entirely.
Q2: For the frustrated and XXZ cases, what is the measured average sign, and does it decay exponentially in or ?
Effective Sign vs. Inverse Temperature () (system size )
| Frustrated TFIM | XXZ Model | |
|---|---|---|
| 0.1 | 0.837 | 0.839 |
| 0.2 | 0.725 | 0.746 |
| 0.3 | 0.649 | 0.708 |
| 0.5 | 0.561 | 0.729 |
| 0.7 | 0.523 | 0.738 |
| 1.0 | 0.508 | 0.542 |
| 1.5 | 0.551 | 0.134 |
| 2.0 | 0.620 | 0.048 |
Effective Sign vs. System Size () ()
| Frustrated TFIM | XXZ Model | |
|---|---|---|
| 4 | 0.810 | 1.596 |
| 6 | 0.775 | 0.770 |
| 8 | 0.747 | 0.898 |
| 10 | 0.725 | 0.746 |
| 14 | 0.693 | 1.080 |
| 20 | 0.658 | 0.625 |
The effective sign decays severely at higher (low temperatures), which is the standard manifestation of the sign problem. However, at moderate temperatures, the effective sign decays gracefully and does not collapse with .
Q3: Can you demonstrate polynomial time to fixed accuracy?
Calculating the partition function for general frustrated Hamiltonians is #P-hard in the worst case; no algorithm guarantees polynomial time to a fixed accuracy. Our new theorem reflects this, proving an exponential sample complexity of . However, our contribution is relocating the exponential bottleneck. Exact methods fail due to the memory limit ( continuous memory). HWE bounds memory to (dense) or (sparse), eliminating the memory wall. We trade this space bottleneck for a time bottleneck that is embarrassingly parallel, allowing us to scale to system sizes unreachable by exact methods. We expanded our evaluation to demonstrate this:
Large- Scaling (TFIM on 64 cores) We successfully scaled HWE to (representing a dimensional Hilbert space).
| Avg Wall Time | Peak Memory | ||
|---|---|---|---|
| 20 | 371.5s | 625.4 MB | |
| 30 | 467.8s | 623.1 MB | |
| 40 | 483.3s | 623.3 MB | |
| 50 | 508.8s | 620.7 MB |
Parallel Speedup (, 1 to 32 workers): Because each Hutchinson sample is independent, the algorithm achieves near-linear speedup ( on 32 workers), demonstrating that the time bottleneck can be effectively mitigated with standard parallel compute.
| Workers | Relative Speedup | Rel Diff in | |
|---|---|---|---|
| 1 | 1.00$\times$ | — | |
| 2 | 1.89$\times$ | -0.45% | |
| 4 | 3.62$\times$ | -0.98% | |
| 8 | 7.78$\times$ | +1.90% | |
| 16 | 13.72$\times$ | -0.16% | |
| 32 | 25.12$\times$ | -0.16% |
Q4: How does scale with , and the sign structure of the Hamiltonian?
To explicitly address how the relative variance scales across these parameters, we evaluated for both the frustrated TFIM and XXZ models, sweeping over inverse temperature () and system size ().
Relative Variance vs. Inverse Temperature () (Conducted at fixed system size )
| Frustrated TFIM | XXZ Model | |
|---|---|---|
| 0.1 | ||
| 0.2 | ||
| 0.3 | ||
| 0.5 | ||
| 0.7 | ||
| 1.0 | ||
| 1.5 | ||
| 2.0 |
For the frustrated TFIM, the relative variance grows exponentially in but remains highly manageable up to . The XXZ model exhibits a sharper sign problem at low temperatures.
Relative Variance vs. System Size () (Conducted at fixed inverse temperature )
| Frustrated TFIM | XXZ Model | |
|---|---|---|
| 4 | ||
| 6 | ||
| 8 | ||
| 10 | ||
| 14 | ||
| 20 |
At a moderate temperature (), both models demonstrate excellent stability across system sizes.
Variance Ablation
The HWE estimator has three nested stochastic layers:
- Source sampling: Uniformly sample root spin configurations from states.
- Hutchinson probes: Rademacher vectors to estimate the matrix trace.
- Random walks: Graph random features to estimate matrix elements.
To isolate each component's contribution to total variance, we run 50 independent trials per condition using seed freezing: fix two RNG sources, let the third vary. The variance across trials isolates that component. We then report each as a percentage of the sum of parts: .
Model: Sherrington-Kirkpatrick (fully connected random ), , , 64 workers.
| Walk | Hutchinson | Source | ||
|---|---|---|---|---|
| 0.2 | 0.9% | 0.0% | 99.1% | |
| 0.4 | 11.1% | 0.0% | 88.9% | |
| 1.0 | 39.2% | 0.0% | 60.8% |
Notation in the pseudocode of the algorithm
is a Rademacher vector drawn for each probe , and is the -th entry of the vector. In practice we never materialize as an array. Instead, each entry is generated on demand via a deterministic pseudo-random hash of the pair : node index is combined with the Hutchinson sample index through a fixed bit-mixing hash function (a standard 64-bit multiplicative mixer), and the sign of the top bit gives . This costs time and memory per lookup, with no dependence on .
This construction preserves exactly the two properties the estimator needs:
- Fixed-per-sample: For a given , the hash is a pure deterministic function of , so repeated queries at the same node (which happens naturally as a walk can revisit nodes) always return the same value. That is, behaves as one fixed implicit vector for the duration of Hutchinson sample , exactly as the algorithm requires.
- Independence across : Outputs at different node indices are effectively uncorrelated for fixed , which is what the Hutchinson estimator's unbiasedness relies on (). A fresh seed per Hutchinson sample gives independence across probes as well.
So should be understood not as "index into a stored array," but as "the value returned by a fixed, seed--dependent pseudo-random function evaluated at " which is functionally equivalent to indexing a Rademacher vector, but realized without ever storing one. We will add a sentence to the algorithm description making this explicit.
Memory is not
The reviewer is correct: for all-to-all coupling matrices, storing inherently requires memory. Our claim refers to the incremental per-step diagonal update during a walk (Alg. 1), which is even for dense (vs. if recomputed from scratch). The walk needs only auxiliary storage (spins, local fields) beyond holding . For sparse-coupling models (bounded degree ), both storage and per-step updates are . We will revise the text to explicitly separate memory complexity from per-step update complexity.
Memory, walk clock time and variance beyond
To address system size concerns, we extended our evaluation to ( space). Additionally, because Hutchinson sampling is embarrassingly parallel, deploying 32 workers yielded a speedup, cutting execution time from 49 minutes to under 2 minutes.
Thank you for taking the time to read our rebuttal. We hope our detailed responses regarding the sample complexity bounds, memory clarifications, and variance ablations have addressed your core concerns.
To further address your feedback regarding experimental validation at larger system sizes, we wanted to share an additional experiment we have conducted since our initial rebuttal:
To validate the GRF estimator at system sizes beyond the limit of exact diagonalization, we employed the Jordan-Wigner (JW) transformation. This maps the 1D transverse-field Ising model to a system of free fermions, yielding the exact partition function in time. While this mapping is specific to one-dimensional models with nearest-neighbor couplings and no frustration (it does not apply to the SK model, the XXZ chain, or frustrated lattices—all of which our GRF estimator handles without modification), it serves as an excellent oracle. Using JW, we compared GRF estimates for . At , we found the average error increases from 2.5% for to 10.25% for .
We hope this new validation, alongside the comprehensive data and proofs in our main rebuttal, fully resolves the points you originally noted. Please let us know if you have any remaining questions before the discussion period ends. If our responses have adequately addressed your concerns, we kindly ask if you might consider raising your score.
Thank you again for your time and guidance in strengthening our paper.
Thank you for the detailed rebuttal and additional experiments; they resolve most of my concerns. Therefore, I would like to raise my score to 4.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
We thank the reviewer for the thoughtful feedback and for recognizing that our method successfully reduces the memory footprint to O(n) while maintaining exact unbiasedness.
Calculating the partition function for these general, frustrated Hamiltonians is indeed inherently #P-hard; no algorithm can guarantee polynomial time to a fixed accuracy. Our new theorem explicitly reflects this fundamental limit, proving an exponential sample complexity scaling of exp(O(βnd)).
Let H be an n-spin Hamiltonian with maximum degree d, and let W≤nd be the maximum absolute row sum of H. To estimate Z=tr(e−βH) to within relative error ϵ with probability ≥1−δ, the number of samples M satisfies:
Proof sketch. We split e−βH=(e−βH/2)2 and generate two independent random walks from the same starting node, each producing a one-hot random feature vector for g(H)=e−βH/2. The second moment of a single walk's importance weight is bounded by noting that the ratio ∣H(u,v)∣/t(u,v) at each step simplifies to the row sum ∑v∣H(u,v)∣≤W. Averaging over the geometric walk length yields a series that evaluates to the modified Bessel function I0(βW/1−p)∼exp(βW/1−p). The key cancellation occurs when forming the relative error bound via Chebyshev's inequality: the N2 factor from the variance of the N-scaled estimator cancels exactly with the N2 from the partition function lower bound Z≥Ne−βW (Gershgorin), eliminating the Hilbert space dimension entirely.
However, our core contribution is not breaking #P-hardness, but rather relocating the exponential bottleneck. Exact methods fail due to an insurmountable memory limit: they require O(4n) continuous memory. Our HWE method strictly bounds memory to O(n2) for dense couplings and O(nd) for sparse couplings, completely eliminating the memory wall.
Thanks for pointing this out. We have significantly expanded the experiments section to demonstrate this capability. Because each Hutchinson sample is independent, the algorithm achieves near-linear speedup (25.1× on 32 workers), demonstrating that the time bottleneck can be effectively mitigated with standard parallel compute.
Parallel Speedup (n=14, 1 to 32 workers)
We trade that space bottleneck for a time bottleneck which, crucially, is embarrassingly parallel. By eliminating the memory barrier, our method allows us to scale to system sizes completely unreachable by exact methods and leverage parallel compute to manage the variance. To demonstrate this trade-off in practice, we successfully scaled HWE to n=50 (representing a massive 250≈1015 dimensional Hilbert space).
Large-n Scaling (TFIM on 64 cores)
Thank you for suggesting we show how sign alterations affect variance. The effective sign does indeed decay severely at higher β (low temperatures), which is the standard manifestation of the sign problem. However, at moderate temperatures, the effective sign decays gracefully and does not collapse with n.
Effective Sign vs. Inverse Temperature (β) (system size n=10)
Effective Sign vs. System Size (n) (β=0.2)
To evaluate the accuracy of our model for much larger n (up to n=50, representing a 250 space), we designed the M_only experiment. This evaluates a structurally biased estimator, Z^M=tr(e−βM), which isolates the off-diagonal transverse field (M) by completely ignoring the diagonal Ising couplings (D) of the full Hamiltonian.
By removing the diagonal terms—which typically introduce sign cancellations and larger importance weights—this estimator establishes a variance lower bound, reflecting the baseline noise of the underlying random walk and Hutchinson machinery alone. We measure its relative error against the exact diagonalization of M alongside its relative variance, proving the core algorithmic machinery remains highly accurate and stable at extreme scales.
M_only — tr(e−βM), β=0.4, 64 workers
The price of trading O(N)/O(N2) memory for a walk-based Monte Carlo estimator is increased sampling variance, and hence more samples (NHutch,Nsources,Nwalks) needed to reach a fixed target accuracy. Quantitatively, required sample count scales as ∼1/⟨sign⟩2, where ⟨sign⟩ is the effective-sign metric. In the moderate-temperature regime we benchmarked (see response above), this cost grows mildly / sub-exponentially with n. At low temperature (large β), the cost grows sharply which is consistent with the standard sign problem in Monte Carlo methods generally and is not specific to the space/time savings of our walk construction; this is a fundamental limitation shared by all sign-problem-affected stochastic trace estimators, not an artifact we introduced. We view this as an honest characterization of the tradeoff's boundary rather than a limitation we can eliminate: the method is most advantageous in the regime (moderate β, larger n) where memory savings are needed most and the variance cost remains controlled.