@@ -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) | ||||
... | ... | ||||
@@ -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> | ||||
@@ -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. | ||||
@@ -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() | ||||