Quantum Number Conservation Rules
QRules is a Python package for validating and generating particle reactions using quantum number conservation rules. The user only has to provide a certain set of boundary conditions (initial and final state, allowed interaction types, expected decay topologies, etc.). QRules will then span the space of allowed quantum numbers over all allowed decay topologies and particle instances that correspond with the sets of allowed quantum numbers it has found.
The resulting state transition objects are particularly useful for amplitude analysis / Partial Wave Analysis as they contain all information (such as expected masses, widths, and spin projections) that is needed to formulate an amplitude model.
Visit qrules.rtfd.io for more information!
For an overview of upcoming releases and planned functionality, see here.
Available features
- Input: Particle database
- Source of truth: PDG
- Predefined particle list file
- Option to overwrite and append with custom particle definitions
- State transition graph
- Feynman graph like description of the reactions
- Visualization of the decay topology
- Conservation rules
- Open-closed design
- Large set of predefined rules
- Spin/Angular momentum conservation
- Quark and Lepton flavor conservation (incl. isospin)
- Baryon number conservation
- EM-charge conservation
- Parity, C-Parity, G-Parity conservation
- Mass conservation
- Predefined sets of conservation rules representing Strong, EM, Weak interactions
Contribute
See CONTRIBUTING.md
Release files for qrules 0.10.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| qrules-0.10.11.tar.gz | 328.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qrules-0.10.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 412.5 kB
Release files / qrules-0.10.11.tar.gz
| Download URL | qrules-0.10.11.tar.gz |
|---|---|
| Size | 328.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39d9e1b3bdf602de90ff4f6f2e0cfff0903d28a74e8799e42dd68a0fbf5128a6
|
|
BLAKE2b-256 checksum How to use checksums |
d153e0c0eb99f3032459a757f455febf8d3665f4c4ac7cf4deff8a39cc71eb67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 2, 2026.
Transparency logRelease files / qrules-0.10.11-py3-none-any.whl
| Download URL | qrules-0.10.11-py3-none-any.whl |
|---|---|
| Size | 84.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e4797698c2552dd13cc38baff6e47ab90f3899dfa1655bc38b06548eb27f4d6d
|
|
BLAKE2b-256 checksum How to use checksums |
ef67f7e1198598e49706f31a66844ce1489500f34c5699b1c767891bfbed2923
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 2, 2026.
Transparency log