Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions intermediate/The BB84 Quantum Cryptography algorithm.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -171,20 +171,20 @@
" # Sender prepares qubits\n",
" for i in range(len(basis)):\n",
" if state[i] == 1:\n",
" bb84_circuit.x(i)\n",
" circuit.x(i)\n",
" if basis[i] == 1:\n",
" bb84_circuit.h(i)\n",
" circuit.h(i)\n",
" \n",
"\n",
" # Measuring action performed by Bob\n",
" for i in range(len(measurement_basis)):\n",
" if measurement_basis[i] == 1:\n",
" bb84_circuit.h(i)\n",
" circuit.h(i)\n",
"\n",
" \n",
" bb84_circuit.measure_all()\n",
" circuit.measure_all()\n",
" \n",
" return bb84_circuit"
" return circuit"
]
},
{
Expand Down