Web frontend for building Feynman diagrams and exporting gammaloop-compatible .dot files
Project description
feynmangraph
Web frontend for building Feynman diagrams. Hand-draw them on a canvas with live conservation/legality checks, or type a process like e+ e- → mu+ mu- and have gammaloop enumerate the diagrams for you. Forward-scattering cuts, UFO models, and round-trip .dot export included.
1-loop electron self-energy with forward-scattering glue between the incoming and outgoing legs.
Install
pip install feynmangraph
feynmangraph setup # builds gammaloop (~15 min, one-time, needs Rust)
feynmangraph serve # http://localhost:8000
The Canvas, Import, and Export tabs work without gammaloop; only the Generate tab needs it. Skip setup if you only want the editor.
What it does
- Canvas. Drag vertices, connect propagators, place externals. Charge, lepton number, baryon number, and color triality are checked live, and each vertex is matched against the UFO interaction list — you can't build something that isn't a real diagram.
- Generate. Pick a process spec; gammaloop enumerates the diagrams. Speed-up controls: restrict to a particle subset and pick the numerator-isomorphism grouping mode (
no_groupingfor fastest). - Forward-scattering cuts. Pair two externals via
isCutfrom a single dropdown. Round-trips through.dotincluding Linnet'snode [isCut="X"]shorthand. - UFO models. Upload a
.tar.gzor.zip— particles and vertex rules light up immediately. - Export. Single diagram or whole gallery → gammaloop-format
.dotwith projector, half-port IDs,lmb_idchords, andisCutglue.
Built on gammaloop (diagram enumeration + .dot dialect), FastAPI, React + reactflow.
Out of scope
This is the editor and the front door to gammaloop. Amplitude evaluation, cross-sections, decay widths — all gammaloop's job. See https://github.com/alphal00p/gammaloop.
License
MIT
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 feynmangraph-0.1.1.tar.gz.
File metadata
- Download URL: feynmangraph-0.1.1.tar.gz
- Upload date:
- Size: 232.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fc0e4e7b3d37cd98a735a8a62ba164ee9e59f269222c565832bc75baab62091
|
|
| MD5 |
6eb86e68f2cdc0b66bdb48b5959461e5
|
|
| BLAKE2b-256 |
8992b075635a15b4259124600f44b6f2d1b0ed44e65883a032e86cbaec5a2e4b
|
Provenance
The following attestation bundles were made for feynmangraph-0.1.1.tar.gz:
Publisher:
publish.yml on ecavan/FeynmanGraph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
feynmangraph-0.1.1.tar.gz -
Subject digest:
8fc0e4e7b3d37cd98a735a8a62ba164ee9e59f269222c565832bc75baab62091 - Sigstore transparency entry: 1631550280
- Sigstore integration time:
-
Permalink:
ecavan/FeynmanGraph@ff944776bf658421fa8709142381de8485112d1c -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ecavan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ff944776bf658421fa8709142381de8485112d1c -
Trigger Event:
release
-
Statement type:
File details
Details for the file feynmangraph-0.1.1-py3-none-any.whl.
File metadata
- Download URL: feynmangraph-0.1.1-py3-none-any.whl
- Upload date:
- Size: 33.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9eab1c25d9e11eb8af138ab81448de877d4ae528aa11cc1b37a125af155fc438
|
|
| MD5 |
d93be67a583bcd0d2a3d9d1f221e7e12
|
|
| BLAKE2b-256 |
97190e050ddd0b6e329f100a304a7b48d620ebe4e30b67e8f53ed7d65b520cc0
|
Provenance
The following attestation bundles were made for feynmangraph-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on ecavan/FeynmanGraph
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
feynmangraph-0.1.1-py3-none-any.whl -
Subject digest:
9eab1c25d9e11eb8af138ab81448de877d4ae528aa11cc1b37a125af155fc438 - Sigstore transparency entry: 1631550310
- Sigstore integration time:
-
Permalink:
ecavan/FeynmanGraph@ff944776bf658421fa8709142381de8485112d1c -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/ecavan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ff944776bf658421fa8709142381de8485112d1c -
Trigger Event:
release
-
Statement type: