瀏覽代碼

README

master
Pete Shadbolt 5 年之前
父節點
當前提交
045aba201c
共有 1 個檔案被更改,包括 15 行新增1 行删除
  1. +15
    -1
      README.md

+ 15
- 1
README.md 查看文件

@@ -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…
取消
儲存