namespace gpr::quantum¶
Overview¶
Models for quantum-path (instanton) searches: arc and tail actions, amplitude continuation. More…
namespace quantum {
// namespaces
namespace gpr::quantum::bathresponse;
namespace gpr::quantum::beadcorrection;
namespace gpr::quantum::elementfluct;
namespace gpr::quantum::functionaldesign;
namespace gpr::quantum::gaussian;
namespace gpr::quantum::ratepost;
namespace gpr::quantum::ringbath;
namespace gpr::quantum::ringspread;
namespace gpr::quantum::spectraldet;
// typedefs
typedef std::vector<PolynomialTerm> SparsePolynomial;
typedef std::function<std::vector<PotentialEvaluation>(const std::vector<Eigen::VectorXd>&)> LineIntegralNEBBatch;
typedef Eigen::VectorXd Vector;
typedef Eigen::MatrixXd Matrix;
typedef Eigen::SparseMatrix<double, Eigen::ColMajor, int> SearchSparseMatrix;
// enums
enum LineIntegralAction;
enum LineIntegralProposalAcceptance;
enum ReferenceDiscretization;
// structs
struct AffineGaussianArcOptions;
struct AffinePathBoundary;
struct AmplitudeContinuationOptions;
struct AmplitudeContinuationResult;
struct AmplitudeSample;
struct ArcTailEvaluation;
struct ArcTailForceGradientData;
struct ArcTailNewtonStep;
struct ArcTailPotential;
struct ArcTailSearchOptions;
struct ArcTailSearchResult;
struct CentralHessianColumnBatch;
struct ConstrainedFamilyPoint;
struct ConstrainedImaginaryTimeSample;
struct ConstrainedImaginaryTimeTrajectory;
struct ConstrainedQuantumBandBranch;
struct CyclicQuarticReduction;
struct CyclicSoftMode;
struct GPArcTailOptions;
struct GPArcTailResult;
struct GPBandNodeScore;
struct GPLineIntegralNEBOptions;
struct GPLineIntegralNEBResult;
struct GaussianLaw;
struct GaussianMoment;
struct GaussianPolynomialMoments;
struct HarmonicLinkEvaluation;
struct HarmonicPointCurvature;
struct HarmonicPointInertia;
struct HarmonicTail;
struct IndexTargetedArcKernel;
struct IsoenergyTurningPointRefinement;
struct JacobiPathEvaluation;
struct JacobiSegment;
struct JacobiTurningPoint;
struct LineIntegralFIREState;
struct LineIntegralFeasibilityResult;
struct LineIntegralNEBOptions;
struct LineIntegralNEBResult;
struct LineIntegralNEBState;
struct LineIntegralOrbit;
struct MolecularBlockFluctuations;
struct MolecularRingFluctuations;
struct NativeNewtonKrylovResult;
struct PathConstraints;
struct PathIteration;
struct PathPotential;
struct PolynomialTerm;
struct PotentialEvaluation;
struct PotentialPathOptions;
struct PotentialPathResult;
struct ReducedGaussianGLEResult;
struct ReducedGaussianSegmentResult;
struct ReferenceForceGradientValue;
struct SaddleFamilyPoint;
struct SphereEnergyProjection;
struct SurrogatePathTrustDecision;
struct ThermalJacobiPeriod;
struct TwistedConstraintStep;
struct ZeroEnergyGeodesicEvaluation;
struct ZeroEnergyGeodesicOptions;
struct ZeroEnergyGeodesicPotential;
struct ZeroEnergyGeodesicResult;
// classes
class AffineGaussianArcModel;
class AffineGaussianJet;
class ArcTailAction;
class CartesianNaturalCubicPath;
class HarmonicPathCorrection;
class HarmonicReference;
class HarmonicTurningTail;
class LineIntegralGPModel;
class MassMetric;
template <class Model>
class NativeGPPath;
class PositiveArcAction;
template <class Model>
class QuadraticMeanGPModel;
class ReflectedSearchCache;
template <class SparseBackend = Eigen::SparseLU<SearchSparseMatrix>>
class SearchKktFactor;
class ThermalGeodesicSeed;
class WellJetCorrection;
// global functions
AmplitudeContinuationResult continuePotentialPathAmplitude(const std::vector<Eigen::VectorXd>& initial, const MassMetric& metric, const PathPotential& potential, const AffinePathBoundary& boundary, const PathConstraints& constraints, const AmplitudeContinuationOptions& options = {});
AmplitudeContinuationResult continuePotentialPathAmplitudeInPhasePlane(const std::vector<Eigen::VectorXd>& initial, const MassMetric& metric, const PathPotential& potential, const AffinePathBoundary& boundary, const PathConstraints& constraints, Eigen::Index phaseColumn, const AmplitudeContinuationOptions& options = {});
template <class Action>
ArcTailForceGradientData prepareArcTailForceGradient(const Action& action, const std::vector<Eigen::VectorXd>& points, double duration, const std::vector<PotentialEvaluation>& native, const ArcTailPotential& potential, const ArcTailSearchOptions& options, const std::function<std::vector<PotentialEvaluation>(const std::vector<Eigen::VectorXd>&)>& ownedEvaluate);
template <class Action>
ArcTailEvaluation evaluateArcTailForceGradient(const Action& action, const std::vector<Eigen::VectorXd>& points, const std::vector<PotentialEvaluation>& native, double duration, const ArcTailForceGradientData& data, const std::vector<Eigen::MatrixXd>& searchHessians = {}, const std::vector<Eigen::MatrixXd>& searchThirdContractions = {});
ArcTailNewtonStep solveArcTailNewton(const ArcTailEvaluation& state, const std::vector<M>& normals, const V& correction);
ArcTailNewtonStep solveArcTailNewton(const ArcTailEvaluation& evaluation, const std::vector<Eigen::MatrixXd>& orthonormalNormals, const Eigen::VectorXd& constraintCorrection);
ArcTailSearchResult optimizeArcTail(const ArcTailAction& action, const std::vector<V>& initial, double duration, const PathConstraints& constraints, const ArcTailPotential& potential, const ArcTailSearchOptions& options, const std::function<void(const ArcTailSearchResult&)>& retain);
ArcTailSearchResult optimizeArcTail(const ArcTailAction& action, const std::vector<Eigen::VectorXd>& initial, double initialArcDuration, const PathConstraints& constraints, const ArcTailPotential& potential, const ArcTailSearchOptions& options = {}, const std::function<void(const ArcTailSearchResult&)>& retain = {});
Eigen::MatrixXd boundedStationaryBathReference(const Eigen::MatrixXd& saddleCurvature, const Eigen::MatrixXd& reactionDirections);
void evaluateCentralHessianColumns(const std::vector<Eigen::VectorXd>& centers, const std::vector<Eigen::Index>& columns, double step, const PathPotential& potential, const std::function<void(const CentralHessianColumnBatch&)>& retain);
double logConstraintFamilyJacobian(const Eigen::MatrixXd& normals, const std::vector<Eigen::MatrixXd>& normalDerivatives, const Eigen::MatrixXd& targetDerivatives, const Eigen::VectorXd& point);
double logImFConstrainedFamilyRate(double referenceAction, const gaussian::TwistedTraceResult& reference, const std::vector<ConstrainedFamilyPoint>& family, Eigen::Index retainedCoordinates, double hbar, double symmetryFactor = 1);
template <class NativeEvaluate, class NativeEnergy>
IsoenergyTurningPointRefinement refineIsoenergyTurningPoints(const std::vector<Eigen::VectorXd>& cartesianPath, double contourEnergy, NativeEvaluate&& evaluate, NativeEnergy&& nativeEnergy, std::size_t maximumIterations = 32, double maximumStepBohr = .1, double energyTolerance = 1e-12);
template <class NativeEvaluate, class NativeEnergy>
ConstrainedImaginaryTimeTrajectory integrateConstrainedImaginaryTimePath(const std::vector<Eigen::VectorXd>& cartesianPath, const Eigen::VectorXd& masses, NativeEvaluate&& evaluate, NativeEnergy&& nativeEnergy, double timeStep = 4., double boltzmann = 3.1668152e-6, std::size_t maximumSteps = 1000000, double endTolerance = 1e-3);
std::vector<Eigen::VectorXd> sampleBondCenteredImaginaryTimeRing(const ConstrainedImaginaryTimeTrajectory& trajectory, std::size_t fullBeads);
double affineQuantumBandLogCoarea(const Eigen::MatrixXd& constraintGradients);
ConstrainedQuantumBandBranch constrainedQuantumBandBranch(double action, const gaussian::TwistedRestrictedResult& fluctuations, Eigen::Index physicalCodimension, Eigen::Index integratedChartDimensions, double quadratureWeight, double logCoareaJacobian);
ConstrainedQuantumBandBranch affineConstrainedQuantumBandBranch(double action, const gaussian::TwistedRestrictedResult& fluctuations, const Eigen::MatrixXd& constraintGradients, double quadratureWeight = 1.);
ConstrainedQuantumBandBranch affineConstrainedQuantumBandBranch(double action, const gaussian::TwistedRestrictedResult& fluctuations, const Eigen::VectorXd& constraintGradient, double quadratureWeight = 1.);
double logConstrainedQuantumBandWeight(const std::vector<ConstrainedQuantumBandBranch>& branches, double beta, double hbar);
double constrainedQuantumBandFreeEnergyDifference(double logWeight, double referenceLogWeight, double beta);
CyclicSoftMode cyclicSoftMode(const gaussian::Segment& link, std::size_t nodes);
CyclicQuarticReduction cyclicQuarticReduction(const gaussian::Segment& link, std::size_t nodes, const V& cubic, double fourth);
std::vector<V> cyclicQuarticSeed(const CyclicQuarticReduction& reduction, double phase);
CyclicQuarticReduction cyclicQuarticReduction(const gaussian::Segment& link, std::size_t nodes, const Eigen::VectorXd& cubicVV, double quarticVVVV);
ArcTailNewtonStep solveFixedTimeArcNewton(const ArcTailEvaluation& state, const std::vector<Eigen::MatrixXd>& normals, const Eigen::VectorXd& correction);
ArcTailSearchOptions fixedTimeArcOptions();
template <class Action>
ArcTailSearchResult optimizeFixedTimeArc(const Action& action, const std::vector<Eigen::VectorXd>& initial, double duration, const PathConstraints& constraints, const ArcTailPotential& potential, const ArcTailSearchOptions& options = fixedTimeArcOptions(), const std::function<void(const ArcTailSearchResult&)>& retain = {}, double maximumDisplacement = std::numeric_limits<double>::infinity());
gaussian::Segment frequencyFittedKinetic(const Eigen::MatrixXd& curvature, double duration);
long double weightedEventBound(const GaussianPolynomialMoments& moments, long double probabilityBound);
GaussianPolynomialMoments evaluateGaussianPolynomial(const GaussianLaw& law, const SparsePolynomial& polynomial, std::optional<long double> eventProbabilityBound);
Eigen::VectorXd geodesicMeshConstraints(const std::vector<Eigen::VectorXd>& path, const std::vector<double>& weights = {});
std::vector<Eigen::VectorXd> retractGeodesicMesh(const std::vector<Eigen::VectorXd>& path, const std::vector<double>& weights, double tolerance, const Eigen::VectorXd& target = {});
ZeroEnergyGeodesicPotential restrictGeodesicProposal(ZeroEnergyGeodesicPotential model, std::vector<Eigen::VectorXd> center, double radius);
template <class Model, class Action>
GPArcTailResult optimizeGPArcTail(const Action& action, const std::vector<Eigen::VectorXd>& initial, double duration, const PathConstraints& constraints, const ArcTailPotential& potential, Model& model, const GPArcTailOptions& options = {}, const std::function<void(const GPArcTailResult&)>& retain = {});
bool sameGPBandPoint(const Eigen::VectorXd& left, const Eigen::VectorXd& right);
std::vector<GPBandNodeScore> selectGPBandNodes(const std::vector<Eigen::VectorXd>& points, const std::vector<double>& massGradientVariance, const Eigen::VectorXd& weights, const std::vector<Eigen::VectorXd>& measured, std::size_t maximumNodes);
std::vector<Eigen::VectorXd> lineIntegralSIDPPSeed(neb::NEBPath& physicalBand, int atoms, const std::vector<char>& moving, const MassMetric& metric, double alpha = .33);
template <class Model>
GPLineIntegralNEBResult optimizeGPLineIntegralNEB(const std::vector<Eigen::VectorXd>& initial, const LineIntegralNEBBatch& potential, Model& model, const GPLineIntegralNEBOptions& options = {}, const std::function<void(const GPLineIntegralNEBResult&)>& retain = {});
Eigen::MatrixXd stationaryBathReference(const Eigen::MatrixXd& saddleCurvature, const Eigen::MatrixXd& reactionDirections);
IndexTargetedArcKernel indexOneArcKernel(const std::vector<gaussian::Segment>& segments, const Eigen::MatrixXd& normal);
double quadraticArcActionChange(const ArcTailEvaluation& state, const std::vector<Eigen::VectorXd>& displacement);
bool arcActionChangeAgrees(double actual, double predicted, double scale);
JacobiSegment jacobiSegment(const Eigen::VectorXd& left, const Eigen::VectorXd& right, const PotentialEvaluation& vl, const PotentialEvaluation& vr, double energy);
JacobiPathEvaluation evaluateJacobiPath(const std::vector<Eigen::VectorXd>& points, const std::vector<PotentialEvaluation>& native, double energy);
JacobiTurningPoint findJacobiTurningPoint(const Eigen::VectorXd& left, const Eigen::VectorXd& right, double energy, const std::function<PotentialEvaluation(const Eigen::VectorXd&)>& evaluate, double energyTolerance = 1e-9, std::size_t maximumEvaluations = 64);
LineIntegralNEBState evaluateLineIntegralNEB(const std::vector<Eigen::VectorXd>& q, const std::vector<PotentialEvaluation>& values, double energy, double spring = 1., double contour = 10., double hbar = 1., LineIntegralAction action = LineIntegralAction::MomentumTrapezoid, bool jctcCompatible = false, double contourRight = 0., double actionForceCutoff = 1e-4);
std::vector<Eigen::VectorXd> lineIntegralSearchForces(const std::vector<Eigen::VectorXd>& q, const std::vector<PotentialEvaluation>& values, const LineIntegralNEBState& state, const LineIntegralNEBOptions& options);
LineIntegralFeasibilityResult restoreLineIntegralInterior(std::vector<Eigen::VectorXd>& trial, std::vector<PotentialEvaluation>& values, const std::vector<PotentialEvaluation>& source, const LineIntegralNEBOptions& options, const LineIntegralNEBBatch& native, std::size_t maximumCorrections = 4);
LineIntegralNEBResult optimizeLineIntegralNEB(const std::vector<Eigen::VectorXd>& initial, const LineIntegralNEBBatch& potential, const LineIntegralNEBOptions& options = {}, const std::function<void(const LineIntegralNEBResult&)>& retain = {}, LineIntegralFIREState* fireState = nullptr, const std::function<bool(const std::vector<Eigen::VectorXd>&)>& earlyStop = {});
LineIntegralOrbit lineIntegralOrbit(const LineIntegralNEBResult& result, double energy, std::size_t beads, double hbar = 1., double boltzmann = 1., double tolerance = 1e-8);
std::vector<Eigen::VectorXd> reparameterizeLineIntegralString(const std::vector<Eigen::VectorXd>& path);
std::vector<Eigen::VectorXd> lineIntegralStringActionForces(const std::vector<Eigen::VectorXd>& q, const std::vector<PotentialEvaluation>& values, double energy, double hbar, LineIntegralAction action);
LineIntegralNEBState evaluateLineIntegralString(const std::vector<Eigen::VectorXd>& q, const std::vector<PotentialEvaluation>& values, double energy, double spring = 1., double contour = 10., double hbar = 1., LineIntegralAction action = LineIntegralAction::MomentumTrapezoid);
bool lineIntegralStringNeedsReparameterization(const std::vector<Eigen::VectorXd>& path);
LineIntegralNEBResult optimizeLineIntegralString(const std::vector<Eigen::VectorXd>& initial, const LineIntegralNEBBatch& potential, const LineIntegralNEBOptions& options = {}, const std::function<void(const LineIntegralNEBResult&)>& retain = {}, LineIntegralFIREState* fireState = nullptr);
MolecularBlockFluctuations molecularBlockFluctuations(const std::vector<Eigen::VectorXd>& positions, const Eigen::VectorXd& masses, const std::vector<Eigen::MatrixXd>& physicalHessians, double beta, double hbar = 1);
double molecularBlockLogTunnelingFactor(const MolecularBlockFluctuations& ring, const Eigen::VectorXd& saddleCurvatures, double saddleLogInertia, double actionRelativeToSaddleOverHbar, double beta, double hbar = 1);
double molecularBlockLogUnimolecularRate(const MolecularBlockFluctuations& ring, const Eigen::VectorXd& reactantCurvatures, double reactantLogInertia, double actionRelativeToReactantOverHbar, std::size_t nodes, double beta, double hbar = 1, double symmetryFactor = 1);
Matrix molecularRigidModes(const Vector& x, const Vector& masses);
Matrix molecularInternalBasis(const Vector& x, const Vector& masses);
double molecularLogInertiaDeterminant(const Eigen::VectorXd& positions, const Eigen::VectorXd& masses, double copies = 1);
MolecularRingFluctuations molecularRingFluctuations(const std::vector<Eigen::VectorXd>& positions, const Eigen::VectorXd& masses, const std::vector<Eigen::MatrixXd>& physicalHessians, double beta, double hbar = 1);
double molecularLogTstVibrationalPartition(const Eigen::VectorXd& eigenvalues, double beta, double hbar = 1);
double molecularLogHarmonicRingPartition(const Eigen::VectorXd& curvatures, std::size_t nodes, double beta, double hbar = 1);
double molecularLogUnimolecularRate(const MolecularRingFluctuations& ring, const Eigen::VectorXd& reactantInternalCurvatures, double reactantLogInertiaDeterminant, double actionRelativeToReactantOverHbar, std::size_t nodes, double beta, double hbar = 1, double symmetryFactor = 1);
double molecularLogTunnelingFactor(const MolecularRingFluctuations& ring, const Eigen::VectorXd& saddleInternalEigenvalues, double saddleLogInertiaDeterminant, double actionRelativeToSaddleOverHbar, double beta, double hbar = 1);
NativeNewtonKrylovResult refineNativeNewtonStep(const std::function<Eigen::VectorXd(const Eigen::VectorXd&)>& jacobian, const std::function<Eigen::VectorXd(const Eigen::VectorXd&)>& preconditioner, const Eigen::VectorXd& rhs, const Eigen::VectorXd& initial, double relativeTolerance = .1, std::size_t maximumIterations = 24);
AffinePathBoundary physicalPathBoundary(const MassMetric& m, const Matrix& linear, const Vector& translation);
PotentialPathResult optimizePotentialPath(const Nodes& initial, const MassMetric& metric, const PathPotential& potential, const AffinePathBoundary& boundary, const PathConstraints& constraints, const PotentialPathOptions& options);
PotentialPathResult optimizePotentialPath(const std::vector<Eigen::VectorXd>& initial, const MassMetric& metric, const PathPotential& potential, const AffinePathBoundary& boundary, const PathConstraints& constraints, const PotentialPathOptions& options = {});
ReducedGaussianSegmentResult reduceGaussianSegmentsGLE(const std::vector<gaussian::Segment>& segments, const Eigen::MatrixXd& activeBasis, double unresolvedTolerance = 1e-12);
gaussian::TwistedTraceResult reducedGaussianSegmentGLETrace(const ReducedGaussianSegmentResult& reduced);
gaussian::TwistedRestrictedResult reducedGaussianSegmentGLERestrictedTrace(const ReducedGaussianSegmentResult& reduced, const Eigen::VectorXd& phaseNormal, double unresolvedTolerance = 1e-12);
ReducedGaussianGLEResult reducePeriodicGaussianGLE(const std::vector<Eigen::MatrixXd>& activeHessians, const Eigen::MatrixXd& coupling, const Eigen::MatrixXd& bathCurvature, double step, double unresolvedTolerance = 1e-12);
ReducedGaussianGLEResult reducePeriodicGaussianGLE(const std::vector<Eigen::MatrixXd>& activeHessians, const Eigen::MatrixXd& coupling, const Eigen::MatrixXd& bathCurvature, const Eigen::MatrixXd& activeKineticLink, const Eigen::MatrixXd& activeBathKineticLink, const Eigen::MatrixXd& bathKineticLink, double step, double unresolvedTolerance = 1e-12);
gaussian::TwistedTraceResult reducedGaussianGLETrace(const ReducedGaussianGLEResult& reduced, double duration, double unresolvedTolerance = 1e-12);
gaussian::TwistedRestrictedResult reducedGaussianGLERestrictedTrace(const ReducedGaussianGLEResult& reduced, const Eigen::VectorXd& phaseNormal, double duration, double unresolvedTolerance = 1e-12);
ReferenceForceGradientValue referenceForceGradient(const Eigen::VectorXd& residualGradient, const std::function<Eigen::VectorXd(const Eigen::VectorXd&)>& residualHessianAction, double step);
gpr::quantum::gaussian::Segment referenceForceGradientQuadratic(const Eigen::MatrixXd& nativeCurvature, const Eigen::MatrixXd& referenceCurvature, double step, bool corrected = true);
PotentialPathResult assessReflectedPotentialPath(const std::vector<Eigen::VectorXd>& halfMassPath, const MassMetric& metric, const std::vector<PotentialEvaluation>& physicalValues, const PathConstraints& gauge, const PotentialPathOptions& options = {});
PotentialPathResult optimizeReflectedPotentialPath(const std::vector<Eigen::VectorXd>& initial, const MassMetric& metric, const PathPotential& potential, const PathConstraints& gauge, const PotentialPathOptions& options = {}, ReflectedSearchCache* retainedSearch = nullptr);
template <class Constraints>
void validateReflectionEvenBand(const std::vector<Eigen::VectorXd>& path, const std::vector<double>& weights, const Constraints& constraints, double tolerance);
double reflectOutgoingBand(std::vector<Eigen::VectorXd>& path);
double projectReflectionEvenBand(std::vector<Eigen::VectorXd>& path);
double phasePlaneJacobian(const Eigen::VectorXd& unitNormal, const Eigen::VectorXd& normalDerivative, double targetDerivative, const Eigen::VectorXd& point);
double logImFSaddleFamilyRate(double referenceAction, const gaussian::TwistedTraceResult& reference, const std::vector<SaddleFamilyPoint>& family, double hbar, double symmetryFactor = 1);
template <class Evaluate>
SphereEnergyProjection projectSphereEnergy(const Eigen::VectorXd& center, const Eigen::VectorXd& point, const PotentialEvaluation& value, double energy, double tolerance, const Evaluate& evaluate, std::size_t maximumIterations = 8, std::size_t maximumBacktracks = 12);
double surrogatePathResidualMerit(const PotentialPathResult& result);
SurrogatePathTrustDecision assessSurrogatePathTrust(double nativeCurrentMerit, double nativeTrialMerit, double modelCurrentMerit, double modelTrialMerit, double radius, double maximumRadius, bool boundary, bool feasible);
SurrogatePathTrustDecision assessSurrogatePathTrust(const PotentialPathResult& nativeCurrent, const PotentialPathResult& nativeTrial, const PotentialPathResult& modelCurrent, const PotentialPathResult& modelTrial, double radius, double maximumRadius, bool boundary, bool feasible);
JacobiPathEvaluation jacobiArcToTurningContour(const std::vector<Eigen::VectorXd>& path, const std::vector<PotentialEvaluation>& native, double energy, Eigen::VectorXd* turningPoint = nullptr);
ThermalJacobiPeriod matchThermalJacobiPeriod(const Eigen::MatrixXd& well, const std::vector<Eigen::VectorXd>& path, const std::vector<PotentialEvaluation>& native, double thermalPeriod, double hbar);
TwistedConstraintStep solveTwistedConstraints(const std::vector<Eigen::MatrixXd>& diagonal, const std::vector<Eigen::VectorXd>& gradient, const std::vector<Eigen::MatrixXd>& normals, double coupling, const Eigen::MatrixXd& twist, const Eigen::VectorXd& correction);
TwistedConstraintStep solveTwistedConstraints(const std::vector<Eigen::MatrixXd>& diagonal, const std::vector<Eigen::VectorXd>& gradient, const std::vector<Eigen::MatrixXd>& normals, const Eigen::MatrixXd& coupling, const Eigen::MatrixXd& twist, const Eigen::VectorXd& correction);
ZeroEnergyGeodesicEvaluation evaluateZeroEnergyGeodesic(const M& omega, double radius, const std::vector<V>& path, const std::vector<PotentialEvaluation>& native, double stiffness, const std::vector<M>& hessians);
ZeroEnergyGeodesicEvaluation evaluateZeroEnergyGeodesic(const M& omega, double radius, const std::vector<V>& path, const std::vector<PotentialEvaluation>& native, double stiffness, const std::vector<M>& hessians, const std::vector<double>& meshWeights);
std::vector<V> solveZeroEnergyGeodesicStep(const ZeroEnergyGeodesicEvaluation& state);
ZeroEnergyGeodesicResult optimizeZeroEnergyGeodesic(const M& omega, double radius, const std::vector<V>& initial, const ZeroEnergyGeodesicPotential& potential, const ZeroEnergyGeodesicOptions& options, const std::function<void(const ZeroEnergyGeodesicResult&)>& retain);
std::vector<Eigen::VectorXd> regridGeodesicPath(const std::vector<Eigen::VectorXd>& path, const std::vector<double>& weights = {});
ZeroEnergyGeodesicEvaluation evaluateZeroEnergyGeodesic(const Eigen::MatrixXd& positiveWellRoot, double radius, const std::vector<Eigen::VectorXd>& path, const std::vector<PotentialEvaluation>& native, double meshStiffness = 1., const std::vector<Eigen::MatrixXd>& searchHessians = {});
ZeroEnergyGeodesicEvaluation evaluateZeroEnergyGeodesic(const Eigen::MatrixXd& positiveWellRoot, double radius, const std::vector<Eigen::VectorXd>& path, const std::vector<PotentialEvaluation>& native, double meshStiffness, const std::vector<Eigen::MatrixXd>& searchHessians, const std::vector<double>& meshWeights);
ZeroEnergyGeodesicResult optimizeZeroEnergyGeodesic(const Eigen::MatrixXd& positiveWellRoot, double radius, const std::vector<Eigen::VectorXd>& initial, const ZeroEnergyGeodesicPotential& potential, const ZeroEnergyGeodesicOptions& options = {}, const std::function<void(const ZeroEnergyGeodesicResult&)>& retain = {});
} // namespace quantum
Detailed Documentation¶
Models for quantum-path (instanton) searches: arc and tail actions, amplitude continuation.
Warning
Experimental instanton and quantum-path work in progress. These interfaces may change.
Global Functions¶
AmplitudeContinuationResult continuePotentialPathAmplitude(const std::vector<Eigen::VectorXd>& initial, const MassMetric& metric, const PathPotential& potential, const AffinePathBoundary& boundary, const PathConstraints& constraints, const AmplitudeContinuationOptions& options = {})
Follow conditional stationary paths on positive amplitude planes. All other constraint coordinates remain fixed. The selected amplitude column is Euclidean-unit in the full mass-weighted nodal space, as required by optimizePotentialPath. The initial target supplies its coordinate scale.
The outer root uses lambda(a)/a versus a^2. For a quartic reduced action this relation is linear. Safeguarded secants retain an ascending sign bracket away from zero; full potential callback gradients determine success. Conditional stationarity alone cannot qualify the returned solution. Neither fluctuation inertia nor a physical rate is inferred here.
AmplitudeContinuationResult continuePotentialPathAmplitudeInPhasePlane(const std::vector<Eigen::VectorXd>& initial, const MassMetric& metric, const PathPotential& potential, const AffinePathBoundary& boundary, const PathConstraints& constraints, Eigen::Index phaseColumn, const AmplitudeContinuationOptions& options = {})
Find an amplitude-stationary member of a specified conditional phase family. Only the supplied phase normal may retain a force coefficient. All remaining mass-coordinate forces must meet path.forceTolerance. The returned converged flag still means full stationarity; phasePlaneStationarityQualified records the separate family condition. The caller supplies phase coverage and its coarea Jacobian when integrating this family into a rate.
Eigen::MatrixXd boundedStationaryBathReference(const Eigen::MatrixXd& saddleCurvature, const Eigen::MatrixXd& reactionDirections)
Largest PSD bath bounded by the positive saddle curvature and annihilating reactionDirections. The negative saddle eigenspace stays outside the bath. Columns must be independent; a reaction span may contain positive directions.
void evaluateCentralHessianColumns(const std::vector<Eigen::VectorXd>& centers, const std::vector<Eigen::Index>& columns, double step, const PathPotential& potential, const std::function<void(const CentralHessianColumnBatch&)>& retain)
Ordered physical-coordinate Hessian columns at several geometries. Each positive/negative batch contains exactly the supplied centers, without an extra affine endpoint. Columns divide by the actual representable coordinate separation. The callback receives each complete column before another is evaluated, allowing persistent native-force evidence. Units follow the potential and coordinate inputs; no mass weighting, symmetrization, stationarity or index qualification is applied.
double logConstraintFamilyJacobian(const Eigen::MatrixXd& normals, const std::vector<Eigen::MatrixXd>& normalDerivatives, const Eigen::MatrixXd& targetDerivatives, const Eigen::VectorXd& point)
Log coarea for N(theta)^T q=c(theta), with jointly orthonormal columns. normalDerivatives[b] is partial_b N; targetDerivatives(a,b) is partial_b c_a. Singular charts must be excluded from quadrature rather than assigned a finite Gaussian density. Parameter units are handled by column scaling.
double logImFConstrainedFamilyRate(double referenceAction, const gaussian::TwistedTraceResult& reference, const std::vector<ConstrainedFamilyPoint>& family, Eigen::Index retainedCoordinates, double hbar, double symmetryFactor = 1)
ImF integral retaining k soft coordinates explicitly. The restricted physical Gaussian has codimension k and exactly one negative direction. Its determinant retains all original kinetic link factors. Weights cover the supplied k-dimensional parameter domain; the coarea and normalization (2*pi*hbar)^(-k/2) replace the retained Gaussian integrations. Conditional stationarity, native curvatures and tail coverage are the caller’s responsibility. No amplitude saddle approximation is applied.
CyclicSoftMode cyclicSoftMode(const gaussian::Segment& link, std::size_t nodes)
Fundamental Fourier mode of a uniform cyclic link action, in mass coordinates. Curvatures divide the nodal action Hessian by the link duration. The centroid has exactly one negative direction, the second harmonic is positive, and the lowest fundamental mode is simple. At least five nodes avoid quartic aliasing.
CyclicQuarticReduction cyclicQuarticReduction(const gaussian::Segment& link, std::size_t nodes, const Eigen::VectorXd& cubicVV, double quarticVVVV)
Eliminate the centroid and second harmonic through fourth order in amplitude. cubicVV is D^3 V[.,v,v] and quarticVVVV is D^4 V[v,v,v,v], where v is the direction returned by cyclicSoftMode for this link. The physical residual potential supplies these derivatives; a quadratic reference contributes none. S(a)-S(0)=duration*(A*a^2+B*a^4)+O(a^5). A positive B defines a supercritical branch when A<0. This local expansion supplies a seed, not a qualified orbit or a rate. Native forces determine its accuracy and convergence.
gaussian::Segment frequencyFittedKinetic(const Eigen::MatrixXd& curvature, double duration)
Positive kinetic coupling fitted to one fixed physical curvature. The returned link has A=L and no physical potential term. Adding h*V/2 at each endpoint preserves every constant stationary point. Its untwisted harmonic trace is exact when the physical Hessian equals the fitting curvature. Negative modes require h*sqrt(-lambda)<pi. Anharmonic paths and reference ratios still require discretization comparisons.
std::vector<Eigen::VectorXd> retractGeodesicMesh(const std::vector<Eigen::VectorXd>& path, const std::vector<double>& weights, double tolerance, const Eigen::VectorXd& target = {})
Retract a path onto prescribed link-length constraints by moving only interior nodes along their mesh tangents. Endpoint geometries are fixed. A target (1-s)*g(q) preserves the first-order Newton step from an infeasible path; target zero gives the constrained mesh manifold. This operation evaluates no potential and carries no cached values.
Eigen::MatrixXd stationaryBathReference(const Eigen::MatrixXd& saddleCurvature, const Eigen::MatrixXd& reactionDirections)
Complete a saddle curvature into a stable bath that annihilates reactionDirections. Columns use mass coordinates and must span a negative-definite restriction. The complementary Schur curvature must be positive semidefinite. Neither a fitted physical bath nor a stationary-point index is inferred from this reference.
PotentialPathResult optimizePotentialPath(const std::vector<Eigen::VectorXd>& initial, const MassMetric& metric, const PathPotential& potential, const AffinePathBoundary& boundary, const PathConstraints& constraints, const PotentialPathOptions& options = {})
Uniform cyclic action with trapezoidal physical residual endpoint values. SymmetricResidual integrates a PSD reference kernel; FrequencyFittedKinetic fits the untwisted harmonic trace while preserving stationary wells. Cell and periodic-image semantics belong entirely to the potential callback. Constraint columns are jointly orthonormal over all nodes; empty means none. Returned force residuals are mass-coordinate action gradients divided by dt. No phase volume, determinant or physical rate is inferred from convergence.
double phasePlaneJacobian(const Eigen::VectorXd& unitNormal, const Eigen::VectorXd& normalDerivative, double targetDerivative, const Eigen::VectorXd& point)
Coarea Jacobian for a moving unit plane n(theta)^T q=c(theta). The returned value is abs(c’ - dot(n’, q)), not the speed along a curved conditional family. A zero value is a singular phase chart.
double logImFSaddleFamilyRate(double referenceAction, const gaussian::TwistedTraceResult& reference, const std::vector<SaddleFamilyPoint>& family, double hbar, double symmetryFactor = 1)
Logarithmic ImF rate of a supplied closed-path saddle family. Weights integrate the caller’s phase coordinate over its explicitly covered domain. Each transverse Gaussian must have exactly one resolved negative direction and one removed phase coordinate. The matched reactant must be positive, with the same duration, energy zero, coordinate units and measure. The negative-contour half cancels the 2/duration ImF rate factor.
A conditional family, its coverage, Jacobians and physical Hessians are caller-supplied evidence. Stationarity, phase volume and degeneracies are not inferred. The result uses inverse units of the supplied duration.