Skip to main content
Sandbox Physics
Fields, scales and critical phenomena

FR01 · L3 · Chapter 5

Putting a Euclidean field on a lattice

Define the lattice action, derive its covariance and separate spacing, volume and sampling errors.

Before you start: Chapters 3–4. Matrix inverses, eigenvectors and sample autocorrelation are introduced as needed.

You will be able to: Design independent spacing, volume and sample-size checks and compute an autocorrelation-aware error.

Calculated ideal referenceAnalytic reference curves, with axes and parameter definitions in the caption.Two-point correlation (reference normalization)0.00.00.141.30.282.50.413.80.555.0Inverse length 1Inverse length 2Separation (reference length)
Ideal analytic reference; dimensionless reference units. G(s)=e−m∣s∣/(2m),m=1,2G(s)=e^{-m\lvert s\rvert}/(2m),\quad m=1,2These are infinite-line Euclidean functions. Finite-volume samples in the Lab have their own reference.

A finite lattice changes the probability distribution we calculate, and a finite sample changes how accurately we know it. Keeping those two effects apart lets us improve a calculation for the right reason. More samples reduce random uncertainty. A smaller spacing tests the short-distance approximation. A larger interval tests the influence of the boundary.

Prerequisites: the classical-field and free-field quantization chapters of this course, together with the ideas of a mean and a variance. We will use a matrix as a compact way to write coupled quadratic terms; the steps below explain what its entries mean. After this chapter, you should be able to design separate tests for spacing, volume and sampling errors.

Replace an integral with neighboring sites

Consider one real field on a line. Measure distance in a reference length ℓ0\ell_0, mass in 1/ℓ01/\ell_0, and field amplitude in ℓ0\sqrt{\ell_0}. We use natural units, so the Euclidean action is dimensionless. The numerical inputs below are expressed in these units.

Let aa be the site spacing and m>0m>0 the mass parameter. On a periodic ring, NN sites fill a length L=NaL=Na. Neighboring values approximate a derivative: the change in field divided by the distance between them. Replacing the continuum integral by a sum gives

SE=a2∑j=0N−1[(ϕj+1−ϕja)2+m2ϕj2],ϕN=ϕ0.S_E=\frac a2\sum_{j=0}^{N-1}\left[\left(\frac{\phi_{j+1}-\phi_j}{a}\right)^2+m^2\phi_j^2\right],\qquad \phi_N=\phi_0.

A configuration with large differences between neighbors has a larger action and receives less probability, according to P(ϕ)∝e−SEP(\phi)\propto e^{-S_E}. This is why nearby sites tend to fluctuate together.

The coordinate is Euclidean. It can represent imaginary time for a quantum harmonic oscillator. A periodic interval then gives finite-temperature paths; increasing the interval approaches the ground-state limit. Fixing both endpoint values instead gives a conditioned path distribution. The equal-real-time covariance of a quantum field in one spatial dimension has a different mode weight, 1/(2ωk)1/(2\omega_k). Our one-dimensional Euclidean calculation uses the inverse quadratic operator.

Find the covariance before drawing samples

Expand the neighboring differences. Each interior square occurs in two bonds, giving a diagonal coefficient 2/a+am22/a+am^2. Each adjacent pair contributes an off-diagonal coefficient −1/a-1/a. These numbers form a matrix AA, and the action becomes SE=ϕTAϕ/2S_E=\phi^TA\phi/2.

The covariance matrix CC, whose entry is Cij=⟨ϕiϕj⟩C_{ij}=\langle\phi_i\phi_j\rangle, obeys AC=IAC=I. One way to see this is to integrate the derivative of ϕje−SE\phi_j e^{-S_E} with respect to ϕi\phi_i. The boundary term at infinite field amplitude vanishes because the positive quadratic action suppresses it. Differentiating the two factors gives δij−∑kAik⟨ϕkϕj⟩=0\delta_{ij}-\sum_k A_{ik}\langle\phi_k\phi_j\rangle=0. Thus C=A−1C=A^{-1}.

On the ring, a mode with phase change 2πq/N2\pi q/N per site turns the neighboring-difference operator into the number 4sin⁡2(πq/N)/a4\sin^2(\pi q/N)/a. Summing the contribution of every mode gives

Gn=1N∑q=0N−1cos⁡(2πqn/N)am2+(4/a)sin⁡2(πq/N).G_n=\frac1N\sum_{q=0}^{N-1}\frac{\cos(2\pi qn/N)}{am^2+(4/a)\sin^2(\pi q/N)}.

Here nn counts site intervals and r=nar=na is physical separation. This exact finite-lattice curve is available before sampling. The workbench draws fields by factoring AA and solving triangular equations, then compares them with this separately calculated spectral reference.

A numerical example with three answers

Take N=48N=48, a=0.25a=0.25, m=0.75m=0.75 and r=1.5r=1.5, so L=12L=12 and n=6n=6. The exact lattice correlation is 0.2161260.216126 in units of ℓ0\ell_0. The continuum Green function on a ring of the same length is

GL(r)=e−mr+e−m(L−r)2m(1−e−mL).G_L(r)=\frac{e^{-mr}+e^{-m(L-r)}}{2m(1-e^{-mL})}.

It gives 0.2167150.216715. The second exponential describes the other way around the ring. Both values are deterministic predictions for their respective models.

The saved default record has model version gaussian-chain-1.0.0, seed 314159314159 and 10241024 independent fields. Multiplying the values at the two probes in each field and averaging gives G^=0.238240\widehat G=0.238240, with standard error 0.0228730.022873. Its difference from the lattice prediction is about 0.970.97 standard errors. This is an ordinary sampling fluctuation in that particular record.

