Anders and Briegel in Python
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
Pete Shadbolt e9c3362229 Demo video vor 5 Jahren
abp Not much vor 5 Jahren
doc Demo video vor 5 Jahren
examples Not much vor 5 Jahren
tests Test passing vor 5 Jahren
.bumpversion.cfg Bump version: 0.6.0 → 0.6.1 vor 5 Jahren
.gitignore Readme vor 5 Jahren
.gitlab-ci.yml Gitlab-CI vor 5 Jahren
Makefile Removed all visualization related stuff vor 6 Jahren
README.md README vor 5 Jahren
README.rst Pushed to PyPI vor 6 Jahren
requirements.txt Tox passing vor 5 Jahren
setup.py Bump version: 0.6.0 → 0.6.1 vor 5 Jahren
tox.ini Tox passing vor 5 Jahren

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.