Quantum gate simulator
Project description
A quantum gate simulator.
Install
git clone https://github.com/mdrft/blueqat
cd blueqat
pip3 install -e .
or
pip3 install blueqat
Example: 2-qubit Grover
from blueqat import Circuit
c = Circuit().h[:2].cz[0,1].h[:].x[:].cz[0,1].x[:].h[:].m[:]
c.run()
print(c.last_result()) # => (1, 1)
Example: Maxcut QAOA
python examples/maxcut_qaoa.py
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
blueqat-0.1.3.tar.gz
(9.5 kB
view hashes)
Built Distribution
blueqat-0.1.3-py3-none-any.whl
(10.7 kB
view hashes)