Pete Shadbolt 340fdef6de | 4 年前 | |
---|---|---|
abp | 4 年前 | |
doc | 5 年前 | |
examples | 5 年前 | |
tests | 4 年前 | |
.bumpversion.cfg | 5 年前 | |
.gitignore | 5 年前 | |
.gitlab-ci.yml | 5 年前 | |
Makefile | 5 年前 | |
README.md | 5 年前 | |
README.rst | 7 年前 | |
requirements.txt | 5 年前 | |
setup.py | 5 年前 | |
tox.ini | 5 年前 |
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
.