Skip to main content

Crate momtrop

Crate momtrop 

Source
Expand description

momtrop is a flexible Rust library for tropical Feynman sampling of loop integrals in momentum space (https://arxiv.org/abs/2504.09613). It allows users to define graphs with arbitrary edge weights, dimensions, and external kinematics, and supports custom floating-point types via the MomtropFloat trait.

The library only takes care of sample generation, and defers the evaluation of the integrand to the user.

Modules§

float
gamma
matrix
vector

Structs§

Edge
Edge struct from which a graph can be specified.
Graph
Main graph struct from which a sampler can be build. This graph should be stripped of tree-like and external edges. Vertices which would have external edges attached to them must be added to the externals field.
Metadata
Optional metadata for advanced users, see \citation for the definition of the fields in this struct.
SampleGenerator
Sampler struct from which sample points can be generated.
TropicalSampleResult
Return type of the sample function
TropicalSamplingSettings
Struct containing all runtime settings.

Constants§

MAX_EDGES
Maximum number of edges supported by momtrop.
MAX_VERTICES
Maximum number of vertices supported by momtrop.

Functions§

assert_approx_eq