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 builds 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: Build the corresponding quantum Hamiltonian based on the given couplings and run Trotterised time evolution with PennyLane's lightning qubit simulator
  • 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

Release files for qemcmc 0.4.2

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.4.2
File Size Uploaded
qemcmc-0.4.2.tar.gz 7.5 MB Details

Built distribution (wheel)

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

Total release size: 7.5 MB

Release files / qemcmc-0.4.2.tar.gz

Download URL qemcmc-0.4.2.tar.gz
Size 7.5 MB
Tags Source
SHA-256 checksum
How to use checksums
cd3378c4e47138bb6ccd53522ed1a5a8738a73f0c6559785fee1430f74313e37
BLAKE2b-256 checksum
How to use checksums
8c7f45ee2a66fcc48cb855d4c7b5262782edc35f3402d889ead9935334ab4917
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 Aug 4, 2026.

Transparency log

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

Download URL qemcmc-0.4.2-py3-none-any.whl
Size 36.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
122475f18323d4cc1246a109db773e556f19e246a26c91a9bb11c7974ad217d2
BLAKE2b-256 checksum
How to use checksums
90cad1237e77356fd685d96c78599bf3b8c0b090dccf5f779cfbe294a1a68edc
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 Aug 4, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.2

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