소스 검색

Update README, docs

master
Pete Shadbolt 7 년 전
부모
커밋
876c1ac2ad
4개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. +1
    -1
      README.md
  2. +1
    -1
      abp/static/index.html
  3. +1
    -0
      doc/conf.py
  4. +2
    -2
      doc/index.rst

+ 1
- 1
README.md 파일 보기

@@ -35,7 +35,7 @@ Now, in another terminal, use `abp.fancy.GraphState` to run a Clifford circuit:

```python
>>> from abp.fancy import GraphState
>>> g = GraphState(range(10))
>>> g = GraphState(10)
>>> for i in range(10):
... g.act_hadamard(i)
...


+ 1
- 1
abp/static/index.html 파일 보기

@@ -25,7 +25,7 @@
<div id=node_info class=hidden> nothing </div>
<div id=server_info class=hidden> </div>

<div id=version>Version 0.4.20</div>
<div id=version>Version 0.4.20 develop mode</div>

<div id=node_data class=hidden>
<div id=node_name></div>


+ 1
- 0
doc/conf.py 파일 보기

@@ -33,6 +33,7 @@ extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.todo',
'sphinx.ext.mathjax',
'sphinxcontrib.napoleon',
]

# Add any paths that contain templates here, relative to this directory.


+ 2
- 2
doc/index.rst 파일 보기

@@ -48,7 +48,7 @@ Quickstart
It's pretty easy to build a graph state, act some gates, and do measurements::

>>> from abp import GraphState
>>> g = GraphState(range(5))
>>> g = GraphState(5)
>>> for i in range(5):
... g.act_hadamard(i)
...
@@ -110,7 +110,7 @@ Then browse to ``http://localhost:5001/`` (in some circumstances ``abp`` will au
Now, in another terminal, use ``abp.fancy.GraphState`` to run a Clifford circuit::

>>> from abp.fancy import GraphState
>>> g = GraphState(range(10))
>>> g = GraphState(10)
>>> g.act_circuit([(i, "hadamard") for i in range(10)])
>>> g.act_circuit([((i, i+1), "cz") for i in range(9)])
>>> g.update()


불러오는 중...
취소
저장