Anders and Briegel in Python
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Pete Shadbolt e9c3362229 Demo video pirms 5 gadiem
abp Not much pirms 5 gadiem
doc Demo video pirms 5 gadiem
examples Not much pirms 5 gadiem
tests Test passing pirms 5 gadiem
.bumpversion.cfg Bump version: 0.6.0 → 0.6.1 pirms 5 gadiem
.gitignore Readme pirms 5 gadiem
.gitlab-ci.yml Gitlab-CI pirms 5 gadiem
Makefile Removed all visualization related stuff pirms 7 gadiem
README.md README pirms 5 gadiem
README.rst Pushed to PyPI pirms 7 gadiem
requirements.txt Tox passing pirms 5 gadiem
setup.py Bump version: 0.6.0 → 0.6.1 pirms 5 gadiem
tox.ini Tox passing pirms 5 gadiem

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.