FeynGraph¶
FeynGraph is a modern Feynman diagram generation toolkit aiming to be as versatile as possible while remaining pleasant to use. The library itself is written in Rust, additional language bindings are available for Python and Wolfram Mathematica.
Installation¶
The FeynGraph Python bindings are published to PyPI and can therefore easily installed with e.g. pip
Building From Source¶
The FeynGraph Python library can also easily be built from source, which requires a Rust toolchain and maturin
. Then, in the cloned repository, a Python wheel can be compiled by running
To use FeynGraph in a Rust project, it can simply be added to the project with
or be manually added toCargo.toml
as
FeynGraph includes experimental Wolfram Mathematica bindings which use Mathematica's ExternalEvaluate
system to call the FeynGraph Python library. To use the interface, make sure to configure a Python environment in which FeynGraph is installed as described here. Then, running