GP-assisted fixed-energy tunneling paths

Warning

Experimental instanton and quantum-path work in progress. These interfaces may change.

A tunnelling path at fixed energy needs many evaluations of the true potential, and its native force, not a surrogate’s, must decide convergence. This page describes a Gaussian-process (GP) assisted search for such paths and the checks that tie the surrogate to native forces.

Status: implemented as library code in gpr/quantum/, checked by C++ test programs and by the recorded measurements in bench/quantum/evidence/. No gprn or gprd flag runs it.

The fixed-energy formulation follows Ásgeirsson, Arnaldsson and Jónsson, J. Chem. Phys. 148, 102334 (2018). A small spatial band resolves the barrier crossing. Its imaginary-time parametrization supplies an instanton seed at the temperature determined by its period. SIDPP initializes the molecular geometry, and a joint energy/gradient GP reduces native calls. The scalar objective is the abbreviated action, rather than the potential energy objective of a minimum-energy path.

Action and endpoint conditions

In mass coordinates \(q=M^{1/2}(x-x_0)\), define

\[W(E)=\int_{q_a}^{q_b}\sqrt{2[V(q)-E]}\,ds, \qquad V(q_a)=V(q_b)=E.\]

The closed orbit has abbreviated action \(2W\), period \(\tau=-2\partial_EW\), Euclidean action \(S=2W+E\tau\), and temperature \(T=\hbar/(k_B\tau)\). Energies share one explicitly chosen origin. A constant shift changes \(S\) and the reactant action equally; it must not be applied to only one side of a rate ratio.

For \(l_j=|q_j-q_{j-1}|\) and \(\xi_j=\sqrt{2(V_j-E)}/\hbar\), the trapezoidal discretization is \(W/\hbar=\frac12\sum_j(\xi_{j-1}+\xi_j)l_j\). Its interior descent direction is

\[g_j=-\frac{l_j+l_{j+1}}{2\hbar^2\xi_j}\nabla V_j -\frac{\xi_{j-1}+\xi_j}{2}\hat d_j +\frac{\xi_j+\xi_{j+1}}{2}\hat d_{j+1}.\]

Only its component perpendicular to the band changes the shape. A tangential spring \(k(l_{j+1}-l_j)t_j\) controls spacing. The tangent points towards the higher-energy neighbour on monotonic segments. At extrema, define \(d_-=q_j-q_{j-1}\), \(d_+=q_{j+1}-q_j\), and let \(\Delta_{\max},\Delta_{\min}\) be the larger and smaller adjacent absolute energy differences. If \(V_{j+1}>V_{j-1}\), normalize \(\Delta_{\max}d_++\Delta_{\min}d_-\); otherwise normalize \(\Delta_{\min}d_++\Delta_{\max}d_-\). These are raw chords, retaining their lengths. A flat-energy segment uses the sum of its two chords.

The endpoints move along their energy contours. With \(n=\nabla V/|\nabla V|\) and inward spring pull \(p\), their search force is \(p-(p\cdot n)n-\kappa(V-E)n\). The sign agrees with Knarr’s contour-endpoint implementation when its normalized force is written as \(-n\). Native corrections \(\delta q=-(V-E)\nabla V/|\nabla V|^2\) close the energy contours without requiring the GP interpolation error to vanish.

SIDPP and the GP outer loop

LineIntegralNEB.h provides the fixed-energy force, a FIRE search, and imaginary-time reconstruction. GPLineIntegralNEB.h supplies an AIE outer loop and an adapter to GaussianProcessRegression, the molecular model used by GPNEB. The GP fits native energies and Cartesian gradients. Prediction uses calculatePotentialDispatched, which returns physical output units; the internal normalized predictor does not satisfy this adapter’s contract.

