Anders and Briegel in Python
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Pete Shadbolt b41699426a Bump version: 0.6.1 → 0.6.2 5 anos atrás
abp Not much 5 anos atrás
doc Bump version: 0.6.1 → 0.6.2 5 anos atrás
examples Not much 5 anos atrás
tests Test passing 5 anos atrás
.bumpversion.cfg Bump version: 0.6.1 → 0.6.2 5 anos atrás
.gitignore Readme 5 anos atrás
.gitlab-ci.yml Gitlab-CI 5 anos atrás
Makefile Removed all visualization related stuff 7 anos atrás
README.md Bump version: 0.6.1 → 0.6.2 5 anos atrás
README.rst Pushed to PyPI 7 anos atrás
requirements.txt Tox passing 5 anos atrás
setup.py Bump version: 0.6.1 → 0.6.2 5 anos atrás
tox.ini Tox passing 5 anos atrás

README.md

abp 0.6.2

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.