From e243c04450b3664d9dfcb82f9abd65579f6f99d6 Mon Sep 17 00:00:00 2001 From: Ivelina <35869475+ivelinakr@users.noreply.github.com> Date: Sat, 7 May 2022 21:51:44 +0100 Subject: [PATCH] Wrong naming of circuit updated Causes the CNOT and Hadamard gates to not be recognised. Fixed naming. --- .../The BB84 Quantum Cryptography algorithm.ipynb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/intermediate/The BB84 Quantum Cryptography algorithm.ipynb b/intermediate/The BB84 Quantum Cryptography algorithm.ipynb index 5422a23..f160f9c 100644 --- a/intermediate/The BB84 Quantum Cryptography algorithm.ipynb +++ b/intermediate/The BB84 Quantum Cryptography algorithm.ipynb @@ -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" ] }, {