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
- (graphviz)
- (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/
- https://web.physik.rwth-aachen.de/user/harlander/software/feyngame/
- https://jaxodraw.sourceforge.io/
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.4.2.tar.gz
.
File metadata
- Download URL: pyfeyn2-2.4.2.tar.gz
- Upload date:
- Size: 56.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 317bc89d7f65c9d86f7d36333c852964888bcb77c9d503be4e9c1347ad54bd20 |
|
MD5 | 993ec266cb4dbabe5a081cf2e245b029 |
|
BLAKE2b-256 | 018bbf79c3aeb601ed934911573cef37b888c9ef011aef1469d7ffc89394ccdf |
File details
Details for the file pyfeyn2-2.4.2-py3-none-any.whl
.
File metadata
- Download URL: pyfeyn2-2.4.2-py3-none-any.whl
- Upload date:
- Size: 68.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc2633ce8cf3d172a84ab4c08167d56aaef26d70d100e3e3b895d8b236d90e73 |
|
MD5 | 1b9d47dce7abb8b01b3131a4b2b3cb92 |
|
BLAKE2b-256 | a083da5a083299295cde1afa03818a80f1cd5b51adcc784276d727d9471e51f1 |