Skip to main content

q2m3: A Hybrid Quantum-Classical QM/MM Simulation Framework

English | 简体中文

q2m3 logo

Python 3.11+ License: MIT Documentation Docs codecov DOI PennyLane Catalyst PySCF

q2m3 is a research framework for hybrid quantum-classical QM/MM (quantum mechanics / molecular mechanics). It connects PySCF molecular models to PennyLane quantum algorithms and resource estimates.

The project is an alpha proof of concept. Its small-system checks do not establish production chemistry accuracy. Read each example's assumptions before interpreting its results.

Install

q2m3 requires Python 3.11+. To use the library, install it in a virtual environment:

python -m venv .venv
source .venv/bin/activate
python -m pip install q2m3

To run examples, use a source checkout with uv:

git clone https://github.com/yjmaxpayne/q2m3.git
cd q2m3
uv sync

Each example guide lists its optional dependencies and execution commands.

Examples and documentation

Start with the example guide. Choose a chapter for runnable examples, inputs, outputs, and scientific limits.

Topic Guide
Quantum phase estimation (QPE) QPE examples
Sample-based quantum diagonalization (SQD) SQD examples
QM/MM and solvation QM/MM examples
Fragment interactions Fragment examples
Quantum resource estimates Resource examples
Compilation and runtime Performance examples

See the documentation site for tutorials, model assumptions, and API references.

Development, citation, and license

See the development guide for tests, code checks, and documentation builds. Follow the contribution notes. Do not commit generated outputs.

For research use, cite the release that produced your results. CITATION.cff contains the citation metadata. q2m3 uses the MIT License.

Metadata

Release files for q2m3 0.4.1

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

Source distribution (sdist)

Source distribution for q2m3 0.4.1
File Size Uploaded Provenance Actions
q2m3-0.4.1.tar.gz 1.7 MB With provenance Details for q2m3-0.4.1.tar.gz

Built distribution (wheel)

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

Total release size: 2.0 MB

Release files / q2m3-0.4.1.tar.gz

Download URL q2m3-0.4.1.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
0b880f170ed5a3405914032d8b1a7668e307fd7b9f28b57a8ef272beabc3c69a
BLAKE2b-256 checksum
How to use checksums
cfe0099c54f8f4bf652a88dbb37682c6ac805b2057df677b4d64007d322cf6b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 24, 2026.

Transparency log

Release files / q2m3-0.4.1-py3-none-any.whl

Download URL q2m3-0.4.1-py3-none-any.whl
Size 232.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5234c1ba73491caae0a747d7bec69b65881e2ccc6db3edcf7b469cb7bdd50f6a
BLAKE2b-256 checksum
How to use checksums
1ebdde6089000fefb71d361881944a21f849aeab23f66c9ef5f441a3b804a837
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 24, 2026.

Transparency log

Security for q2m3 0.4.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for q2m3-0.4.1.tar.gz

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 Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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