Pete Shadbolt b41699426a | il y a 5 ans | |
---|---|---|
abp | il y a 5 ans | |
doc | il y a 5 ans | |
examples | il y a 5 ans | |
tests | il y a 5 ans | |
.bumpversion.cfg | il y a 5 ans | |
.gitignore | il y a 5 ans | |
.gitlab-ci.yml | il y a 5 ans | |
Makefile | il y a 7 ans | |
README.md | il y a 5 ans | |
README.rst | il y a 7 ans | |
requirements.txt | il y a 5 ans | |
setup.py | il y a 5 ans | |
tox.ini | il y a 5 ans |
Python port of Anders and Briegel’ s method for fast simulation of Clifford circuits.
import abp
from abp.util import xyz
g = abp.GraphState()
g.add_qubit("alice", position=xyz(0, 0, 0))
g.add_qubit("bob", position=xyz(0, 0, 0))
g.act_hadamard("alice")
g.act_hadamard("bob")
g.act_cz("alice", "bob")
g.push() # Sends for visualization
Install from source
$ git clone http://gitlab.psiquantum.lan/pete/abp
$ cd abp
$ virtualenv env
$ source env/bin/activate
$ python setup.py develop
You can read the full documentation here. You can also build it locally using Sphinx with make doc
.
To install Sphinx on OSX, use pip install sphinx
. If after doing so make doc
still does not work, some OSX users may also need to install sphinxcontrib-napoleon
by running pip install sphinxcontrib-napoleon
.