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.6.tar.gz
(8.2 kB
view hashes)
Built Distribution
Close
Hashes for quantpiler-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91399db441fe56827aedbd87a51821246871f7180701fe0d592907e9cacefe29 |
|
MD5 | 7b5b7a34e79651b23aa7fe89faac82ef |
|
BLAKE2b-256 | b9d9fb6cbae6abe615a13bc347db52c0cc8bf892d7f3d56ae2796b5e805b9ab6 |