Skip to content

Commit 5fcdac9

Browse files
author
Axel Dahlberg
committed
Updated README for coinflip example
1 parent 3b82c9c commit 5fcdac9

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

examples/pythonLib/coinflipLeader/README.txt

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,28 @@
22

33
## How to run
44

5+
First make sure that simulaqron is started with the nodes you'd want to include.
6+
This can be done with for example `simulaqron start` which by default starts a network
7+
with the nodes Alice, Bob, Charlie, David and Eve.
8+
Note that you need to be using either the qutip or projectq backend, since single-qubit
9+
rotations are used which are not supported in stabilizer formalism.
10+
To change the backend do `simulaqron set backend projectq`, which of course requires projectq
11+
to be installed (`pip install projectq`).
12+
13+
In this folder there is both an example with the four nodes Alice, Bob, Charlie and David
14+
and one where you can dynamically choose the nodes that the example uses.
15+
16+
To start either of the examples do
17+
```
18+
python3 fourPartyCoinFlip.py
19+
```
20+
or
521
```
6-
sh $NETSIM/run/startAll.sh
7-
./run.sh
22+
python3 nPartyCoinFlip.py
823
```
924

10-
Note that you need to give the nodes a few seconds to start up after running
11-
the first command.
25+
When running `nPartyCoinFlip.py` fill in the names you want to use (note that these needs to
26+
be in the current running network) and press enter when you're finished.
1227

1328
## Explanation
1429

0 commit comments

Comments
 (0)