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.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 q2m3 0.4.0
File Size Uploaded Provenance Actions
q2m3-0.4.0.tar.gz 1.7 MB With provenance Details for q2m3-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 2.0 MB

Release files / q2m3-0.4.0.tar.gz

Download URL q2m3-0.4.0.tar.gz
Size 1.7 MB
Tags Source
SHA-256 checksum
How to use checksums
e96c7b45ce7df7a60f44c9eb55240ff3f73eb95faac2f4deca7a227a07cdfbc5
BLAKE2b-256 checksum
How to use checksums
f885747060c6f21913d28cb2d651b56cf916e61899f73387ffa9562a97737252
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.0-py3-none-any.whl

Download URL q2m3-0.4.0-py3-none-any.whl
Size 232.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
556daf155969b4f7a341b4fdff340abeb08847d59d69d51b3d94c7cb54bf964f
BLAKE2b-256 checksum
How to use checksums
9321e9748040d7d591153a58b9d4e20b93856fef8ac49562bea8be03239f77b7
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.0

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.0.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