Quantum compiler and common circuits generator
Project description
Quantpiler
This library can generate some common circuits and compile python functions to circuits
Examples:
Compile:
from quantpiler.compiler import compile
def example_func(a, b):
a = True
a_or_b = a | b
tmp = a & (a_or_b | (a == b))
b = tmp != False
qc = compile(example_func, 4)
qc.draw(output="mpl")
qRAM
from quantpiler.qram import new_qram
values = {0: 1, 1: 3, 2: 6, 3: 7}
qram = new_qram(2, 3, values)
qram.draw(output="mpl")
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
quantpiler-0.1.5.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for quantpiler-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf96f54dd111e9159fcd78fb5c0c9a37caea57f23fcc84f0020eeca72b308668 |
|
MD5 | c0b465171be471f2861525f8ccc138cd |
|
BLAKE2b-256 | 0e8082a33a2ae625793349c4bd515ad3007ba769e30f0772312d77de20bcc16f |