Anders and Briegel in Python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Pete Shadbolt 9c46399960 README 5 vuotta sitten
abp Not much 5 vuotta sitten
doc Bump version: 0.6.0 → 0.6.1 5 vuotta sitten
examples Not much 5 vuotta sitten
tests Test passing 5 vuotta sitten
.bumpversion.cfg Bump version: 0.6.0 → 0.6.1 5 vuotta sitten
.gitignore Readme 5 vuotta sitten
.gitlab-ci.yml Gitlab-CI 5 vuotta sitten
Makefile Removed all visualization related stuff 7 vuotta sitten
README.md README 5 vuotta sitten
README.rst Pushed to PyPI 7 vuotta sitten
requirements.txt Tox passing 5 vuotta sitten
setup.py Bump version: 0.6.0 → 0.6.1 5 vuotta sitten
tox.ini Tox passing 5 vuotta sitten

README.md

abp 0.6.1

Python port of Anders and Briegel’ s method for fast simulation of Clifford circuits.

Usage

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

Video demo

Installation

Install from source

$ git clone http://gitlab.psiquantum.lan/pete/abp
$ cd abp
$ virtualenv env
$ source env/bin/activate
$ python setup.py develop 

Documentation

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.