A modern Feynman diagram generator
Project description
FeynGraph - A Modern Feynman Diagram Generator
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.
A user guide is available here.
Installation
Python
The FeynGraph Python bindings are published to PyPI and can therefore easily installed with e.g. pip
pip install feyngraph
In addition to the library interface, there is also a more classical command line utility. This requires some extra dependencies, which can be installed with e.g.
pip install feyngraph[cli]
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
maturin build -r
The library can also immediately be installed by running
pip install .
Rust
To use FeynGraph in a Rust project, it can simply be added to the project with
cargo add feyngraph
or be manually added to Cargo.toml as
[dependencies]
feyngraph = "0.1"
Basic Example
The Feynman diagrams of a given process in the Standard Model in Feynman gauge without filtering can be generated by running:
import feyngraph as fg
diags = fg.generate_diagrams(["g", "g"], ["g", "g"], 2)
assert(len(diags) == 88366)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file feyngraph-0.1.0b2.tar.gz.
File metadata
- Download URL: feyngraph-0.1.0b2.tar.gz
- Upload date:
- Size: 1.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d68de208d4221f12b8d54e027f2e0f9ef1fe3e9f3cd5423d86e21f36c4ba8720
|
|
| MD5 |
ed6ed4481bc96db8eb9738709f11c2c3
|
|
| BLAKE2b-256 |
f2377127cf2b4b57de5336f4b9d3fbaa83067791c35c23a7591c4c4aff46471d
|
File details
Details for the file feyngraph-0.1.0b2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: feyngraph-0.1.0b2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 736.5 kB
- Tags: CPython 3.7+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.9.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd247bc8b538cc774e72a1cb0f0577839018b791f7c3c07ef674a7024eccd58a
|
|
| MD5 |
3f10d6b0b5195ab0bd5b4baf461b06ab
|
|
| BLAKE2b-256 |
61c97ba5f8bcf9c7c36a88fc467950ef57cfa27d0fcccab6b77071e917961003
|