Skip to content
QFT.org

Search QFT.org

Enter a word or phrase.

    You can also browse the main navigation and chapter contents.

    Disconnected Diagrams and All-to-All Propagators

    A scalar-density insertion can form a closed quark loop without joining the quark lines of a source and sink. The loop still responds to the same gauge field as those lines, so its contribution need not vanish. The practical problem is to estimate a trace of the inverse Dirac operator, subtract its vacuum contribution, and preserve its correlation with the measured hadron or other correlator.

    We derive the contraction and an unbiased stochastic estimator, then test both on the exact two-flavor Wilson-fermion square. The example separates gauge correlations from noise, checks a mass-derivative identity, and compares dilution at equal numbers of right-hand-side solves. In this test, a familiar dilution pattern actually makes the estimator worse.

    Preparation: Quark contractions, dynamical fermion determinants, and the distinction between statistical correlation and independent measurements.

    Disconnected quark lines can remain gauge-correlated

    At a fixed gauge field UU, let D[U]D[U] be the Dirac matrix and S[U]=D[U]−1S[U]=D[U]^{-1}. For a bilinear BA=ψˉAψB_A=\bar\psi A\psi, the paired Grassmann measure used in the preceding chapter gives

    ⟨BA⟩F=−Tr⁡(AS),\langle B_A\rangle_F=-\operatorname{Tr}(AS),

    and Wick contraction of two bilinears gives

    ⟨BABB⟩F=−Tr⁡(ASBS)+Tr⁡(AS)Tr⁡(BS).\langle B_A B_B\rangle_F =-\operatorname{Tr}(ASBS) +\operatorname{Tr}(AS)\operatorname{Tr}(BS).

    The first term joins the insertions by quark propagators. The second has two closed fermion traces. These are statements at fixed UU; the remaining gauge integral correlates both terms. For an isovector insertion with exactly degenerate up and down propagators, their closed loops cancel. A flavor-singlet scalar insertion generally has no such cancellation.

    Suppose C[U]C[U] denotes a source–sink contraction and LA[U]=−Tr⁡(AS[U])L_A[U]=-\operatorname{Tr}(AS[U]) the loop of a flavor that does not join its valence lines. The vacuum-subtracted disconnected contribution is

    Cdisc=⟨CLA⟩U−⟨C⟩U⟨LA⟩U.C_{\mathrm{disc}} =\langle C L_A\rangle_U-\langle C\rangle_U\langle L_A\rangle_U.

    Subtracting the vacuum expectation removes a constant background, not the configuration dependence of LAL_A. Computing CC and the loop on unrelated gauge samples would destroy the covariance one needs. If they share the insertion flavor, there are also connected contractions to include; the formula above labels the disconnected piece only.

    A point source determines selected columns of SS. A loop summed over positions instead requires diagonal entries throughout the lattice, and general contractions may require propagators between arbitrary sites. This is the origin of the all-to-all problem. Dense inversion is useful for a tiny check but cannot supply all columns economically on a large QCD lattice.

    A trace from solves with random sources

    Let the components of a noise vector η\eta be independently uniform in {1,i,−1,−i}\{1,i,-1,-i\}. They satisfy

    Eη[ηi]=0,Eη[ηi∗ηj]=δij,∣ηi∣2=1.\mathbb E_\eta[\eta_i]=0, \qquad \mathbb E_\eta[\eta_i^*\eta_j]=\delta_{ij}, \qquad |\eta_i|^2=1.

    Solve Ds=ηDs=\eta. For any fixed matrix AA,

    T^A=1Nη∑r=1Nηηr†Asr,Eη[T^A∣U]=Tr⁡(AS).\widehat T_A=\frac1{N_\eta}\sum_{r=1}^{N_\eta} \eta_r^\dagger A s_r, \qquad \mathbb E_\eta[\widehat T_A\mid U]=\operatorname{Tr}(AS).

    The expectation follows by expanding the indices: only the contraction i=ji=j survives. The physical loop carries the additional minus sign above. Noise vectors do not replace gauge configurations; this identity is conditional on the background.

    For M=ASM=AS, subtracting its trace leaves ∑i≠jηi∗Mijηj\sum_{i\ne j}\eta_i^*M_{ij}\eta_j. Independence and the vanishing second moment Eηi2=0\mathbb E\eta_i^2=0 give the complex mean-square error

    Eη[∣T^A−Tr⁡M∣2|U]=1Nη∑i≠j∣Mij∣2.\mathbb E_\eta\left[\left|\widehat T_A-\operatorname{Tr}M\right|^2\middle|U\right] =\frac1{N_\eta}\sum_{i\ne j}|M_{ij}|^2.

    If the reported observable is the real part, use H=(M+M†)/2H=(M+M^\dagger)/2 instead:

    Var⁡η(Re⁡T^A∣U)=1Nη∑i≠j∣Hij∣2.\operatorname{Var}_\eta(\operatorname{Re}\widehat T_A\mid U) =\frac1{N_\eta}\sum_{i\ne j}|H_{ij}|^2.

    The two formulas answer different questions. In particular, SS is not generally Hermitian even when its trace is real. These noise constructions and partitioned sources are developed in Bali, Collins and Schäfer, §2, Eqs. (3)–(10), printed pp. 3–4. Their Hermitian Q=γ5DQ=\gamma_5D formulation is translated here into direct solves with DD.

    For independent gauge configurations, the law of total variance separates the variance of the exact conditional mean from the average conditional noise variance. Autocorrelated gauge histories need the corresponding time-series treatment. Adding noise sources reduces the second component; it cannot repair poor gauge sampling or a frozen slow mode.

    An exact dynamical square and a scalar-insertion check

    Use an open 2×22\times2 square with two spin components, two degenerate fermion flavors, a=r=1a=r=1, m=0.3m=0.3 and gauge coupling parameter β=0.7\beta=0.7. The Euclidean matrices are γx=σ1\gamma_x=\sigma_1 and γt=σ2\gamma_t=\sigma_2. For an existing forward bond i→ji\to j,

    Dii=(m+2)I2,Dij=−I2−γμ2Vμ(i)†,Dji=−I2+γμ2Vμ(i).D_{ii}=(m+2)I_2, \qquad D_{ij}=-\frac{I_2-\gamma_\mu}{2}V_\mu(i)^\dagger, \qquad D_{ji}=-\frac{I_2+\gamma_\mu}{2}V_\mu(i).

    The fermion field is zero outside the square; the boundary diagonal is not reduced. Site order is j=2t+xj=2t+x, followed by spin. In a complete tree gauge, both horizontal links and the left temporal link are 1, while the right temporal link is eiθe^{i\theta}. The exact determinant is

    det⁡D(θ)=A+Bcos⁡θ,A=(m+2)8+116,B=(m+2)42.\det D(\theta)=A+B\cos\theta, \qquad A=(m+2)^8+\frac1{16}, \qquad B=\frac{(m+2)^4}{2}.

    The normalized gauge measure is proportional to eβcos⁡θ(A+Bcos⁡θ)2dθe^{\beta\cos\theta}(A+B\cos\theta)^2d\theta. Thus all gauge averages in this example are one-dimensional deterministic integrals, including the sea determinant. The determinant construction is derived in Fermion Determinants and Dynamical Quarks.

    Let

    T(θ)=Tr⁡S(θ),C1(θ)=∑x=01∑α,βs=12∣S(1,x)α,(0,0)βs(θ)∣2.T(\theta)=\operatorname{Tr}S(\theta), \qquad C_1(\theta)=\sum_{x=0}^{1}\sum_{\alpha,\beta_s=1}^{2} \left|S_{(1,x)\alpha,(0,0)\beta_s}(\theta)\right|^2.

    The spin label βs\beta_s is unrelated to the gauge parameter β\beta. This C1C_1 is the cross-flavor pseudoscalar contraction with the two factors of ii specified in the preceding chapter. There are only two time slices, so it is a finite correlator, not a mass or asymptotic hadronic matrix element.

    Differentiate both sea and valence masses together. Since ∂mD=I\partial_mD=I,

    ∂mS=−S2,∂mlog⁡(det⁡D)2=2T.\partial_mS=-S^2, \qquad \partial_m\log(\det D)^2=2T.

    Differentiating the normalized expectation, including its denominator, yields

    ∂m⟨C1⟩=⟨∂mC1⟩+2[⟨C1T⟩−⟨C1⟩⟨T⟩].\partial_m\langle C_1\rangle =\langle\partial_m C_1\rangle +2\bigl[\langle C_1T\rangle-\langle C_1\rangle\langle T\rangle\bigr].

    The first term is the explicit valence response. The second is the sea response. The physical two-flavor scalar disconnected insertion is its negative because Ls=−2TL_s=-2T. This sign also follows by differentiating the Euclidean Boltzmann weight with respect to the mass term.

    At 128 periodic quadrature nodes, we find

    ⟨C1⟩=0.04487195356,⟨T⟩=3.467557500,cov⁡(C1,T)=−7.589448735×10−5,Cdisc,s=+1.517889747×10−4,⟨∂mC1⟩=−0.08598975253,∂m⟨C1⟩=−0.08614154150.\begin{aligned} \langle C_1\rangle&=0.04487195356, &\langle T\rangle&=3.467557500,\\ \operatorname{cov}(C_1,T)&=-7.589448735\times10^{-5}, & C_{\mathrm{disc},s}&=+1.517889747\times10^{-4},\\ \langle\partial_m C_1\rangle&=-0.08598975253, &\partial_m\langle C_1\rangle&=-0.08614154150. \end{aligned}

    Periodic node counts 16,32,64,12816,32,64,128 and an independent 64-node Gauss–Legendre integral agree at the displayed precision. A symmetric mass difference at steps 0.01,0.005,0.0025,0.001250.01,0.005,0.0025,0.00125 approaches the derivative identity with errors 1.02×10−5,2.54×10−6,6.36×10−7,1.59×10−71.02\times10^{-5},2.54\times10^{-6},6.36\times10^{-7},1.59\times10^{-7}, as expected for a quadratic step error. Omitting vacuum subtraction would instead give a total derivative +0.22505+0.22505, even with perfect quadrature. That is a normalization mistake, not statistical noise.

    Dilution must earn its extra solves

    Choose coordinate projectors PaP_a, diagonal with entries zero or one in the noise basis, that obey PaPb=δabPaP_aP_b=\delta_{ab}P_a and ∑aPa=I\sum_aP_a=I. An unbiased diluted trace estimator is

    T^dil=1Nh∑r=1Nh∑a=1kηr†PaSPaηr.\widehat T_{\mathrm{dil}} =\frac1{N_h}\sum_{r=1}^{N_h}\sum_{a=1}^{k} \eta_r^\dagger P_a S P_a\eta_r.

    Each projected source requires a solve. There are kNhkN_h right-hand sides. The trace is unchanged because ∑aTr⁡(PaSPa)=Tr⁡S\sum_a\operatorname{Tr}(P_aSP_a)=\operatorname{Tr}S, while noise from entries joining different subspaces is eliminated. At fixed solve budget B=kNhB=kN_h, the real-part variance is

    Var⁡(T^dil)=kB∑a∑i≠j∣(PaHPa)ij∣2,H=S+S†2.\operatorname{Var}(\widehat T_{\mathrm{dil}}) =\frac{k}{B}\sum_a\sum_{i\ne j} \left|(P_a H P_a)_{ij}\right|^2, \qquad H=\frac{S+S^\dagger}{2}.

    Removing some off-diagonal entries is not sufficient: it must compensate for the factor kk.

    For the separately fixed background θ=0.73\theta=0.73, the exact trace is 3.4551377706073.455137770607. Enumerating all 48=655364^8=65536 noise vectors verifies its mean to 8.9×10−168.9\times10^{-16} and the one-vector variance 0.1556408465560.155640846556 to 2.0×10−162.0\times10^{-16}. We then generated 4096 independent estimates for every method and solve budget B=8,16,32,64B=8,16,32,64. Seeds were fixed as SeedSequence([781025,30,method_id,budget_id,trial_id]); method IDs are plain, spin, time, and time×spin in that order. No seed was selected for agreement.

    The B=16B=16 comparison is:

    SourcesPredicted varianceMeasured varianceVariance ratio to plain
    Plain0.0097280.0097280.009694±0.0002150.009694\pm0.00021511
    Spin dilution0.0194550.0194550.019633±0.0004420.019633\pm0.00044222
    Time dilution0.0088940.0088940.008850±0.0001870.008850\pm0.0001870.91430.9143
    Time×spin dilution0.0177890.0177890.017553±0.0003920.017553\pm0.0003921.82871.8287

    The quoted errors estimate the finite-trial uncertainty of the measured variance, using its fourth central moment. Spin dilution loses in this background and observable. Time dilution helps modestly. Full index dilution recovers the trace exactly in eight solves, which is useful as a tiny-matrix check; its cost grows with the full Dirac dimension in a realistic problem. All methods share one dense factorization here. We compare methods at equal right-hand-side counts.

    An approximate inverse needs its correction

    Let a0=m+2a_0=m+2 and K=a0I−DK=a_0I-D denote the hopping matrix. A finite polynomial approximation is

    S(3)=1a0∑j=03(Ka0)j.S_{(3)}=\frac1{a_0}\sum_{j=0}^{3}\left(\frac K{a_0}\right)^j.

    The exact control-variate identity

    Tr⁡S=Tr⁡S(3)+Eη[η†(S−S(3))η]\operatorname{Tr}S =\operatorname{Tr}S_{(3)} +\mathbb E_\eta\bigl[\eta^\dagger(S-S_{(3)})\eta\bigr]

    does not require the finite polynomial to be an exact inverse. The inexpensive part has a known trace; the stochastic solve estimates only the remainder. In the same fixed square, Tr⁡S(3)=3.478260869565\operatorname{Tr}S_{(3)}=3.478260869565. Omitting the correction biases the result by +0.02312310+0.02312310. Including it restores the exact enumerated mean and reduces the variance per noise vector from 0.155640850.15564085 to 1.24217×10−51.24217\times10^{-5}. The variance reduction costs three extra hopping applications per corrected source.

    This calculation uses a hopping polynomial. An iterative truncated-solver method instead averages many inexpensive approximate solutions and an independently sampled accurate-minus-approximate correction. Its unbiasedness requires both terms to use the same prescribed approximation. The decomposition and independent-noise construction are explicit in Bali et al., §2.3, Eq. (13), printed p. 6. Reusing correlated noise can also preserve unbiasedness when each marginal is correct and the same prescribed approximation is subtracted; the covariance changes. Dropping a small residual or correction is an additional bias assumption, not part of an unbiased estimator.

    At matched solve counts, spin dilution has larger conditional variance than plain noise, while time dilution is slightly better. A corrected third-order hopping estimator has much smaller enumerated variance, but omitting its correction biases the mean.

    The fixed 8×88\times8 Wilson matrix at m=0.3m=0.3, θ=0.73\theta=0.73. Left: measured conditional variances from 4096 estimates, with finite-trial error bars, and exact variance predictions as dashed lines. Right: exact enumeration of the variance per noise vector for the plain and corrected hopping estimators. These are conditional-noise tests; the separate gauge covariance is evaluated by quadrature.

    The companions examples/lattice-hamiltonian/matrix-elements/disconnected_loops.py, disconnected-results.json and plot_disconnected.py retain the source definitions, quadrature refinements, derivative test, all frozen noise budgets, enumeration, and approximation checks. They import the shared Wilson square without changing its earlier determinant calculation.

    Summary

    A disconnected contraction is a gauge covariance of a source–sink observable with a fermion loop after vacuum subtraction. Stochastic sources estimate its trace conditionally and without bias. Dilution and approximate inverses help only with a correctly counted cost and a retained correction; neither removes gauge-sampling uncertainty.

    Exercises

    1. Why is squaring an unbiased loop estimate biased?

    At fixed UU, let XrX_r be independent real unbiased estimates of TT, with variance vv. Show the bias in the square of their average, and construct an unbiased estimator of T2T^2 using the same samples when N≥2N\ge2.

    Solution

    For Xˉ=N−1∑rXr\bar X=N^{-1}\sum_rX_r,

    E[Xˉ2]=T2+vN.\mathbb E[\bar X^2]=T^2+\frac vN.

    The extra term is the conditional noise variance. Instead omit equal-noise pairs:

    T2^=1N(N−1)∑r≠sXrXs=(∑rXr)2−∑rXr2N(N−1).\widehat{T^2} =\frac1{N(N-1)}\sum_{r\ne s}X_rX_s =\frac{(\sum_rX_r)^2-\sum_rX_r^2}{N(N-1)}.

    Independence gives E[XrXs]=T2\mathbb E[X_rX_s]=T^2 for r≠sr\ne s, proving unbiasedness. Two separately generated noise means are another option. In the enumerated one-vector square above, the naive bias is exactly 0.1556408465560.155640846556, matching the predicted variance. Gauge averaging does not remove this noise bias; it averages it over backgrounds.

    2. Derive the dilution criterion at fixed work

    For a real trace estimator with Hermitian noise matrix HH, let V=∑i≠j∣Hij∣2V=\sum_{i\ne j}|H_{ij}|^2. A partition of the noise coordinates into kk subsets retains a within-subset sum VinV_{\mathrm{in}}. Find the criterion for dilution to improve the variance at equal right-hand-side count. Explain the observed factor 2 for spin dilution in this example.

    Solution

    Plain noise with budget BB has BB independent vectors and variance V/BV/B. Dilution has Nh=B/kN_h=B/k hits and variance Vin/Nh=kVin/BV_{\mathrm{in}}/N_h=kV_{\mathrm{in}}/B. It wins precisely when

    VinV<1k.\frac{V_{\mathrm{in}}}{V}<\frac1k.

    At the fixed matrix used here, spin partitioning has k=2k=2 and leaves the real-trace off-diagonal variance sum unchanged: Vin=VV_{\mathrm{in}}=V. It removes no contributing entries of HH while halving the number of hits, giving twice the variance. The cancellation relies on the Hermitian projection for this trace and background. Full index partitioning has Vin=0V_{\mathrm{in}}=0 and hence zero conditional variance, at the cost of one solve per basis vector.

    References

    • Gunnar S. Bali, Sara Collins and Andreas Schäfer, “Effective noise reduction techniques for disconnected loops in Lattice QCD,” Computer Physics Communications 181 (2010) 1570–1583; §2, Eqs. (3)–(10), §2.2 on hopping expansions, §2.3, Eq. (13), and Appendix A on work allocation. Open manuscript, arXiv:0910.3970v2 (PDF).

    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.