Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    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 z=μ/Tz=\mu/T and distinguish an exact expectation from a finite-sample ratio.

    A compact integral with a complex weight

    Let 0<h<10<h<1, κ>0\kappa>0, and define the normalized positive measure

    dνκ(θ)=eκcos⁡θ2πI0(κ) dθ,−π≤θ<π.\mathrm d\nu_\kappa(\theta) =\frac{e^{\kappa\cos\theta}}{2\pi I_0(\kappa)}\,\mathrm d\theta, \qquad -\pi\leq\theta<\pi.

    Here IjI_j is the modified Bessel function, fixed by

    Ij(κ)=12π∫−ππeκcos⁡θeijθ dθ.I_j(\kappa)=\frac1{2\pi}\int_{-\pi}^{\pi} e^{\kappa\cos\theta}e^{ij\theta}\,\mathrm d\theta.

    Our determinant factor is

    D(θ,z)=(1+hez+iθ)(1+he−z−iθ)=A+hez+iθ+he−z−iθ,A=1+h2.D(\theta,z)=(1+h e^{z+i\theta})(1+h e^{-z-i\theta}) =A+h e^{z+i\theta}+h e^{-z-i\theta},\qquad A=1+h^2.

    It is generally complex for real nonzero zz. Integrating its three Fourier modes gives

    Z1(z)=A+Bcosh⁡z,B=2hI1(κ)I0(κ).Z_1(z)=A+B\cosh z,\qquad B=2h\frac{I_1(\kappa)}{I_0(\kappa)}.

    For NN independent angles, ZN=Z1NZ_N=Z_1^N. This is not the integral of D(θ,z)ND(\theta,z)^N over one common angle. We fix h=0.3h=0.3 and κ=1\kappa=1 below. Factorization follows from choosing independent angles in this compact determinant integral.

    At z=0z=0, D=∣1+heiθ∣2>0D=|1+h e^{i\theta}|^2>0. At real zz, the imaginary part is 2hsinh⁡zsin⁡θ2h\sinh z\sin\theta, 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 w(U)w(U) and a positive proposal weight r(U)r(U), write R=w/rR=w/r and Zr=∫rZ_r=\int r. If the proposal covers the target's support, the needed integrals exist, and Zw≠0Z_w\ne0, then

    ⟨O⟩w=⟨OR⟩r⟨R⟩r,⟨R⟩r=ZwZr.\langle O\rangle_w =\frac{\langle OR\rangle_r}{\langle R\rangle_r}, \qquad \langle R\rangle_r=\frac{Z_w}{Z_r}.

    The observable may also depend explicitly on the target parameters. A lattice change of gauge coupling and chemical potential therefore contains both factors,

    R(U)=e−Sg(U;λ)+Sg(U;λ0)det⁡D(U;μ)Nfdet⁡D(U;μ0)Nf,R(U)=e^{-S_g(U;\lambda)+S_g(U;\lambda_0)} \frac{\det D(U;\mu)^{N_f}}{\det D(U;\mu_0)^{N_f}},

    when the same fermion content and regulator are used and the reference weight is positive, for example at μ0=0\mu_0=0 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 rr by a constant changes Zw/ZrZ_w/Z_r without changing the normalized proposal distribution. A useful invariant diagnostic is instead the relative second moment

    ⟨∣R∣2⟩r∣⟨R⟩r∣2−1.\frac{\langle |R|^2\rangle_r}{|\langle R\rangle_r|^2}-1.

    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 r=∣w∣r=|w|. In the compact example define

    q(z)=∫dνκ ∣D∣,u(θ)=D∣D∣=eiφ(θ),⟨f⟩pq=∫dνκ ∣D∣fq.q(z)=\int\mathrm d\nu_\kappa\,|D|, \qquad u(\theta)=\frac{D}{|D|}=e^{i\varphi(\theta)}, \qquad \langle f\rangle_{\rm pq} =\frac{\int\mathrm d\nu_\kappa\,|D|f}{q}.

    The subscript denotes the phase-quenched ensemble. Isolated zeros of DD carry zero weight and do not affect the identity. For NN copies, W=∏iui=eiΦW=\prod_i u_i=e^{i\Phi}, and

    aN≡⟨W⟩pq=(Z1q)N=e−NΔf,Δf=log⁡qZ1≥0.a_N\equiv\langle W\rangle_{\rm pq} =\left(\frac{Z_1}{q}\right)^N =e^{-N\Delta f},\qquad \Delta f=\log\frac{q}{Z_1}\geq0.

    This dimensionless Δf\Delta f is a per-copy log-weight difference. In a thermal field theory the corresponding expression is Z/Zpq=exp⁡[−βV(f−fpq)]Z/Z_{\rm pq}=\exp[-\beta V(f-f_{\rm pq})] 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 rj=⟨uj⟩pqr_j=\langle u^j\rangle_{\rm pq}. Reflection of the angle makes these moments real. Independence gives ⟨eijΦ⟩=rjN\langle e^{ij\Phi}\rangle=r_j^N, so elementary trigonometric identities yield

    Var⁡pq(cos⁡Φ)=1+r2N2−r12N,Var⁡pq(sin⁡Φ)=1−r2N2.\operatorname{Var}_{\rm pq}(\cos\Phi) =\frac{1+r_2^N}{2}-r_1^{2N}, \qquad \operatorname{Var}_{\rm pq}(\sin\Phi) =\frac{1-r_2^N}{2}.

    Their covariance vanishes by reflection. These are the variances of one whole NN-copy configuration, not NN independent estimates of the total phase. For MM independent configurations,

    RMS⁡(cos⁡Φ‾−aN)aN=(1+r2N)/2−aN2MaN2.\frac{\operatorname{RMS}(\overline{\cos\Phi}-a_N)}{a_N} =\sqrt{\frac{(1+r_2^N)/2-a_N^2}{M a_N^2}}.

    At z=0z=0 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 1/21/2. For N=64N=64 the checked one-angle integrals give:

    zza64a_{64}MM for 10% relative RMS
    0.50.50.4262460.4262461.84×1021.84\times10^2
    110.02234540.02234541.00×1051.00\times10^5
    1.51.54.02543×10−54.02543\times10^{-5}3.09×10103.09\times10^{10}
    226.11829×10−96.11829\times10^{-9}1.34×10181.34\times10^{18}

    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.

    Average phase decays exponentially with independent copy number, while the number of independent samples needed for ten percent relative RMS rises rapidly.

    Exact phase moments at h=0.3h=0.3, κ=1\kappa=1; 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 O=N−1∑icos⁡θiO=N^{-1}\sum_i\cos\theta_i. Its exact complex-weight expectation is

    c=⟨O⟩=AI1/I0+hcosh⁡z (1+I2/I0)Z1,c=\langle O\rangle =\frac{A I_1/I_0+h\cosh z\,(1+I_2/I_0)}{Z_1},

    where every Bessel function has argument κ\kappa. Using reflection, estimate it by c^=Ocos⁡Φ‾/cos⁡Φ‾\widehat c=\overline{O\cos\Phi}/\overline{\cos\Phi}. Once the denominator is well resolved, expanding the ratio gives

    c^−c≃(O−c)cos⁡Φ‾aN,Var⁡(c^)≃⟨(O−c)2cos⁡2Φ⟩pqMaN2.\widehat c-c\simeq \frac{\overline{(O-c)\cos\Phi}}{a_N}, \qquad \operatorname{Var}(\widehat c)\simeq \frac{\langle (O-c)^2\cos^2\Phi\rangle_{\rm pq}}{M a_N^2}.

    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 mj=⟨cos⁡jθ⟩pqm_j=\langle\cos^j\theta\rangle_{\rm pq}, b=⟨cos⁡θ u2⟩pqb=\langle\cos\theta\,u^2\rangle_{\rm pq} and d=⟨cos⁡2θ u2⟩pqd=\langle\cos^2\theta\,u^2\rangle_{\rm pq}. For Y=(O−c)eiΦY=(O-c)e^{i\Phi},

    ⟨∣Y∣2⟩=m2−m12N+(m1−c)2,\langle |Y|^2\rangle =\frac{m_2-m_1^2}{N}+(m_1-c)^2, ⟨Y2⟩=d r2N−1N+N−1Nb2r2N−2−2cb r2N−1+c2r2N.\begin{aligned} \langle Y^2\rangle ={}&\frac{d\,r_2^{N-1}}{N} +\frac{N-1}{N}b^2r_2^{N-2}\\ &-2cb\,r_2^{N-1}+c^2r_2^N. \end{aligned}

    The second term is absent for N=1N=1. Since (Re⁡Y)2=(∣Y∣2+Re⁡Y2)/2(\operatorname{Re}Y)^2=(|Y|^2+\operatorname{Re}Y^2)/2, these expressions determine the ratio variance. An independent two-angle integration at N=2N=2, z=1z=1 gives MVar⁡(c^)≃0.08158287339M\operatorname{Var}(\widehat c)\simeq0.08158287339, agreeing with the factorized expression within 2×10−162\times10^{-16} in this check.

    A useful warning appears at larger source: at z=3z=3, the exact cc is about 1.011681.01168, although each configuration has ∣O∣≤1|O|\leq1. 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 Z1Z_1 by direct angular quadrature, determinant conjugation and positivity at imaginary source. It computes qq 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

    zc=log⁡(1/h),D(π,zc)=0.z_c=\log(1/h),\qquad D(\pi,z_c)=0.

    For our parameters zc=1.2039728043z_c=1.2039728043. The modulus develops a cusp. The periodic-grid error in qq decreases from 1.69×10−51.69\times10^{-5} at 128 points to 1.65×10−81.65\times10^{-8} 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 Z=∫w(x) dx≠0Z=\int w(x)\,\mathrm dx\ne0, and let p(x)p(x) be a normalized positive sampling density covering the support of ww. An unbiased estimator of ZZ averages w/pw/p. Show that its complex variance is minimized by p∝∣w∣p\propto|w|. Does this remove the phase problem? Assume the necessary integrals and second moments exist.

    Solution

    For one draw, the complex mean-square fluctuation is

    Ep∣wp−Z∣2=∫∣w∣2p dx−∣Z∣2.\mathbb E_p\left|\frac wp-Z\right|^2 =\int\frac{|w|^2}{p}\,\mathrm dx-|Z|^2.

    Cauchy–Schwarz applied to ∣w∣/p|w|/\sqrt p and p\sqrt p gives

    (∫∣w∣ dx)2≤∫∣w∣2p dx.\left(\int|w|\,\mathrm dx\right)^2 \leq\int\frac{|w|^2}{p}\,\mathrm dx.

    Equality requires p=∣w∣/Zabsp=|w|/Z_{\rm abs} on the support, where Zabs=∫∣w∣Z_{\rm abs}=\int|w|. The minimal relative mean-square error for MM independent draws is therefore

    1M(Zabs2∣Z∣2−1).\frac1M\left(\frac{Z_{\rm abs}^2}{|Z|^2}-1\right).

    For the compact product this is M−1(aN−2−1)M^{-1}(a_N^{-2}-1), still exponential in NN when aN=e−NΔfa_N=e^{-N\Delta f}. 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 ww, 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 D(θ,z)2D(\theta,z)^2, to opposite sources, with weight ∣D(θ,z)∣2|D(\theta,z)|^2. Derive both partition functions in terms of AA, hh and bj=Ij(κ)/I0(κ)b_j=I_j(\kappa)/I_0(\kappa). Verify their difference at real zz and explain why neither is Z1(z)2Z_1(z)^2 in general.

    Solution

    Squaring the three Fourier terms in DD and integrating each mode gives

    Z++=A2+2h2+4Ahb1cosh⁡z+2h2b2cosh⁡(2z).Z_{++}=A^2+2h^2+4Ahb_1\cosh z+2h^2b_2\cosh(2z).

    For real source, D(θ,−z)=D(θ,z)∗D(\theta,-z)=D(\theta,z)^*. Multiplying the two factors before integration instead gives

    Z+−=A2+2h2cosh⁡(2z)+4Ahb1cosh⁡z+2h2b2.Z_{+-}=A^2+2h^2\cosh(2z)+4Ahb_1\cosh z+2h^2b_2.

    Consequently

    Z+−−Z++=2h2(1−b2) [cosh⁡(2z)−1]≥0.Z_{+-}-Z_{++}=2h^2(1-b_2)\,[\cosh(2z)-1]\geq0.

    Here b2≤1b_2\leq1 follows from averaging cos⁡2θ\cos2\theta in a positive measure. The two theories agree at z=0z=0, 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, Z12Z_1^2 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.