File tree Expand file tree Collapse file tree 1 file changed +19
-4
lines changed
examples/pythonLib/coinflipLeader Expand file tree Collapse file tree 1 file changed +19
-4
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments