- Home
- Library
- Lattice and Hamiltonian Field Theory
- Finite Density and the Sign Problem
- Reweighting and Overlap
Reweighting and Overlap
A small average phase can make an exact change of measure unusable as a numerical estimator. The difficulty is not that the reweighting identity stops being true at finite volume. It is that two noisy sums must cancel to reveal a much smaller answer.
We will calculate that loss explicitly in a compact determinant integral. Its partition function is known, so the phase suppression, numerator–denominator covariance and ideal sampling cost can be checked without mistaking a short simulation for reliable evidence. Increasing the number of independent copies produces an exponential problem even though each one-angle integral is easy.
Preparation: The fermion determinant at nonzero chemical potential and correlated statistical errors. We use and distinguish an exact expectation from a finite-sample ratio.
A compact integral with a complex weight
Let , , and define the normalized positive measure
Here is the modified Bessel function, fixed by
Our determinant factor is
It is generally complex for real nonzero . Integrating its three Fourier modes gives
For independent angles, . This is not the integral of over one common angle. We fix and below. Factorization follows from choosing independent angles in this compact determinant integral.
At , . At real , the imaginary part is , so opposite angles have conjugate weights. The integral is real and positive even though its integrand is not a probability density. This is the distinction reweighting must preserve.
Change the measure, including its normalization
For a target weight and a positive proposal weight , write and . If the proposal covers the target's support, the needed integrals exist, and , then
The observable may also depend explicitly on the target parameters. A lattice change of gauge coupling and chemical potential therefore contains both factors,
when the same fermion content and regulator are used and the reference weight is positive, for example at with an appropriate even number of degenerate flavors. A complex reference determinant instead requires its phase to be included relative to the actual positive sampling weight; the displayed quotient alone would not implement the preceding identity. Changing several parameters can improve sampling overlap, but does not make the target phase disappear. The general identity and this multi-parameter form are discussed in Aarts, §6.1, Eqs. (6.4), (6.7) (PDF).
A partition-function ratio alone is not a scale-independent measure of overlap: multiplying by a constant changes without changing the normalized proposal distribution. A useful invariant diagnostic is instead the relative second moment
This controls the complex mean's relative mean-square error for independent samples, provided the second moment exists. Correlations in a Markov chain require their own treatment.
For phase reweighting, choose . In the compact example define
The subscript denotes the phase-quenched ensemble. Isolated zeros of carry zero weight and do not affect the identity. For copies, , and
This dimensionless is a per-copy log-weight difference. In a thermal field theory the corresponding expression is for physical free-energy densities. The triangle inequality supplies the phase-quenched comparison; it is not an inequality for every arbitrarily normalized proposal. See Aarts, §5.1, Eqs. (5.3)–(5.6) (PDF).
Calculate the information lost in the phase average
Let . Reflection of the angle makes these moments real. Independence gives , so elementary trigonometric identities yield
Their covariance vanishes by reflection. These are the variances of one whole -copy configuration, not independent estimates of the total phase. For independent configurations,
At both phase moments are exactly one and the phase variance is zero. At nonzero source, the mean can become exponentially small while its variance approaches . For the checked one-angle integrals give:
| for 10% relative RMS | ||
|---|---|---|
The last column is a theoretical independent-sample RMS requirement, rounded for display. It is not an executed sample count, a confidence interval, or a guarantee about a practical Markov chain. The exact integrals already show why an apparently innocuous one-copy phase can destroy a many-copy signal.
Exact phase moments at , ; symbols show the declared copy counts. The right panel uses the variance formula above. Lines connect the evaluated points. No Monte Carlo observations or fitted error bars are used.
The observable and phase estimates are correlated
Consider the bounded configuration observable . Its exact complex-weight expectation is
where every Bessel function has argument . Using reflection, estimate it by . Once the denominator is well resolved, expanding the ratio gives
The expectation in the numerator includes the covariance of the two original sums. Adding their errors as though independent would give the wrong result. The ratio itself also has finite-sample bias; the displayed variance is an asymptotic statement, not a repair for an unresolved denominator.
The required covariance can be calculated locally. Define , and . For ,
The second term is absent for . Since , these expressions determine the ratio variance. An independent two-angle integration at , gives , agreeing with the factorized expression within in this check.
A useful warning appears at larger source: at , the exact is about , although each configuration has . A complex-weight expectation is not a positive-measure average of that observable. This does not contradict a probability bound; it shows why identifying this teaching integral with a physical observable trace would require additional structure.
Distinguish sampling failure from integration error
The retained calculation checks the analytic by direct angular quadrature, determinant conjugation and positivity at imaginary source. It computes adaptively and compares periodic grids with 128 through 4096 points. Away from a determinant zero, these agree at roughly floating-point precision; selected values also agree with a calculation using 70 decimal digits and freshly evaluated model parameters.
There is a separate numerical difficulty at
For our parameters . The modulus develops a cusp. The periodic-grid error in decreases from at 128 points to at 4096, by about four on each doubling. This algebraic convergence is retained, not hidden by selecting only smooth-source points. Endpoint-aware integration provides the reference. The exact phase remains well defined because the zero has measure zero.
None of these integration errors is a statistical error. Conversely, an accurate one-angle oracle does not make a sampled many-angle denominator easy to resolve. For a practical reweighted observable, one must examine the phase signal, numerator–denominator covariance, autocorrelation and changes of proposal or sampled region. A nonzero numerical ratio or a small error estimate from one finite history is insufficient.
Summary
Phase reweighting is an exact finite-volume identity with a potentially ill-conditioned estimator. The compact calculation exposes the exponential phase loss and supplies the actual variance, including the observable's covariance with the denominator. Choosing a better proposal can help overlap; it cannot be credited with recovering information that was never resolved. The same integral next allows a comparison with imaginary-source continuation and canonical projection.
Exercises
1. The optimal proposal for the partition integral
Let , and let be a normalized positive sampling density covering the support of . An unbiased estimator of averages . Show that its complex variance is minimized by . Does this remove the phase problem? Assume the necessary integrals and second moments exist.
Solution
For one draw, the complex mean-square fluctuation is
Cauchy–Schwarz applied to and gives
Equality requires on the support, where . The minimal relative mean-square error for independent draws is therefore
For the compact product this is , still exponential in when . The result optimizes estimation of the complex partition integral within this direct importance-sampling construction. It does not optimize every observable ratio, nor exclude an exact integration or a different representation. At zeros of , choosing zero proposal density is harmless because those points contribute nothing.
2. Two flavors are not two independent angles
On one common angle compare two equal sources, with weight , to opposite sources, with weight . Derive both partition functions in terms of , and . Verify their difference at real and explain why neither is in general.
Solution
Squaring the three Fourier terms in and integrating each mode gives
For real source, . Multiplying the two factors before integration instead gives
Consequently
Here follows from averaging in a positive measure. The two theories agree at , but their weights differ at nonzero source. Both flavor factors depend on the same angle, so the integral of their product does not factorize. By contrast, describes two separate angle integrations. This is why a one-flavor oracle cannot silently be used for a two-flavor phase-quenched comparison.
References
- G. Aarts, “Introductory lectures on lattice QCD at nonzero baryon number,” Journal of Physics: Conference Series 706, 022004 (2016), arXiv:1512.05145. Section 5.1 develops phase quenching and the free-energy ratio; §6.1 gives general and multi-parameter reweighting. The compact model and its calculations here are separate teaching examples.
The reproducible source is examples/lattice-hamiltonian/sign-problem/compact.py and reweighting.py, with selected results in reweighting-results.json. The figure is generated by plot_compact.py. The example contains deterministic integrals and exact independent-sample moments, not a sampled history.
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal hidden columns.
Scrollable figure. Use Left and Right arrow keys to reveal hidden content.