- Home
- Library
- Lattice and Hamiltonian Field Theory
- Generating and Testing Lattice Ensembles
- Pseudofermions and Rational Hybrid Monte Carlo
Pseudofermions and Rational Hybrid Monte Carlo
A fermion determinant changes the probability of every gauge field. Computing that determinant after every link update is possible on the one-plaquette square, but becomes prohibitive on a large lattice. A pseudofermion replaces the determinant by a Gaussian integral whose action requires linear solves. Rational hybrid Monte Carlo extends this construction to fractional determinant powers.
The central question is where numerical approximation enters. An approximate molecular-dynamics force can be corrected by an exact acceptance test. An incorrect pseudofermion refresh or acceptance action changes the target measure unless an additional valid correction is supplied. We derive those distinctions and test them on the same square, where direct determinants and quadrature remain available as independent references.
From a determinant to a Gaussian field
Let be the finite Euclidean Dirac matrix and define . Assume is invertible, so is positive definite. Throughout this article denotes this positive matrix, not topological charge. For a desired weight , , introduce an ordinary complex field with as many components as has rows:
To see the normalization, diagonalize . The unitary change of variables preserves the real integration measure, and each complex Gaussian contributes . The field is commuting, despite representing a fermion determinant. It is an auxiliary integration variable, not a physical boson.
For two degenerate flavors with , the squared real determinant is , so . For , the weight is . It equals a one-flavor determinant only when its sign is positive; this representation does not remove a determinant sign or phase problem.
Draw a unit complex Gaussian , with . The conditional refresh at the current gauge field is
For , the cheaper choice has exactly the same covariance and distribution. After this refresh, hold fixed during the entire trajectory. Refreshing it while taking a force derivative would differentiate a different function. The Gaussian representation and its use in HMC are developed in Kennedy, PDF §2.15, printed pp.19–21.
A force that includes the inverse matrix
For one real gauge coordinate , write a prime for . At ,
Differentiating gives
Thus a force evaluation consists of a solve and contractions with the local derivative of . It does not require an explicit inverse. Gauge covariance provides a check: transforming , and by the same site unitary leaves the action invariant.
At a fixed gauge field, the conditional noise average is
This identity explains both why the auxiliary force represents the determinant and why an individual refreshed field need not reproduce its smooth exact force. More pseudofermion factors can change force fluctuations, but their extra solves and correlations must also be counted.
Fractional powers require a matrix derivative
For , it is generally wrong to use the scalar derivative : and need not commute. In the eigenbasis of , set and . Then
where the divided difference is
One way to derive this is to differentiate a polynomial in : each insertion of between powers contributes to a geometric sum. Analytic functional calculus extends the result to on a positive spectral interval. For , a stable expression valid even for equal eigenvalues is
The companion uses this formula as a dense reference for the rational force. At its test field, ; the noncommuting qualification is consequential.
The square supplies a target and a spectral interval
Use the earlier open site square, , bare Wilson mass , and with . Three links are one and the right temporal link is . This is the site's forward transporter; the forward-neighbor coefficient in a Dirac row contains its conjugate. The imported Wilson matrix has diagonal even at the open boundary.
The eight-dimensional determinant is
Here . Therefore both and have unambiguous positive targets, with angular probability proportional to
A rational approximation needs an interval valid along the trajectory, not just the eigenvalues of its starting matrix. For this positive-mass, unimproved Wilson operator, such an interval follows directly from its shifts. Let be the covariant forward shift, unitary with periodic boundaries and a contraction with zero extension beyond an open boundary. Put . Then
Its Hermitian part is . Hence . Each parenthesized operator has norm at most one because its two spin projectors have orthogonal ranges and commute with the shifts. Consequently , and for every allowed link configuration,
This proof uses and this particular Wilson action. It is not a bound for arbitrary negative bare mass, a tuned critical action, or an added clover term.
A rational approximation with positive shifts
For , the integral
gives a transparent construction. Substitute and apply -point Gauss–Chebyshev quadrature. With and ,
The poles are at ; the shifts are positive. Each shifted matrix is positive definite. This quadrature approximation is convenient to prove and reproduce; it is not asserted to be the minimax approximation used in an optimized implementation.
There is an exact scalar error identity. Define . Expanding the transformed integrand in cosine modes and averaging over the midpoint nodes leaves only modes with frequency , with alternating signs. Summing that geometric series gives
where . The choice of makes the two endpoint magnitudes equal. Spectral calculus gives the same bound for . A sampled scalar error curve alone would not prove this interval bound.
For , differentiate each resolvent:
The shifts share a Krylov space when their right-hand side and starting residual are compatible; this motivates multishift solvers. Arbitrary preconditioning can destroy that common structure. Our eight-dimensional reference solves each system directly. Partial fractions and the distinct rational approximations in RHMC are discussed in Kennedy, PDF §§3.4–3.7 and 3.10, pp.26–33.
At with the fixed complex Gaussian test vector, the retained calculation gives:
| Terms | Proved scalar relative bound | Absolute action error | Absolute force error |
|---|---|---|---|
| 4 | |||
| 8 | |||
| 16 | |||
| 32 |
The last row reaches floating-point precision; its sampled scalar error is . The scalar action bound does not by itself bound its derivative, so the force is checked separately against the divided-difference reference and a centered finite difference. Halving the finite-difference step from to and reduces the exact fractional-force discrepancy by factors of four. An exact noise-basis sum checks the average-force identity to .
Three numerical decisions in an HMC trajectory
The extended Hamiltonian for this model is
Refresh conditionally and from a real unit Gaussian. A leapfrog trajectory alternates half momentum kicks, full coordinate drifts and another half kick, using . Follow it by momentum reversal. With fixed coefficients and a deterministic position-dependent force, this proposal is reversible and preserves phase-space volume. Accept it with probability ; on rejection retain the old gauge field.
There are three separate accuracy choices:
| Stage | Required object | Role of approximation |
|---|---|---|
| Refresh | Sets the conditional distribution of ; a wrong covariance needs a valid correction. | |
| Molecular dynamics | Force of a chosen approximate action | Changes proposals and acceptance; fixed reversible volume-preserving dynamics can use a cheaper approximation. |
| Acceptance | Change in the target extended action | Determines the invariant measure; a loose approximation here is not cured by calling the update “exact.” |
With an exact refresh and exact target acceptance, the proposal force need not equal the exact target force. Detailed balance follows from the reversible, volume-preserving proposal and the target probability ratio. Ergodicity and numerical reversibility remain separate matters. In large RHMC calculations the refresh and acceptance are themselves approximated to controlled precision or corrected; the required spectral range and solve errors belong to that error budget.
The example deliberately makes the distinction observable: uses an eight-term rational force for molecular dynamics, but diagonalization for the refresh and target acceptance. This is a tiny test of the RHMC construction, not a production implementation. Coefficients are held fixed throughout each trajectory. The ordinary trajectory at fixed length one has for five steps and for ten, showing second-order integration error. In the fractional case, reducing the step size removes integration error but does not remove the difference between the rational and target Hamiltonians. A nonzero limiting target-energy error can therefore remain; the retained scan through forty steps does not resolve such a plateau. Applying each tested momentum-flipped proposal twice returns the initial state within .
An actual distribution check
pseudofermions.py imports the existing square and Wilson kernel. For each power it runs eight independent random streams, starting at evenly spaced angles, discards 512 trajectories per stream and retains 4,096, including repetitions from rejection. Every trajectory has five steps of size . The reported uncertainty is the standard deviation of the eight replica means divided by .
| Weight | Observable | Exact angular quadrature | HMC mean and replica standard error |
|---|---|---|---|
Acceptance fractions are and . The largest discrepancy is the sine mean at estimated replica standard errors. The selected output also retains 128-trajectory block errors and half-run differences; eight replicas give only a rough uncertainty estimate. This small run checks a known distribution at percent-level precision. It does not resolve the small difference between the two determinant weights, prove equilibration, or establish a QCD efficiency gain. See autocorrelation and statistical errors for the next layer of analysis.
Summary
Pseudofermions trade a determinant for a positive Gaussian action and repeated solves. Fractional powers require matrix calculus or rational resolvents, with spectral bounds that remain valid throughout the trajectory. The refresh, molecular-dynamics force and acceptance action play different roles: only the last two together define a corrected proposal, and a correct proposal still needs an accurate conditional refresh.
Exercises
Recover the determinant force from a noise basis
For , replace a noise average by the eight vectors , where is the coordinate basis. Show that the sum, without a factor , of their pseudofermion forces equals the logarithmic derivative of .
Solution
The identity reproduces the covariance of unit complex Gaussian noise. Therefore
Dividing the basis sum by eight would instead give covariance . The sign of the logarithmic derivative agrees with , because integrating the auxiliary field produces in the weight rather than in the action.
What does an inaccurate refresh sample?
Suppose a positive rational function is used as the exact action . Find the required heatbath covariance and the determinant after integrating . Would refreshing and then using only for acceptance automatically sample ?
Solution
Diagonal Gaussian integration gives
Its conditional covariance is , so one valid refresh is . Even with that consistent refresh, the resulting gauge weight equals only when or an additional determinant correction is supplied. Using the target covariance but accepting solely with generally makes the two update stages inconsistent with either proposed joint distribution. A small rational error may make the bias small; it does not establish exact invariance. By contrast, using only for the reversible molecular-dynamics force and the target action for acceptance is the construction tested above.
References
- A. D. Kennedy, “Algorithms for Dynamical Fermions,” arXiv:hep-lat/0607038, revised PDF, §§2.9–2.11 for reversible Monte Carlo proposals, §2.15 for pseudofermions, §2.16 for finite-precision reversibility, and §§3.4–3.10 for rational approximations and RHMC.
Reproducible calculation: examples/lattice-hamiltonian/lattice-monte-carlo/pseudofermions.py and pseudofermion-results.json, importing the previous chapter's fermions.py and determinants.py. The retained seeds, environment, Gaussian checks, finite differences, trajectory tests and individual replica summaries make the quoted finite-matrix and sampling results reproducible.
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.