From the course: Quantum Computing Fundamentals
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Quantum teleportation with Qiskit
From the course: Quantum Computing Fundamentals
Quantum teleportation with Qiskit
- [Instructor] Let's look at an example quantum teleportation circuit with Qiskit. After the initial import statements, the second cell of this notebook initializes a quantum circuit with three quantum registers and two classical registers. We've used the optional name parameter when defining these registers to give them unique names to help identify them. Qubit zero is Olivia's qubit, whose state we want to teleport. Qubit one is the half of our Bell state pair that gets sent to Olivia, and qubit two is Barron's qubit, which is the other half of that Bell state pair and the destination for our teleportation. We've named the last two classical registers CRZ and CRX because we'll be using the measured results stored in them to conditionally apply Z and X gates to Barron's target qubit. Next, after creating the circuit, we initialize Olivia's qubit to the quantum state we'll be transferring. In practice, we likely…