- Home
- Library
- Computational Quantum Field Theory
- Integrating a Field-Theory Observable
- Designing a Numerical Field-Theory Calculation
Designing a Numerical Field-Theory Calculation
A free particle of energy 0.37 produces a spectral line inside a detector’s energy window from 0 to 1. A numerical integral reports zero weight, zero error and a successful exit. How would we find out what went wrong? We can derive the true answer before running the calculation. Moving one edge of the detector across the line then exposes a second error that even exact integration cannot repair.
Preparation. Use the harmonic-oscillator vacuum, a Gaussian density and elementary Fourier modes. The experiment takes place in a free real scalar field in one spatial dimension with periodic length , continuous time and . Energies below are in units of the window’s upper edge.
Give the calculation a measured quantity
Take the spatial Fourier mode with , normalized by . In the oscillator vacuum,
The forward time transform uses . Acting with the field creates one quantum, so the greater correlator has one positive-frequency line of area in the measure . The free scalar spectral representation gives the two thermal lines and their zero-temperature limit. Laine and Vuorinen, §8.1, Eqs. (8.30)–(8.36)
Suppose the instrument reports an energy with density
Its standard deviation is . It has unit integral, so the measured line retains the original area. Set , choose so , and use . Multiply the measured greater-correlator weight in a bin by the fixed continuum factor to define . For this field and instrument the answer is
This independent reference follows by a change of variable. For it equals one to binary64 precision. For the bin the upper edge divides the Gaussian in half and the lower edge is 185 widths below the line. Its weight is one half to the same precision. The intrinsic particle is stable in this model. A decay width or a continuum of multiparticle states would enter the field spectrum before convolution with the detector.
Make a missed line fail a known test
The integrand for the wide bin is exactly the narrow Gaussian in the adaptive quadrature calculation. Its pair of three- and five-point Gauss rules samples the interval eight times. All those values round to zero. The two rules therefore agree on zero and the algorithm stops. Reuse the same rules and tolerance, but start with boundaries at , and as well as the two bin edges.
| Starting intervals | Weight | Error indicator | Evaluations |
|---|---|---|---|
| Whole bin | 0 | 0 | 8 |
| Split about the line | 1.0000000000000002 | 1,280 |
The split calculation passes the absolute error target when checked against the error function. To decide how much of a Gaussian may safely be dropped, the stronger statement is analytic: the probability outside eight widths on both sides is . A real measurement can have a different instrument response, which would change this bound.
Hold the instrument fixed while refining the field
Represent the spatial field by sites of spacing , with the nearest-neighbor gradient. This specifies a regulator with maximum spatial momentum . On the plane wave the periodic negative second difference has eigenvalue . It follows that
Time and frequency are still continuous. The regulated mode has weight . Keep the continuum normalization , the physical bin edge and the detector width fixed. Call its shifted detector density . The exact answer on this lattice is now
The lattice line lies slightly lower in the bin, increasing its accepted fraction. The companion verifies the dispersion by applying the actual periodic difference matrix to the selected wave. It then evaluates the bin integral with the error function, eliminating the quadrature error from this comparison.
| Sites | Fixed-bin weight | |
|---|---|---|
| 24 | 0.369639 | 0.601421 |
| 48 | 0.369910 | 0.525629 |
| 96 | 0.369977 | 0.506412 |
| 192 | 0.369994 | 0.501603 |
Once , doubling reduces the excess above by about four. The correction arises because . At 384 sites the weight is , meeting an absolute target of for the stated model. Moving the bin edge to at every spacing would center the cut on each displaced line and hide its leading acceptance error. The calculation holds and its chosen mode fixed. A general interacting finite-volume measurement would require a separate volume study.
Count samples and guard the last digits
One can sample the instrument instead of integrating its density. Draw with standard normal and average the indicator of . Independent measurements then give variance . For 65,536 draws the standard error is . In 32 seeded repetitions the first fraction was and the root-mean-square error was . The standard error describes repeated sampling at fixed field and instrument. A biased lattice pole position shifts the mean of those repetitions.
For a far-tail bin from to , subtracting the two binary64 error functions gives zero: both have rounded to one. Using complementary tails gives
Here the analytic distribution is the same in both evaluations. More samples cannot restore digits lost by that subtraction. Direct counting also becomes impractical because the expected number of accepted events is only .
Choose the next calculation
- Given an interaction and external states, construct a scalar-QED tensor. Follow its numerator through loop integration, or map phase space to events for a final-state observable.
- Given an operator and boundary conditions, discretize the field equation and vary the spacing. A small matrix residual by itself gives no bound on the continuum pole position.
- Given a distribution on configurations, specify the estimator, correct its sampling weights and check the observable’s autocorrelation before estimating its uncertainty.
- Given noisy Euclidean correlators, define the smeared spectral quantity their resolution can support. In that inverse problem the line shape supplying the present exact answer is unknown.
Exercises
1. How many independent observations are needed? Choose a one-standard-error target of for the half-line bin in the continuum model. Compare it with the deterministic lattice error at 192 sites.
Solution
Here to the stated precision, so requires at least 250,000 independent draws. The lattice bias at 192 sites is about , larger than that target. Taking more draws on this particular lattice reduces the sampling error around the wrong continuum mean. Refining to 384 sites brings the deterministic bias to about .
2. Why does the bin edge amplify a small dispersion error? Expand the regulated half-bin about to first order, neglecting the lower Gaussian tail. Which term is largest here?
Solution
The upper standardized limit is and the lower limit may be replaced by . Expanding the accepted fraction and the fixed normalization gives
at fixed positive . The pole shifts down, so and both terms increase the weight. The acceptance term is larger by . This explains why the observed bin error need not be comparable to the relative eigenvalue error.
References and reproducibility
- Mikko Laine and Aleksi Vuorinen, Basics of Thermal Field Theory, §8.1, Eqs. (8.30)–(8.36). Take the zero-temperature greater correlator, with the forward time transform specified above.
- The original G3/G5 rule and its missed Gaussian live in
examples/computational-qft/numerical-integration/adaptive_quadrature.py. The adjacentsmeared_scalar_line.pyreuses this rule and records the exact bin weights, lattice refinements, seeded samples and tail subtraction.
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.