Skip to content

Commit

Permalink
#5 Delete: old quantum coin flip function that didn't use threads
Browse files Browse the repository at this point in the history
  • Loading branch information
mapa21 committed May 18, 2024
1 parent 4b4d034 commit eb9ddf0
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions weak_global_coin.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -263,31 +263,6 @@
" return leader_processes_ids[0]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"def old_quantum_coin_flip():\n",
" for i in range(n):\n",
" send_coin(i)\n",
" send_leader(i)\n",
"\n",
" for i in range(len(leader_msgs)):\n",
" leader_msgs[i].circuit.measure_circuit()\n",
"\n",
" leader_process_id = get_highest_leader_id()\n",
"\n",
" leader_coin = None\n",
"\n",
" for i in range(len(coin_msgs)):\n",
" if coin_msgs[i].sender == leader_process_id:\n",
" coin_msgs[i].circuit.measure_circuit()\n",
" leader_coin = coin_msgs[i].circuit.memory\n",
" return leader_coin"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit eb9ddf0

Please sign in to comment.