Skip to main content

Build Status Documentation Status Coverage Version Python Binder

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:

Notebook Topic Launch
Molecule & Hamiltonian Creating molecules, energy levels, vibrational modes Binder
Correlation Functions Bath correlation functions C(t) and spectral density J(ω) Binder
Absorption Spectrum Full workflow: molecule → aggregate → bath → absorption Binder
Redfield Relaxation Density matrix propagation and population dynamics Binder
HEOM Dynamics Strong-coupling dynamics beyond Redfield Binder

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:

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)

Source distribution for quantarhei 0.0.70
File Size Uploaded
quantarhei-0.0.70.tar.gz 1.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for quantarhei 0.0.70
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

0.0.70 This release

2 release files

0.0.68

2 release files

0.0.65

1 release file

0.0.64

1 release file

0.0.63

1 release file

0.0.62

1 release file

0.0.60

1 release file

0.0.59

1 release file

0.0.58

1 release file

0.0.57

1 release file

0.0.56

1 release file

0.0.55

1 release file

0.0.54

1 release file

0.0.53

1 release file

0.0.52

1 release file

0.0.51

1 release file

0.0.50

1 release file

0.0.49

1 release file

0.0.48

1 release file

0.0.47

1 release file

0.0.46

1 release file

0.0.45

1 release file

0.0.44

1 release file

0.0.43

1 release file

0.0.42

1 release file

0.0.41

1 release file

0.0.40

1 release file

0.0.39

1 release file

0.0.38

1 release file

0.0.37

1 release file

0.0.36

1 release file

0.0.35

1 release file

0.0.34

1 release file

0.0.33

1 release file

0.0.32

1 release file

0.0.31

1 release file

0.0.30

1 release file

0.0.29

1 release file

0.0.28

1 release file

0.0.27

1 release file

0.0.26

1 release file

0.0.25

1 release file

0.0.23

1 release file

0.0.22

1 release file

0.0.21

1 release file

0.0.20

1 release file

0.0.19

1 release file

0.0.18

1 release file

0.0.17

1 release file

0.0.16

1 release file

0.0.15

1 release file

0.0.14

1 release file

0.0.13

1 release file

0.0.12

2 release files

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page