The lattice-to-continuum difference is only 0.0005890.000589. It stays the same when we change the seed. Resolving that small spacing effect calls for a much more precise sample estimate.

Why correlated samples need wider error bars

To give the sampling process a controllable memory, update the whole field by

ϕs+1=ρϕs+1−ρ2 ηs,ηs∼N(0,C).\phi_{s+1}=\rho\phi_s+\sqrt{1-\rho^2}\,\eta_s,\qquad \eta_s\sim\mathcal N(0,C).

Each ηs\eta_s is independent. The first field is also drawn from N(0,C)\mathcal N(0,C), so the chain starts in its stationary distribution. The update index ss counts samples. At ρ=0\rho=0, each update replaces the field completely.

Let YsY_s be the product at the two probes. Gaussian fourth moments give Corr⁡(Ys,Ys+k)=ρ2k\operatorname{Corr}(Y_s,Y_{s+k})=\rho^{2k}. Expand the variance of the mean as a double sum over sample pairs. There are M−kM-k pairs at positive lag kk, and equally many at negative lag. Dividing by M2M^2 gives

Var⁡(Y‾)=vMFM,FM=1+2∑k=1M−1(1−k/M)ρ2k,\operatorname{Var}(\overline Y)=\frac vM F_M,\qquad F_M=1+2\sum_{k=1}^{M-1}(1-k/M)\rho^{2k},

where vv is the variance of one product. The effective count is M/FMM/F_M. For M=1024M=1024 and ρ=0.9\rho=0.9, FM=9.48249F_M=9.48249 and the effective count is about 108108.

The ordinary sample variance s2s^2 itself has expectation v(M−FM)/(M−1)v(M-F_M)/(M-1) for this chain. Correcting that bias gives the workbench's estimate

SE^2=s2(M−1)M−FMFMM.\widehat{\mathrm{SE}}^2=\frac{s^2(M-1)}{M-F_M}\frac{F_M}{M}.

These error bars use the known sampler correlation. The displayed gold autocorrelation curve is estimated from the saved products and consequently fluctuates around its reference.

Experiments that answer separate questions

Open Euclidean Field Correlations. Predict what will happen before making each change.

  • To isolate sampling, keep the lattice fixed and change only the seed. The gold estimate moves; both reference curves stay put. Increase the retained count and compare the size of those movements over several seeds.
  • To test spacing at fixed volume, compare (N,a)=(24,0.5),(48,0.25),(96,0.125)(N,a)=(24,0.5),(48,0.25),(96,0.125). Two inputs must change together to keep L=12L=12. Keep r=1.5r=1.5, which requires n=3,6,12n=3,6,12. The lattice predictions are 0.2144010.214401, 0.2161260.216126 and 0.2165670.216567, approaching the continuum value.
  • To test volume on a periodic ring, hold aa and mm fixed and change only NN. Keep the same probe separation. The contribution that wraps around the ring shrinks as the ring grows.

Export the record before changing settings. It contains every field vector, the seed and the model version, so another calculation can reconstruct the sample means.

Practice

You quadruple the number of independent samples. What happens to the standard error, and to the spacing error?

Explanation

The standard error falls by a factor of two because it scales as M−1/2M^{-1/2}. The lattice distribution has not changed, so its difference from the continuum distribution stays fixed.

A colleague measures the field at one site instead of a two-point product. With ρ=0.9\rho=0.9, may they reuse the product's effective count?

Explanation

The field's lag correlation is ρk\rho^k; the product has lag correlation ρ2k\rho^{2k}. For a long record its variance inflation approaches (1+ρ)/(1−ρ)=19(1+\rho)/(1-\rho)=19. The product's approaches (1+ρ2)/(1−ρ2)≈9.53(1+\rho^2)/(1-\rho^2)\approx9.53. The single-field average therefore has a smaller effective count. Sampling efficiency depends on the observable.

The correlation curve moves when you double the number of sites at fixed spacing. Design one further comparison that can tell whether the movement was caused by volume or resolution.

Explanation

The first change doubled the physical length. Compare a second pair with the same physical length but half the spacing and twice as many sites, keeping the probe's physical separation fixed. That comparison isolates resolution. Reseeding each setting several times helps reveal the statistical variation around each curve.

The Gaussian Green-function derivation follows Tong, Statistical Field Theory, section 2.2. The relation between autocorrelation and uncertainty is developed in Wolff, Monte Carlo errors with less errors, version 4, equations 21–25.

Try the physics

Euclidean Field Correlations →Move two probes apart on a sampled scalar field. Compare the correlation estimated from many field configurations with the lattice prediction and its continuum limit.

Sources and reading scope

  1. David Tong, Statistical Field Theory, Chapter 2

    Gaussian integrals, inverse-kernel covariance, correlation length and the Euclidean quantum-mechanical interpretation. Finite-chain normalizations are derived for this course.

  2. U. Wolff, Monte Carlo errors with less errors, arXiv:hep-lat/0306017v4

    Autocorrelation and the variance of an average, equations 21–25. The finite-record correction for the specified Gaussian sampler is derived in the chapter and checked across independent records.

FeedbackSomething broken, confusing, or missing on this page?Tell us
What kind of feedback?

Sent with this page’s address, its Lab ID, the site language and your device type. Please leave out personal details. Feedback is kept for up to 12 months.Privacy policy