lineIntegralSIDPPSeed uses NEBPath::initializeSIDPP on physical Cartesian positions, including its moving-atom mask and periodic geometry. The caller sets the band cell through setPeriodicCell before generating the seed. MassMetric converts the resulting geometry into the kinetic metric. A molecular band or SIDPP seed must be trimmed to a segment whose interior lies above the selected energy before fixed-energy optimization.

The GP relaxes all images, including the contour endpoints. A bounded proposal is checked by a fresh native band. Native residuals determine acceptance and convergence. Failed surrogate proposals use a native search step. The result retains native energy/gradient values, counts native calls separately from GP predictions, and refuses orbit reconstruction for a nonconverged band.

With LineIntegralNEBOptions::jctcCompatible enabled, the GP LI-NEB path uses the JCTC transverse-force stopping rule and turning-contour checks for both native validation and surrogate relaxation. Its scheduled spring and endpoint-contour updates continue across GP refits. The LI-String optimizer does not implement those constraints, so the GP driver rejects that option combination.

Pair-local GP curvature

The molecular path adapter enables GaussianProcessRegression::setPairLocalDirectionalTiles(true) for local complete energy/gradient layouts. This computes exact covariance hyperparameter derivatives from sparse pair contributions. Distributed layouts use the channel-block assembly. Passing false as the optional fourth LineIntegralGPModel constructor argument selects that assembly for a local fit comparison.

For inverse-distance descriptor differences delta_f and weights w_f=exp(-2 theta_p(f)), write k=m exp(-sum_f w_f delta_f^2). Let U=2 sum_f w_f delta_f J_if, V=2 sum_f w_f delta_f J_jf and C=2 sum_f w_f J_if J_jf^T. The force-covariance block is kG with G=C-UV^T. For one direction in the packed log parameters, define a=(log k)’ and b=(log k)’’. Then

