Anders and Briegel in Python
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Pete Shadbolt 4b69463460 README il y a 5 ans
abp Not much il y a 5 ans
doc Demo video il y a 5 ans
examples Not much il y a 5 ans
tests Test passing il y a 5 ans
.bumpversion.cfg Bump version: 0.6.0 → 0.6.1 il y a 5 ans
.gitignore Readme il y a 5 ans
.gitlab-ci.yml Gitlab-CI il y a 5 ans
Makefile Removed all visualization related stuff il y a 6 ans
README.md README il y a 5 ans
README.rst Pushed to PyPI il y a 6 ans
requirements.txt Tox passing il y a 5 ans
setup.py Bump version: 0.6.0 → 0.6.1 il y a 5 ans
tox.ini Tox passing il y a 5 ans

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

Demo

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.