Anders and Briegel in Python
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
Pete Shadbolt 340fdef6de Test passing 4 年前
abp Test passing 4 年前
doc Bump version: 0.6.2 → 0.6.3 5 年前
examples Not much 5 年前
tests Test passing 4 年前
.bumpversion.cfg Bump version: 0.6.2 → 0.6.3 5 年前
.gitignore Readme 5 年前
.gitlab-ci.yml Gitlab-CI 5 年前
Makefile Dependencies 5 年前 Bump version: 0.6.2 → 0.6.3 5 年前
README.rst Pushed to PyPI 6 年前
requirements.txt Tox passing 5 年前 Bump version: 0.6.2 → 0.6.3 5 年前
tox.ini Tox passing 5 年前

abp 0.6.3

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_cz("alice", "bob")
g.push() # Sends for visualization


Demo video


Install from source

$ git clone http://gitlab.psiquantum.lan/pete/abp
$ cd abp
$ virtualenv env
$ source env/bin/activate
$ python 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.