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)
- ghostscript
- latexmk
- (feynmp-auto/feynmf)
Installation
poerty install --with docs --with dev
poetry shell
Documentation
Similar Feynman diagram rendering project:
- https://github.com/ndeutschmann/qgraf-xml-drawer
- https://github.com/GkAntonius/feynman
- https://github.com/JP-Ellis/tikz-feynman
- https://pyfeyn.hepforge.org/
- https://feynml.hepforge.org/
- http://www.feyndiagram.com/
Several of these are integrated into pyfeyn2.
Troubleshooting
Development
package/python structure:
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
File details
Details for the file pyfeyn2-2.2.4.tar.gz
.
File metadata
- Download URL: pyfeyn2-2.2.4.tar.gz
- Upload date:
- Size: 47.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4258cb680d20b9c894ba9d89a74afcc016378e5f74b5ac6960b87cc7dd1f6ccc |
|
MD5 | 5f4cfa6d1f3b1f2f4354732e9ccce98e |
|
BLAKE2b-256 | bade18b060ae1a683d408be98ccd2127eb0563b10386a07152bbfad5e701dc46 |
Provenance
File details
Details for the file pyfeyn2-2.2.4-py3-none-any.whl
.
File metadata
- Download URL: pyfeyn2-2.2.4-py3-none-any.whl
- Upload date:
- Size: 58.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c9316764c7247ae3a6f820f23d65f48624aef50228300e95b26ab5c213314aa7 |
|
MD5 | 064d741cf2b1027e7407ecfa024dcc9c |
|
BLAKE2b-256 | d5cd19d6764d05c2ccafe8571d83393b289929e504b934d671344dd0f6f42fd8 |