|
|
@@ -19,7 +19,6 @@ The URL contains a unique ID such as `1ed6cc3c-65e4-4f6a-ab14-5e8c01d4593b`. You |
|
|
|
## Python package |
|
|
|
The underlying graph state simulator is based on Anders' and Briegel's method. Full docs for the Python package are [here](https://peteshadbolt.co.uk/static/abp/). You can install it like this: |
|
|
|
|
|
|
|
:::bash |
|
|
|
$ pip install abp |
|
|
|
|
|
|
|
|
|
|
@@ -27,7 +26,6 @@ The underlying graph state simulator is based on Anders' and Briegel's method. F |
|
|
|
|
|
|
|
Here's a complete example of sending a state from Python to the server: |
|
|
|
|
|
|
|
:::python |
|
|
|
import abp |
|
|
|
|
|
|
|
# Make a new graph and automatically position the nodes |
|
|
@@ -87,7 +85,6 @@ Each `node` has |
|
|
|
|
|
|
|
Here's an example of a graph `(A-B C)`: |
|
|
|
|
|
|
|
:::python |
|
|
|
{'adj': {0: {1: {}}, 1: {0: {}}, 2: {}}, |
|
|
|
'node': { |
|
|
|
0: {'position': {'x': 0, 'y': 0, 'z': 0}, 'vop': 0}, |
|
|
|