Teleport App

TeleportApp Module This module implements the TeleportApp class, which is responsible for managing quantum teleportation between quantum nodes. It utilizes the TeleportProtocol to handle the teleportation process, including the reservation of entangled pairs and the application of corrections based on classical messages.

class sequence.app.teleport_app.TeleportApp(node: DQCNode)

Code for the teleport application.

TeleportApp is a specialized RequestApp that implements quantum teleportation. It handles the teleportation protocol between two quantum nodes (Alice and Bob).

node

The quantum node this app is attached to.

Type:

DQCNode

name

The name of the teleport application.

Type:

str

results

A list of results of (timestamp, teleported_state)

Type:

list

teleport_protocols

A list of teleportation protocol instances.

Type:

list[TeleportProtocol]

get_memory(info: MemoryInfo)

Handle memory state changes.

Parameters:

info (MemoryInfo) – Information about the memory state change.

get_reservation_result(reservation, result: bool)

Handle the reservation result from the network manager.

Parameters:
  • reservation (Reservation) – The reservation object.

  • result (bool) – True if the reservation was successful, False otherwise.

received_message(src: str, msg: TeleportMessage)

Handle incoming teleport messages.

Parameters:
  • src (str) – Source node name.

  • msg (TeleportMessage) – The teleport message received.

start(responder: str, start_t: int, end_t: int, memory_size: int, fidelity: float, data_memory_index: int)

Start the teleportation process.

NOTE: only teleport one data memory qubit

Parameters:
  • responder (str) – Name of the responder node (Bob).

  • start_t (int) – Start time of the teleportation (in ps).

  • end_t (int) – End time of the teleportation (in ps).

  • memory_size (int) – Size of the memory used for the teleportation.

  • fidelity (float) – Target fidelity of the teleportation.

  • data_memory_index (int) – Index of the data qubit to be teleported.

teleport_complete(comm_key: int)

Called by TeleportProtocol once Bob’s qubit is corrected. comm_key holds the teleported |ψ⟩.

Parameters:

comm_key (int) – The key of the comm memory where the teleported state is stored.