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.3.tar.gz
(7.3 kB
view hashes)
Built Distribution
Close
Hashes for quantpiler-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56e318a766693a9e6d6027850f8e711a553dd76813f9b24ecdd28c46726439ab |
|
MD5 | c869fe9ff5a88a401e2527b514526f20 |
|
BLAKE2b-256 | c539fc15ea6bec9b942231d897803dcd7a640b92cd6a36f34d47a6406d969deb |