guppyalgos.primitives.subroutines.teleport

Functions for quantum teleportation.

Functions

quantum_teleportation(src, out)

Implement quantum teleportation from one register to another.

guppyalgos.primitives.subroutines.teleport.quantum_teleportation(src, out)

Implement quantum teleportation from one register to another.

Given a source state, transfers its information to the out using an ancillary register. It assumes `out` is initialized to \(\ket{0}\) state. First bell pairs are created between `src` and `aux` and conditional operations are performed on `out` depending on measurements. Both `src` and `out` states are destroyed.

Parameters:
  • src (array[qubit, n]) – Array of qubits from where to extract the information.

  • out (array[qubit, n]) – Array of qubits from where to transfer the information.