|
@@ -1,6 +1,20 @@ |
|
|
# abp 0.6.1 |
|
|
# 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. |
|
|
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 |
|
|
## Installation |
|
|
|
|
|
|
|
|
Install from source |
|
|
Install from source |
|
@@ -10,7 +24,7 @@ $ git clone http://gitlab.psiquantum.lan/pete/abp |
|
|
$ cd abp |
|
|
$ cd abp |
|
|
$ virtualenv env |
|
|
$ virtualenv env |
|
|
$ source env/bin/activate |
|
|
$ source env/bin/activate |
|
|
$ python setup.py develop --user |
|
|
|
|
|
|
|
|
$ python setup.py develop |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
## Documentation |
|
|
## Documentation |
|
|