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.
Live demo: https://huggingface.co/spaces/ecavan/feynmangraph
1-loop electron self-energy with forward-scattering glue between the incoming and outgoing legs.
Install
pip install feynmangraph
feynmangraph setup # builds gammaloop
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.
License
MIT
Metadata
Release files for feynmangraph 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| feynmangraph-0.1.10-py3-none-any.whl | Python 3 | none | any | Details |
Release files / feynmangraph-0.1.10-py3-none-any.whl
| Download URL | feynmangraph-0.1.10-py3-none-any.whl |
|---|---|
| Size | 8.5 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75c9652c1449808fe15255d2f70c62c19588c4a60c16cc2d0a54625d594746d8
|
|
BLAKE2b-256 checksum How to use checksums |
70a0f0bf4d8a2725f310e4148416be7ae1b765c16e86f518b669a8c3218eab93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 28, 2026.
Transparency log