Anders and Briegel in Python
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
Pete Shadbolt 340fdef6de Test passing hace 3 años
abp Test passing hace 3 años
doc Bump version: 0.6.2 → 0.6.3 hace 5 años
examples Not much hace 5 años
tests Test passing hace 3 años
.bumpversion.cfg Bump version: 0.6.2 → 0.6.3 hace 5 años
.gitignore Readme hace 5 años
.gitlab-ci.yml Gitlab-CI hace 5 años
Makefile Dependencies hace 5 años
README.md Bump version: 0.6.2 → 0.6.3 hace 5 años
README.rst Pushed to PyPI hace 6 años
requirements.txt Tox passing hace 5 años
setup.py Bump version: 0.6.2 → 0.6.3 hace 5 años
tox.ini Tox passing hace 5 años

README.md

abp 0.6.3

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

Demo

Demo video

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.