\[(kG)'=k(aG+G'),\qquad (kG)''=k[(a^2+b)G+2aG'+G''],\]
\[G'=C'-U'V^T-UV'^T,\qquad G''=C''-U''V^T-2U'V'^T-UV''^T.\]

Each pair Jacobian touches at most six coordinates, so its mixed product updates at most four 3-by-3 blocks. With D moving coordinates and F pair features, one configuration-pair tile takes O(D^2+36F) work. The common assembly applies the kernel nugget and likelihood-noise derivatives. PairLocalDirectionalTest compares both derivative orders against independent existing derivatives and centered differences, including tied and shared lengths, zero weights and periodic cells.

These are hyperparameter derivatives for fitting. Physical nuclear curvatures and native residuals determine instanton stationarity and rates.

Imaginary-time reconstruction and rates

On a link of length \(l\), let \(a=\sqrt{V_L-E}\) and \(b=\sqrt{V_R-E}\). Linear interpolation of the potential gives exact link integrals

\[W_{\rm link}=\frac{2\sqrt2\,l}{3}\frac{a^2+ab+b^2}{a+b}, \qquad t_{\rm link}=\frac{\sqrt2\,l}{a+b}.\]

These expressions remain finite at a simple turning point. If \(u\) is the elapsed fraction of the link traversal time, its spatial fraction is \(s=u[2a+(b-a)u]/(a+b)\). lineIntegralOrbit samples equal imaginary-time intervals using this map and folds the outgoing path into a closed ring. The action uses the same linear-potential link model as the period. The trapezoidal search objective and the reconstructed action have separate mesh errors; increasing the spatial image count checks both.

This reconstruction supplies a path and exponent. The rate also requires physical fluctuation curvatures, the matched reactant normalization, the negative mode, and removal/integration of the orbit phase. The Gaussian link and saddle-family interfaces in quantum_paths.org supply those factors. GP search curvatures alone do not establish a physical fluctuation determinant. Native stationarity and mesh convergence of the reconstructed ring require checking when that ring is used for a rate.

At a double turning point the traversal time diverges. An energy at a reactant minimum requires a matched harmonic tail, as in the zero-energy geodesic interface; rounding that energy above the minimum changes the physical problem. Spatial optimization avoids native calls for dense imaginary-time dwell beads, but does not remove this limiting analysis.

Measured C++ checks

Slurm measurements are frozen in bench/quantum/evidence/line-integral/. The molecular-GP comparison uses a three-coordinate barrier with two fixed neighbouring atoms and coordinate masses of 2. Both searches require native force below \(10^{-5}\) and endpoint energy error below \(10^{-7}\). The selective benchmark path measures images outside a radius in the fitted GP feature metric. A proposed endpoint beyond this radius joins the selected native-query batch. In energy-contour mode, measured endpoint energy and gradient correct the contour before the band advances. Native full-band validation remains required for convergence. The bounded fit requires the latest native anchor for each endpoint and the selected interior observations. A corrected endpoint replaces its trial-site requirement; an unmeasured endpoint inside the trust radius remains a prediction target. The improved-tangent measurement in bench/quantum/evidence/line-integral-tangent/GPLineIntegralNEB.txt uses 1251 native evaluations for direct LI-NEB, versus 37 and two fits for the GP-assisted search. The native-call ratio is 33.8. Wall times are 0.000266384 s and 0.351174431 s on the cheap analytic potential: the GP overhead is visible, and this measurement does not establish a CPMD wall-time speedup.

In that record, the three fixed-energy test programs satisfy 281, 37 and six checks (README.org in the same directory). The tests count their own checks at run time, so a later source can print a larger total. Six force checks distinguish the improved raw-chord tangent from selecting only one neighbour or combining unit chords. They cover asymmetric maxima, an asymmetric minimum, equal-energy neighbours, both monotonic orientations, unequal chord lengths and hbar=0.7. A separate build with the unchanged tangent rejects the first added force check. Its nonzero exit is the expected negative-control result.

The independent two-dimensional checks cover rotation, action and period against a parabolic barrier, and convergence with 9, 17 and 33 spatial images (LineIntegralNEB.txt in the same directory). A curved-barrier check finds a midpoint displacement 0.150189 (LineIntegralGuards.txt) where the potential valley lies at 0.2, demonstrating corner cutting. SIDPP checks preserve the fixed atoms, and a nonstationary native path refuses orbit certification.

Native proposals with a harmonic inner tail

ZeroEnergyGeodesicPotential::propose accepts the owned native state and returns a target path in mass coordinates. An empty path requests the native Newton step. A molecular GP can fit that state’s native energies and gradients and relax a surrogate geodesic with the same harmonic inner root and radius. The outer optimizer reevaluates the proposal with native forces, preserves the outward inner and inward outer orientations, and requires the same native residual decrease as its Newton step. Rejected model proposals use the native Newton direction. modelProposals and rejectedModelProposals count these decisions separately.

The native convergence test retains all five conditions: interior force, inner momentum, inner radius, mesh spacing and outer turning energy. Neither surrogate stationarity nor its iteration count can certify the native path. After a measured proposal fails, the optimizer calls the proposer again with the observation available to its model; it falls back to the native Newton direction only when both proposal attempts fail. The proposal test (ZeroEnergyProposalTest.cpp) asserts that an exact surrogate needs fewer native evaluations than the direct Newton search, prints both counts, and also verifies rejection of a hostile proposal. That test measures the proposal interface; it is separate from the molecular-GP benchmark.

ZeroEnergyGeodesicOptions::maximumStep caps the largest image displacement in a trial; its default is 0.1 in mass coordinates. A GP proposal is backtracked within the configured trial budget when the native domain refuses it before producing a complete observation. Once a native batch has been returned, a rejected path is sent back through the proposal callback before another native batch is requested, so the model can incorporate that observation. An unchanged displacement is halved on this retry; a changed proposal is tried from the current path. The Newton step halves after a domain refusal, a turning-orientation failure or a trial that does not lower the native residual. ZeroEnergyGeodesicOptions::maximumBacktracks sets the number of trials per proposal or Newton step; its default is 12. The optimizer falls back to Newton when its two GP proposal attempts fail. Surrogate stationarity never certifies the native path.

Consistent posterior curvature in mass coordinates

For physical coordinates x=x_ref+M^(-1/2)q, the chain rule gives

\[\nabla_q V=M^{-1/2}\nabla_x V,\qquad H_q v=M^{-1/2}H_x(M^{-1/2}v).\]

LineIntegralGPModel::prepareHessian(q) prepares this linear action from GaussianProcessRegression::prepareMeanHessian. It differentiates the physical posterior, including its mean and residual. The fitted model must remain unchanged while the action is consumed. Nonfinite or wrongly sized directions return failure. The operator supplies surrogate search curvature; it is not a measured native fluctuation Hessian.

Posterior factorization and hyperparameter stationarity have separate roles. A finite, factorized posterior can supply path proposals when its hyperparameter optimizer reaches a limit. The wrapper checks all training predictions in that case, and hyperparametersConverged() retains the optimization diagnostic. Failed factorization still refuses a model. Every path acceptance and convergence decision uses native forces.

The independent C++ curvature control retains two moving atoms with masses 2 and 5, a displaced coordinate origin, and both isolated and skew-periodic cells. Its 59 assertions compare every mass-coordinate Hessian column against differences of the posterior gradient, check linearity and symmetry, and translate one atom by a cell lattice vector. Slurm validation job 27190 (bench/quantum/evidence/gp-mass-hessian/) measures maximum derivative errors 2.36371e-7 and 2.36053e-7 for the isolated and periodic cases. The three existing GP path programs retain their six, twelve and twenty-four successes.

Turning direction and independent orbit qualification

A stationary contour force only aligns the endpoint link with the energy normal. It does not choose the sign of that alignment. For the band to enter the forbidden region, its inward endpoint displacements must satisfy

\[\nabla V(q_a)\cdot(q_1-q_a)>0,\qquad \nabla V(q_b)\cdot(q_{N-1}-q_b)>0.\]

LineIntegralNEBState::turningOrientationsQualified records this necessary condition. Direct and GP-assisted convergence require it together with the unchanged force and contour-energy tolerances. Searches with nonzero residual may rotate their endpoints. A stationary reversed band returns nonconvergence; lineIntegralOrbit independently checks the native coordinates and gradients rather than trusting a stored convergence flag.

A smooth counterexample is

\[V(x,y)=-5x^3+\frac{15}{2}x^2-x-\frac12+\frac12y^2, \quad E=0, \quad q_a=(0,-1),\ q_1=(1,0),\ q_b=(0,1).\]

Its nodal energies are (0,1,0). Both action quadratures have zero projected nodal force, but each inward energy derivative is -2. Along the first link, V(q_a+0.1(q_1-q_a))=-1/8: the link enters the allowed region. The checks in LineIntegralTurningOrientationTest (the test prints their count) exercise this polynomial, direct and GP searches, native-call bounds, independent orbit refusal and valid turns for both quadratures. Positive endpoint derivatives do not prove that every point between nodes lies in the forbidden region; native mesh refinement remains necessary.

The native acceptance rule also requires these inward derivatives for nonstationary GP proposals. Positive sampled interior energies alone are insufficient: a link can enter the allowed region at its endpoint and return above E before its next node. A reversed measured proposal stays in the training data, triggers a new GP fit and contracts the trust region. It cannot replace the current native band under either acceptance policy. Final force and contour tolerances are unchanged.

GPLineIntegralTurningAcceptanceTest uses the conservative native potential V(x,y)=1-x^2/2+50x^2 y^2+2y^2. A biased surrogate proposes a band whose endpoint x-gradient reverses for abs(y)>0.1 although its sampled interior energies remain positive. The corrected search retains those measurements and converges after two fits; the uncorrected search accepts the reversed band without refitting and fails the same behavioral test.