Skip to main content

A modern Feynman diagram generator

Project description

FeynGraph - A Modern Feynman Diagram Generator

[!WARNING] FeynGraph is currently still in the testing phase. The core algorithms are validated to operate as expected, but some small bugs may still appear. If this is the case, please file an issue.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

feyngraph-0.1.0b3.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

feyngraph-0.1.0b3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (740.5 kB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ x86-64

File details

Details for the file feyngraph-0.1.0b3.tar.gz.

File metadata

  • Download URL: feyngraph-0.1.0b3.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.3

File hashes

Hashes for feyngraph-0.1.0b3.tar.gz
Algorithm Hash digest
SHA256 71c7512f11823e2b901df3c94eba99b326f2b983def3b079687184c0560bdef5
MD5 5cae0658b4bb1845c57570617aa9bd27
BLAKE2b-256 0101ecea66d817b6ad4a7e27f847f2b66099ad2fd0ef9e62ab368f57d1e91c9c

See more details on using hashes here.

File details

Details for the file feyngraph-0.1.0b3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for feyngraph-0.1.0b3-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3e8d4b678614f01ab1403be226e4e0c8350337980306f92eaa6e408aaf0f725f
MD5 91eb3cdecfb8171e7bd648cc172d79fa
BLAKE2b-256 3a9d3e124ad9856ad3e1f0a87ecf71025e55d87153a5ce05ea3c0b2e5c4c6285

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page