Questions
- This chapter’s Quantum operations for teleportation section presents the equations that show why teleportation works. What happens in these equations if the initial state of Alice’s qubit is |0⟩? What happens if the initial state is |1⟩?
- In Figure 6.10, Alice’s qubit starts in state 0.8228 |0⟩ + 0.5683 |1⟩. Modify this chapter’s
generate_amplitudes
function as follows:def generate_amplitudes(): alpha = 0.8228 beta = 0.5683 return alpha, beta
With this version of generate_amplitudes
, what happens when you call the add_gates
function? Why?
- Write Qiskit code to create a circuit of the following kind:
I’ve blurred out the initial amplitudes of Alice’s qubit because you should generate those values randomly.
Run this circuit several times to convince yourself that Bob’s qubit...