Teleportation and entanglement swapping using the Quantum Toolkit in Python (QuTiP) (YouTube video at https://youtu.be/M7GUkuM2vBk )
Using the qalgebra system to demonstration teleportation using computer algebra rather than numerical calculation.
Use symbolic computation (computer algebra) to determine which gates to apply in qalgebra_entanglement_swapping.py
Like in a quantum repeater, using computer algebra rather than multiplying matrices of numbers
The pip requirements for usign qabebra and qnet
Simulates and demonstrates teleportation
The qutip library function "measure_observable" is used to simulate a Bell measurement, and returns a nonzero probability, with the associted projected state, if the particle was measured to be in the pre-specified state. The outcome of this function call is nondeterministic.
Simulates and demonstrates entanglement swapping
Function same_state() returns True if both arguments represent the same state (up to a phase factor)
I use numpy version 1.18 because the latest version is incompatible with qutip
Telepeortation and quantum repeaters using entanglment. Jupyter notebook. Stands alone except for dependency on numpy, scipy and sympy.