Skip to main content

Quantum-enhanced Markov Chain Monte Carlo Simulator

Python 3.13+ Qiskit 2.2 PennyLane 0.44 License: MIT

This is a lightweight research package for Quantum-enhanced Markov Chain Monte Carlo (QeMCMC) sampling over discrete spin/bitstring configurations.

Link to GitHub repo: https://github.com/Stuartferguson00/QeMCMC

The implementation is inspired by the numerics in Layden et al's paper on QeMCMC and work on Adiabatic dressing of quantum enhanced Markov chains, building upon the foundations of the pafloxy/quMCMC repository.

Documentation

Documentation and examples can be found here.

Features

  • Arbitrary Energy Models: Define any classical Ising or QUBO-like model using a simple list of coupling tensors (example: 2D Ising h, J etc). A universal energy calculator handles arbitrary-order interactions
  • Hamiltonian Evolution (Quench & Adiabatic): Build the corresponding quantum Hamiltonian based on the given couplings and run Trotterised time evolution with PennyLane's lightning qubit simulator. Supports both sudden quench (QuenchProposal) and time-dependent adiabatic dressing (AdiabaticProposal) schedules
  • Coarse Graining: Optionally use local updates on chosen subgroups of spins to scale proposals
  • Constraining: Implementation of hard and soft constraints for a given model

Installation

Install the latest release from PyPI (requires Python 3.13+):

pip install qemcmc

From source

The example notebooks live in this repo, not the published package. To run them or to develop QeMCMC, clone the repo and install with uv:

cd QeMCMC
uv sync

uv sync creates a local environment .venv and installs the locked dependencies from pyproject.toml and uv.lock.

License

Distributed under the MIT License. See LICENSE for more information.

Authors

This project is maintained by Feroz Hassan & Stuart Ferguson.

For questions, suggestions, or collaboration, please feel free to contact the authors:

Acknowledgements


alt text

Metadata

Release files for qemcmc 0.6.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 qemcmc 0.6.0
File Size Uploaded Provenance Actions
qemcmc-0.6.0.tar.gz 1.9 MB With provenance Details for qemcmc-0.6.0.tar.gz

Built distribution (wheel)

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

Total release size: 2.0 MB

Release files / qemcmc-0.6.0.tar.gz

Download URL qemcmc-0.6.0.tar.gz
Size 1.9 MB
Tags Source
SHA-256 checksum
How to use checksums
d81542f8094652cbcf6efbf06e565d4d86bb62b7496a93582afac39cd903ad5b
BLAKE2b-256 checksum
How to use checksums
5d9605b71168bb6266f778a2ee1f2d8a6aafa5051728093cdb71eeae2d0740b6
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 Oct 28, 2026.

Transparency log

Release files / qemcmc-0.6.0-py3-none-any.whl

Download URL qemcmc-0.6.0-py3-none-any.whl
Size 43.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
912bb548dffae73837a2f4ba6b0ec21c0453ec08fb66e5663b33fd801f1b141c
BLAKE2b-256 checksum
How to use checksums
d5ba0a599fc4f77ebb8247789e297df938ef8895cf3da62a559abcb2c3c53974
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 Oct 28, 2026.

Transparency log

Security for qemcmc 0.6.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 qemcmc-0.6.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 Oct 28, 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