- Home
- Library
- Lattice and Hamiltonian Field Theory
- Finite Density and the Sign Problem
- Thimble Methods and Contour Deformation
Thimble Methods and Contour Deformation
Moving an integration contour into complex field space can reduce oscillations without changing the integral. But three pieces must survive the move: the allowed ends of the contour, the complex Jacobian, and every contributing sector. We will check all three in a coupled two-variable integral. Dropping one sector or replacing a Jacobian by its magnitude gives a definite wrong answer.
Preparation: Complex integration and Gaussian integrals. Complex Saddles and Integration Cycles develops the oriented cubic cycles reused below. The construction here adds a coupled second variable, a nonconstant Jacobian and independent two-dimensional integration. All variables are dimensionless.
Deform the complete measure
Consider an -variable integral with a specified real -dimensional cycle in complexified field space:
The positive parameter controls the weight; it is not a physical Planck constant here. Suppose a deformation gives a parameterization , with real coordinates and Jacobian . Pulling back the holomorphic volume form gives
The determinant is complex. It records both the stretching and orientation of the tangent volume. A valid deformation preserves the homology class appropriate to the integrand: no singularity may be crossed without accounting for it, and boundary contributions at infinity must vanish in allowed decay regions. A locally smooth map alone does not establish these global conditions.
If one samples the positive weight
the observable is reconstructed as
This identity requires a nonzero denominator and correctly sampled support. A smaller action phase may help, but the Jacobian phase and cancellation between regions still matter. The computation below uses deterministic quadrature, so it can expose these effects without sampling noise.
What gradient flow preserves
For a holomorphic action, the outward gradient flow in a flat metric is
It obeys
Thus decays as one flows outward from a nondegenerate saddle along its decay directions. The corresponding real -dimensional stable integration cycle is a Lefschetz thimble. The sign of flow reverses when one describes trajectories running inward toward the saddle. The local saddle directions are only the beginning: their endpoints and intersections with dual cycles determine whether they occur in the original integral. Witten, §3.2, especially Eq. (3.32) (PDF), develops the higher-dimensional cycle construction.
A finite-time flow of the entire original contour generally gives a manifold that is not itself a thimble. Wherever this flow exists smoothly, its tangent matrix satisfies
The conjugation acts on both and : differentiation is with respect to real initial coordinates. Replacing this equation by transports a different tangent matrix. The companion checks the stated equation against finite differences at six bounded local flows.
On an exact thimble, is constant but need not be. Moreover, an original cycle can contain several thimbles:
The oriented integers come from the original cycle and its dual intersections. Different sectors may carry different action phases. A single-thimble approximation discards terms in this sum; constant phase within the retained sector does not justify that omission. Aarts, §10.4, Eqs. (10.6)–(10.7) (PDF) distinguishes the residual measure phase from the relative phases of several sectors.
A coupled integral whose normalization is known
Define
Here is real. The oriented contour comes inward from infinity on the ray , passes through zero and goes outward on . The contour is the real line. These are the defining contours, not an integral over two real axes.
The cubic term gives decay on both rays. The absolute real- Gaussian integration can produce growth quadratic in , which is dominated by this cubic decay. The original double integral is therefore absolutely convergent, and completing the square is legitimate with the associated contour shifts.
Introduce
The action becomes
The linear triangular transformation has unit complex determinant. Translating the Gaussian line and the cubic contour preserves their allowed ends; the entire integrand has no finite singularity. The normalized Gaussian integral is one. The remaining cubic contour has the standard Airy normalization, giving
The factor is essential. This relation supplies an oracle, while direct two-dimensional quadrature on the original contours provides an independent numerical route.
Choose
Then , and . The result is
The two critical points follow either from the transformed action or from its original gradient:
We use the principal square root. Both saddles are nondegenerate for this nonzero .
Transport two oriented sectors
The earlier intersection coefficients of the one-variable cubic supplies two oriented cycles and for . Their decay-sector endpoints are and , respectively, where denote the rays at . Consequently
This endpoint argument is valid for this entire cubic integrand; it is not a general substitute for an intersection calculation in the presence of punctures or extra cycles. Taking each cubic cycle times the real Gaussian line, and transporting it through the invertible transformation above, gives two genuine two-dimensional sectors of the coupled integral with coefficients .
These are transported product cycles. At zero further deformation they are thimbles for the transported metric, but they are not asserted to be the gradient thimbles of the flat metric in the original coordinates. Their admissible homology and integrals suffice for the check.
The companion imports the existing pure cubic flow kernel and recomputes its oriented integrals. Including the Gaussian normalization and constant factor gives
Keeping only the plus sector misses a contribution of magnitude . This error persists when that sector is integrated accurately. The full oriented sum agrees with the original integral.
The flow integrations retain the complex tangent , reverse the orientation of the incoming branch, and include a short connector between seeds near the saddle. Changing flow tolerance, endpoint radius and seed distance reduces the full-sum error from to . Separate one-parameter controls are also retained. The old chapter is not modified by this reuse.
A deformation with a varying Jacobian phase
To test more than a linear change of coordinates, deform the Gaussian direction in each sector:
Its real part is , so the curve is injective. Its imaginary displacement vanishes at both ends, preserving Gaussian decay throughout the homotopy. The tangent is
whose real part is one on the integration line. If parameterizes a cubic cycle, the coupled contour is , , and
The Gaussian factor in the pulled-back measure is
For , these explicitly deformed sectors are not steepest-descent cycles: the Gaussian action phase varies as well as the measure phase. They are nevertheless valid contours for the same integral. Exact contour invariance does not require constant phase.
At , three numerical choices give
Thus omitting the Jacobian, or keeping its magnitude while dropping its phase, changes the result. In these tests the cubic tangent and both sectors are still retained, so the discrepancy isolates the new Gaussian-direction measure error. The correct complete sum remains ; omitting only this Jacobian instead gives approximately .
Left: the projection of the transported sectors at , and ; arrows show their integration orientation. The Gaussian direction is not shown. Right: complex integral values distinguish the correct oriented sum, omission of the minus sector and omission of while both sectors are retained. These are quadrature results, not Monte Carlo samples or a computation of flat-metric two-dimensional thimbles.
Independent controls and what they establish
Direct tensor Gauss–Legendre integration uses the original lower/upper rays and real , before completing the square. Radial/real orders with cutoffs , and with cutoffs , reproduce within . Separate order and cutoff changes are recorded; the last few digits fluctuate at floating-point precision rather than forming a rigorous error enclosure.
The same direct calculation checks mixed moments. Since is a centered Gaussian after transformation,
For this example, and . The partition function and five retained moments agree within in the refined direct quadrature. These expectations are complex-weighted moments, not positive-measure means of real fields.
The Gaussian-direction adaptive quadrature is checked against a separate Gauss–Legendre sequence. At , the factor error falls from at order 64 to at order 128, then about at orders 192 and 256. The coarse values are retained: contour invariance is not permission to use unresolved quadrature. Direct finite differences of the full two-variable map verify its Jacobian with second-order convergence. A separate bounded flow test checks and constant imaginary action; it does not integrate an entire globally flowed manifold.
For a field theory, finding all relevant sectors and sampling them can be much harder than computing a local flow. Dense tangent transport stores an matrix; dense Hessian multiplication and determinant evaluation can require cubic work in , with different costs for sparse structure or specialized algorithms. Long flow can improve local phases while separating modes and making transitions between them harder. Alexandru et al., §II, Eqs. (2.5)–(2.9), and §III, Eq. (3.11) (PDF) discuss tangent transport and residual-phase reconstruction. These costs and global coverage questions are not settled by the two-variable calculation.
Summary
A complex deformation preserves an integral when its full measure and admissible cycle are retained. The coupled example requires two oriented sectors, and its nonlinear Gaussian-direction deformation requires a complex Jacobian. Both omissions produce errors that remain after quadrature refinement. Gradient flow provides useful manifolds and local phase control, while residual phases, singularities, boundaries and sector coverage remain separate requirements.
The reproducible source and selected results are coupled_contours.py and contour-results.json under examples/lattice-hamiltonian/sign-problem/. The pure cubic kernel is imported from the earlier semiclassical example. No stochastic sampling, QCD saddle search or general proof of single-thimble dominance is implied.
Exercises
1. Check the coupling through a mixed moment
Show that the transformed variables imply . Derive from the cubic integral and evaluate the limit at fixed .
Solution
The transformed weight factorizes between and . Since and , the cross term vanishes, while . This gives the stated relation. The integral of a total derivative on the cubic cycle vanishes at its decay ends:
Thus . Differentiating the normalized cubic integral with respect to gives , provided its partition function is nonzero. Therefore
At the stated parameters this is , giving . These complex moments are consistent with the original coupled weight. As , , , the two variables decouple, and , . The appropriate cubic sector combination is still fixed by the original contour; decoupling the Gaussian does not select one cubic sector.
2. Detect a missing Jacobian before numerical integration
Differentiate with respect to and prove that it is independent of the deformation. Then compute the linear error when is omitted.
Solution
The derivative of the complete integrand is a total derivative:
Here vanishes at both ends fast enough to remove the boundary term. Hence , and fixes every along the admissible homotopy.
Without the Jacobian, expansion of the exponent gives
The Gaussian moment follows by differentiating at . The missing Jacobian would contribute exactly the opposite linear term. At , the predicted imaginary slope is about , consistent with the finite-deformation values above. No increase in quadrature accuracy can remove this measure error.
References
- Aarts, Gert. “Introductory lectures on lattice QCD at nonzero baryon number,” Journal of Physics: Conference Series 706, 022004 (2016), arXiv:1512.05145v1 (PDF), §10.4, Eqs. (10.6)–(10.7): residual and inter-sector phases.
- Alexandru, Andrei, Gökçe Başar, Paulo F. Bedaque, Gregory W. Ridgway and Neill C. Warrington. “Fast Estimator of jacobians in Monte Carlo Integration on Lefschetz Thimbles,” Physical Review D 93, 094514 (2016), arXiv:1604.00956v1 (PDF), §II, Eqs. (2.5)–(2.9), and §III, Eq. (3.11): tangent matrices, computational cost and phase reconstruction.
- Witten, Edward. “Analytic Continuation Of Chern-Simons Theory” (2010), arXiv:1001.2933v4 (PDF), §§3.1–3.2: oriented cycles and the several-variable flow. His exponent corresponds to here. The coupled integral and explicit Gaussian-direction homotopy above are derived for this teaching example.
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.