Skip to main content

Web frontend for building Feynman diagrams and exporting gammaloop-compatible .dot files

Project description

feynmangraph

PyPI Python License

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.

feynmangraph 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_grouping for fastest).
  • Forward-scattering cuts. Pair two externals via isCut from a single dropdown. Round-trips through .dot including Linnet's node [isCut="X"] shorthand.
  • UFO models. Upload a .tar.gz or .zip — particles and vertex rules light up immediately.
  • Export. Single diagram or whole gallery → gammaloop-format .dot with projector, half-port IDs, lmb_id chords, and isCut glue.

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


Download files

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

Source Distribution

feynmangraph-0.1.0.tar.gz (228.8 kB view details)

Uploaded Source

Built Distribution

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

feynmangraph-0.1.0-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

Details for the file feynmangraph-0.1.0.tar.gz.

File metadata

  • Download URL: feynmangraph-0.1.0.tar.gz
  • Upload date:
  • Size: 228.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for feynmangraph-0.1.0.tar.gz
Algorithm Hash digest
SHA256 00644008b8fe3ac01c0641eb7f82845833a5b85be5ff4b35a417e30aa3954a30
MD5 6cb89a5c65310bee395f70426b601d79
BLAKE2b-256 bc15cc963ea70c9025ee57e90f1f92e94e7a0d11d87990b1ab8b784457cd3993

See more details on using hashes here.

Provenance

The following attestation bundles were made for feynmangraph-0.1.0.tar.gz:

Publisher: publish.yml on ecavan/FeynmanGraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file feynmangraph-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: feynmangraph-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 31.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for feynmangraph-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e1e83f07ba9d11c96bb4b76da2c8858486a959ac9c8743d2a711a7b9146b54e
MD5 3ccf2ebf5ea55db96145abb256e2d0ba
BLAKE2b-256 f4343645be5a4ca5f68b67f941add7c9998cd2fc8031d6a76b9c2ccf69448992

See more details on using hashes here.

Provenance

The following attestation bundles were made for feynmangraph-0.1.0-py3-none-any.whl:

Publisher: publish.yml on ecavan/FeynmanGraph

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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