https://github.com/vtomole/qmc
A python framework for Hamiltonian Quantum computation
https://github.com/vtomole/qmc
quantum-computing reversible-computation
Last synced: 3 months ago
JSON representation
A python framework for Hamiltonian Quantum computation
- Host: GitHub
- URL: https://github.com/vtomole/qmc
- Owner: vtomole
- License: apache-2.0
- Created: 2024-07-15T02:14:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-09T00:38:58.000Z (over 1 year ago)
- Last Synced: 2025-09-20T09:29:10.896Z (9 months ago)
- Topics: quantum-computing, reversible-computation
- Language: Python
- Homepage:
- Size: 20.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# qmc: A python framework for Hamiltonian Quantum computation
qmc, named after the title of a [foundational paper (pdf)](http://www.quantum-dynamic.eu/doc/feynman85_qmc_optics_letters.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 perform such
resource estimations. Below is a circuit composed of `NOT` gates which shows that executing a circuit on a Hamiltonian quantum computer dissipates less energy than on a classical computer.
```python
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](https://github.com/vtomole/qmc/issues).