QUANTArhei: Open Quantum System Theory for Molecular Systems
Quantarhei is a molecular open quantum systems simulator written in Python. Its name is derived from the aphorism "Panta rhei" of Heraclitus of Ephesus — "Everything flows" — fitting for a package centred on quantum dynamics.
It provides tools for building molecular aggregates, computing linear and non-linear spectra, and simulating excitation energy transfer and open quantum system dynamics.
Installation
From PyPI (recommended):
pip install quantarhei
With uv:
uv add quantarhei
From source:
git clone https://github.com/tmancal74/quantarhei.git
cd quantarhei
pip install -e .
Requirements: Python 3.10 or later, NumPy, SciPy.
Quick start
import quantarhei as qr
# Define two molecules with transition energies (in 1/cm)
with qr.energy_units("1/cm"):
mol1 = qr.Molecule([0.0, 12000.0])
mol2 = qr.Molecule([0.0, 12200.0])
mol1.set_dipole(0, 1, [1.0, 0.0, 0.0])
mol2.set_dipole(0, 1, [0.0, 1.0, 0.0])
# Build a dimer aggregate with resonance coupling
agg = qr.Aggregate([mol1, mol2])
with qr.energy_units("1/cm"):
agg.set_resonance_coupling(0, 1, 100.0)
agg.build()
# Calculate absorption spectrum
with qr.energy_units("1/cm"):
time = qr.TimeAxis(0.0, 1000, 1.0)
calc = qr.AbsSpectrumCalculator(time, system=agg)
spec = calc.calculate()
spec.plot()
More examples are in the docs/examples/ directory and on Read the Docs.
Features
- Molecular aggregates — multi-molecule systems with arbitrary couplings, vibrational modes (Huang-Rhys factors, intra-molecular modes), vibronic coupling, and system-bath interactions
- Linear spectroscopy — absorption, circular dichroism, linear dichroism, and fluorescence spectra for monomers and aggregates
- 2D electronic spectroscopy — non-linear response with Liouville pathway analysis, Feynman diagrams, and pump-probe spectra
- Energy transfer theories — Redfield, modified Redfield, and Förster rate theories; time-dependent and non-equilibrium variants; mixed Redfield-Förster
- Open quantum system dynamics — Lindblad and Redfield master equations, density matrix propagation, hierarchical equations of motion (HEOM)
- Bath modeling — correlation functions, spectral densities, lineshape functions; pre-built models for photosynthetic pigments
- Laboratory frame — realistic optical geometries and pulse field configurations via
LabSetup - Extensible — pure Python reference implementation; performance-critical routines can be replaced with optimised C/Fortran extensions
Interactive notebooks
Try Quantarhei in your browser — no installation needed:
Documentation
Full API reference and tutorials: quantarhei.readthedocs.io
Changelog
See CHANGELOG.md for the full version history.
Acknowledgements
The development of Quantarhei has been supported by:
- Neuron Fund for Support of Science — Impuls grant in physics 2014 (2015–2017)
- Czech Science Foundation (GACR) — grants 14-25752S (2014–2016), 17-22160S (2017–2019), 18-18022S (2018–2020)
Metadata
Release files for quantarhei 0.0.70
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quantarhei-0.0.70.tar.gz | 1.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quantarhei-0.0.70-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.4 MB
Release files / quantarhei-0.0.70.tar.gz
| Download URL | quantarhei-0.0.70.tar.gz |
|---|---|
| Size | 1.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
835322ac37b672b0ff2e1b0a54d72901113f760ee76e4b82b459cb5c59db7eb7
|
|
BLAKE2b-256 checksum How to use checksums |
38ae76ad91d5eb61ded3c72459a0c0005c2a506f7da211e01c99720c1330a82a
|
| 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 23, 2026.
Transparency logRelease files / quantarhei-0.0.70-py3-none-any.whl
| Download URL | quantarhei-0.0.70-py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
716164be26723c6e54ef76bf30162e1d48190874ce1eeddf13a435bf5f981ae9
|
|
BLAKE2b-256 checksum How to use checksums |
71280ae41fe9f67e7a5a99e6ee5aed7e894ddcd773dd0ff5fc132ecf4c9a7baa
|
| 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 23, 2026.
Transparency log