Переглянути джерело

Update README, docs

master
Pete Shadbolt 8 роки тому
джерело
коміт
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 ```python
>>> from abp.fancy import GraphState >>> from abp.fancy import GraphState
>>> g = GraphState(range(10))
>>> g = GraphState(10)
>>> for i in range(10): >>> for i in range(10):
... g.act_hadamard(i) ... g.act_hadamard(i)
... ...


+ 1
- 1
abp/static/index.html Переглянути файл

@@ -25,7 +25,7 @@
<div id=node_info class=hidden> nothing </div> <div id=node_info class=hidden> nothing </div>
<div id=server_info class=hidden> </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_data class=hidden>
<div id=node_name></div> <div id=node_name></div>


+ 1
- 0
doc/conf.py Переглянути файл

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


# Add any paths that contain templates here, relative to this directory. # 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:: It's pretty easy to build a graph state, act some gates, and do measurements::


>>> from abp import GraphState >>> from abp import GraphState
>>> g = GraphState(range(5))
>>> g = GraphState(5)
>>> for i in range(5): >>> for i in range(5):
... g.act_hadamard(i) ... 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:: Now, in another terminal, use ``abp.fancy.GraphState`` to run a Clifford circuit::


>>> from abp.fancy import GraphState >>> 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, "hadamard") for i in range(10)])
>>> g.act_circuit([((i, i+1), "cz") for i in range(9)]) >>> g.act_circuit([((i, i+1), "cz") for i in range(9)])
>>> g.update() >>> g.update()


Завантаження…
Відмінити
Зберегти