Selaa lähdekoodia

Update README, docs

master
Pete Shadbolt 8 vuotta sitten
vanhempi
commit
876c1ac2ad
4 muutettua tiedostoa jossa 5 lisäystä ja 4 poistoa
  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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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 Näytä tiedosto

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


Loading…
Peruuta
Tallenna