Simulating Feynman's quantum mechanical computers
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qmc-0.0.1.tar.gz.
File metadata
- Download URL: qmc-0.0.1.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
767dd43dd399dc9ad49b693ee5bf18b5ff1fb30ccff3f36e464fa8c6eb61b1b0
|
|
| MD5 |
bd2a3bf5c771bcc8993d129c08a06001
|
|
| BLAKE2b-256 |
2e1f3754205eb4a42bc142cf360a4a902f5498b8fae5b936b7f4ea34f99343e3
|
File details
Details for the file qmc-0.0.1-py2.py3-none-any.whl.
File metadata
- Download URL: qmc-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36b265a97a7c15e119e0f70e17b4249ebcb62c2468d0334ef4157ef4d2fe89aa
|
|
| MD5 |
e86e5ffad08bfb01361ed57048c90192
|
|
| BLAKE2b-256 |
84d7cc0a83e50edc14916163c0644df0a1352cef394343b3a4c85c6b676e3c9f
|