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.0b4.tar.gz (450.0 kB 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.0b4-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (797.4 kB view details)

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

File details

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

File metadata

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

File hashes

Hashes for feyngraph-0.1.0b4.tar.gz
Algorithm Hash digest
SHA256 61eb9e49a95164b37279ddc398c5c0f97d76d96146353af4cc29f5aeed062159
MD5 ac36f36580f4fe5d0053cc85f63750a7
BLAKE2b-256 503145d915297b0817e265d24c887356059385f4a47c2f966a7e61823dbd1d8b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for feyngraph-0.1.0b4-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f62646c049af87f9de52d906b01e317cd6627310081aeeb92ff6d8fbbace8b05
MD5 8f4bd98b39b411c8a7821f781c93b9c4
BLAKE2b-256 7f6b509e5e2c88bd9a476b157449a5551009e7ef0557193c22fcdd8a6cd778a0

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