Skip to main content

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


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.0b2.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.0b2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (736.5 kB view details)

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

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

Hashes for feyngraph-0.1.0b2.tar.gz
Algorithm Hash digest
SHA256 d68de208d4221f12b8d54e027f2e0f9ef1fe3e9f3cd5423d86e21f36c4ba8720
MD5 ed6ed4481bc96db8eb9738709f11c2c3
BLAKE2b-256 f2377127cf2b4b57de5336f4b9d3fbaa83067791c35c23a7591c4c4aff46471d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for feyngraph-0.1.0b2-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cd247bc8b538cc774e72a1cb0f0577839018b791f7c3c07ef674a7024eccd58a
MD5 3f10d6b0b5195ab0bd5b4baf461b06ab
BLAKE2b-256 61c97ba5f8bcf9c7c36a88fc467950ef57cfa27d0fcccab6b77071e917961003

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