Skip to content
/ qmc Public

A python framework for Hamiltonian Quantum computation

License

Notifications You must be signed in to change notification settings

vtomole/qmc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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.

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.

About

A python framework for Hamiltonian Quantum computation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages