Skip to main content

qmc: A python framework for Hamiltonian Quantum computation

qmc, named after the title of a foundational paper (pdf) in quantum computing, is a library for writing, manipulating, and optimizing Hamiltonian quantum computers.

Installation

The qmc package is available via pip and can be installed in your current Python environment with the command:

pip install qmc

Getting started

Hamiltonian quantum computers were first invented with the potential application of performing dissipasion-free computation. qmc allows one do perform such resource estimations. Below is a circuit composed of NOT gates which shows that executing that circuit on a Hamiltonian quantum computer dissipates less energy than on a classical computer.

import cirq
from qmc.qmc import simulate
qubit = cirq.GridQubit(0, 0)

circuit = cirq.Circuit(
        cirq.X(qubit),
        cirq.X(qubit),
        cirq.X(qubit),
        cirq.X(qubit),
        cirq.X(qubit),
    )

result = simulate(circuit, 100)
print(result.output)
# prints
# m=1
print(result.quantum_energy_cost < result.classical_energy_cost)
# prints
# True

Feature requests / Bugs / Questions

If you have questions, feature requests or you found a bug, please file them on Github.

Metadata

Release files for qmc 0.0.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 qmc 0.0.1
File Size Uploaded Provenance
qmc-0.0.1.tar.gz 8.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for qmc 0.0.1
File Interpreter ABI Platform
qmc-0.0.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 16.7 kB

Release files / qmc-0.0.1.tar.gz

Download URL qmc-0.0.1.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
767dd43dd399dc9ad49b693ee5bf18b5ff1fb30ccff3f36e464fa8c6eb61b1b0
BLAKE2b-256 checksum
How to use checksums
2e1f3754205eb4a42bc142cf360a4a902f5498b8fae5b936b7f4ea34f99343e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Release files / qmc-0.0.1-py2.py3-none-any.whl

Download URL qmc-0.0.1-py2.py3-none-any.whl
Size 8.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
36b265a97a7c15e119e0f70e17b4249ebcb62c2468d0334ef4157ef4d2fe89aa
BLAKE2b-256 checksum
How to use checksums
84d7cc0a83e50edc14916163c0644df0a1352cef394343b3a4c85c6b676e3c9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.12

Security for qmc 0.0.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

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