Skip to main content

clerq

Build Status Documentation PyPI

clerq is a Python package for solving the coupled Maxwell-Bloch equations describing the nonlinear propagation of near-resonant light through thermal quantised systems such as atomic vapours.

Renamed from maxwellbloch. This package was previously published as maxwellbloch. Install clerq and change import maxwellbloch to import clerq. The old name will keep working through a transitional release that re-exports clerq with a DeprecationWarning. The API is otherwise unchanged.

Above is an example solution for the propagation of a 4π pulse through a dense atomic vapour. The pulse immediately breaks up on entering the medium and the resultant pulses form two optical solitons each with a pulse area of 2π.

Documentation

Docs for the project are at clerq.org.

Install

The recommended way to install is via uv:

uv pip install clerq

Or using pip:

pip install clerq

If you prefer Conda, you can create and activate an environment with the required dependencies with

conda create --name mb -c conda-forge python=3.11 qutip
conda activate mb
pip install clerq

More detailed installation instructions can be found in the docs along with many example problems.

Attribution

If you use clerq for research, please cite the original package, which was published as MaxwellBloch:

@misc{ogden2020maxwellbloch,
  author = {Ogden, Thomas P.},
  title = {{MaxwellBloch}: a Python package for solving the coupled 
    Maxwell-Bloch equations describing the nonlinear propagation of 
    near-resonant light through thermal quantised systems such as atomic 
    vapors.},
  year = {2020},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/tpogden/clerq}}
}

A citation for clerq itself, with its own DOI, will be added with the first release under the new name.

Changelog

See CHANGELOG.md.

License

MIT License. See LICENSE.txt.

Metadata

Release files for clerq 0.13.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clerq 0.13.0
File Size Uploaded
clerq-0.13.0.tar.gz 64.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for clerq 0.13.0
File Interpreter ABI Platform
clerq-0.13.0-py3-none-any.whl Python 3 none any Details

Total release size: 117.4 kB

Release files / clerq-0.13.0.tar.gz

Download URL clerq-0.13.0.tar.gz
Size 64.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c6f7861bbb27d9e4bddacf97530d1da658fb20f5b5c77c6c49567c9b8174f58d
BLAKE2b-256 checksum
How to use checksums
2d14c786ccbfa4b7aadd00cceb86de6315f0f4113726a43ae186e9d8c5211e69
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 Oct 9, 2026.

Transparency log

Release files / clerq-0.13.0-py3-none-any.whl

Download URL clerq-0.13.0-py3-none-any.whl
Size 52.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c1bdd4f8d380c50f5ac18ffeda089fa6f3a07490e9c944a9fdb7dc1c9546228c
BLAKE2b-256 checksum
How to use checksums
ce7f4a8bdd25531d5df445a2e253a622d9d26ac86a495cb53333c720ac509a9d
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 Oct 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.13.0 This release

2 release files

0.0.0

2 release files

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