Skip to main content

PyFeyn is a package which makes drawing Feynman diagrams simple and programmatic. Feynman diagrams are important constructs in perturbative field theory, so being able to draw them in a programmatic fashion is important if attempting to enumerate a large number of diagram configurations is important. The output quality of PyFeyn diagrams (into PDF or EPS formats) is very high, and special effects can be obtained by using constructs from PyX, which PyFeyn is based around

Project description

PyFeyn2

Forked from https://pyfeyn.hepforge.org/

PyFeyn is a Python-language based system for drawing Feynman diagrams. It was inspired by the C++ FeynDiagram system, and aims to provide the same functionality and quality of output as that, with the added benefits of a modern interpreted language, an improved interface and output direct to both EPS and PDF. Behind the scenes, PyFeyn uses the excellent PyX system - you can use PyX constructs in PyFeyn diagrams if you want, too.

Dependencies

  • libmagickwand-dev (to display pdfs in a jupyter-notebook, might require a policy change of the imagemagick config for PDFs, see Troubleshooting)
  • latexmk
  • (feynmp-auto/feynmf)

Installation

poerty install --with docs --with dev
poetry shell

Documentation

Troubleshooting

Development

package/python structure:

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

pyfeyn2-2.0.3.3.tar.gz (38.4 kB view details)

Uploaded Source

Built Distribution

pyfeyn2-2.0.3.3-py3-none-any.whl (44.6 kB view details)

Uploaded Python 3

File details

Details for the file pyfeyn2-2.0.3.3.tar.gz.

File metadata

  • Download URL: pyfeyn2-2.0.3.3.tar.gz
  • Upload date:
  • Size: 38.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for pyfeyn2-2.0.3.3.tar.gz
Algorithm Hash digest
SHA256 e811015312dd9df985de92e00f0d8a7b1b80506f36415547bcf62cda2f111f85
MD5 fa3c8ae4f25816b887e2587f15590d6b
BLAKE2b-256 39aa13d5c5e40cbfe9b179d8014453e14018abab242e95266b218a306f04bbba

See more details on using hashes here.

Provenance

File details

Details for the file pyfeyn2-2.0.3.3-py3-none-any.whl.

File metadata

  • Download URL: pyfeyn2-2.0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 44.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.0

File hashes

Hashes for pyfeyn2-2.0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c9d7502013450aefb39023ea44419a99741034f32745cd08e1d4d1f9459e8349
MD5 327699bb3d6638f48dc19700201262bb
BLAKE2b-256 7a9985c90832af451bbf72d60706d3f1ca76178d3b732fd41d8d1a7618e1c983

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page