Code
qcr:2606.00087.1

Quantum Teleportation

Quantum teleportation is a foundational protocol that transfers an unknown quantum state from a sender (Alice) to a receiver (Bob) using only a shared entangled pair and two classical bits of communication, without physically moving the qubit itself and without ever learning the state being sent. It is a cornerstone of quantum communication and distributed quantum computing, underpinning quantum repeaters and gate teleportation in fault-tolerant architectures. This Cirq example implements the complete protocol: Alice and Bob first share a Bell pair; Alice then entangles the unknown message qubit with her half of the pair, measures both of her qubits in the appropriate basis, and sends the two classical measurement outcomes to Bob. Conditioned on those two bits, Bob applies the corresponding Pauli correction (X and/or Z) to his half of the entangled pair, which transforms it into an exact copy of the original message state. The script prepares the message qubit in a random state, runs the full circuit through simulation, and verifies that Bob's final qubit matches Alice's original, demonstrating that quantum information can be reliably transmitted using entanglement plus classical communication. It is a clear, end-to-end illustration of entanglement as a communication resource.
Qubit
Circuit-based
Uploaded 3 days ago
38
Views
GitHub4990
Citing this entry? Use this QCR ID
Uploaded by
QL
QCR Librarian

Overview

quantumlib/Cirq
49901228
README.md

Quantum Teleportation

Quantum teleportation is a foundational protocol that transfers an unknown quantum state from a sender (Alice) to a receiver (Bob) using only a shared entangled pair and two classical bits of communication, without physically moving the qubit itself and without ever learning the state being sent. It is a cornerstone of quantum communication and distributed quantum computing, underpinning quantum repeaters and gate teleportation in fault-tolerant architectures. This Cirq example implements the complete protocol: Alice and Bob first share a Bell pair; Alice then entangles the unknown message qubit with her half of the pair, measures both of her qubits in the appropriate basis, and sends the two classical measurement outcomes to Bob. Conditioned on those two bits, Bob applies the corresponding Pauli correction (X and/or Z) to his half of the entangled pair, which transforms it into an exact copy of the original message state. The script prepares the message qubit in a random state, runs the full circuit through simulation, and verifies that Bob's final qubit matches Alice's original, demonstrating that quantum information can be reliably transmitted using entanglement plus classical communication. It is a clear, end-to-end illustration of entanglement as a communication resource.

Run it

pip install -r requirements.txt
python quantum_teleportation.py

Source and license

Imported from examples/quantum_teleportation.py in quantumlib/Cirq at v1.6.1, under the Apache License 2.0. Original authors: The Cirq Developers. The upstream LICENSE is included alongside this example.

Join the Discussion

Comments (0)

No comments yet. Be the first to share your thoughts!

Indexed by QCR Librarian

This entry was created automatically from publicly available records. QCR links to public sources and only stores repository content where the license permits redistribution.

Versions

v1 Latest
Jun 16, 2026
qcr:2606.00087.1

Cite all versions? Use the base QCR ID to always reference the latest version of this entry.

Tools used

Cirq

Keywords

teleportation
entanglement
bell-pair
classical-communication
pauli-correction

You may also like5