Browse Source

README

master
Pete Shadbolt 5 years ago
parent
commit
045aba201c
1 changed files with 15 additions and 1 deletions
  1. +15
    -1
      README.md

+ 15
- 1
README.md View File

@@ -1,6 +1,20 @@
# abp 0.6.1
Python port of Anders and Briegel' s [method](https://arxiv.org/abs/quant-ph/0504117) for fast simulation of Clifford circuits.

## Usage

```python
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
```

## Installation

Install from source
@@ -10,7 +24,7 @@ $ git clone http://gitlab.psiquantum.lan/pete/abp
$ cd abp
$ virtualenv env
$ source env/bin/activate
$ python setup.py develop --user
$ python setup.py develop
```

## Documentation


Loading…
Cancel
Save