Code
qcr:2606.57773.1

Quantum Teleportation with PennyLane

This PennyLane demo implements quantum teleportation, the foundational protocol that transfers an unknown quantum state from a sender to a receiver using only a shared entangled pair and two classical bits, without physically moving the qubit and without learning the state. It is a cornerstone of quantum communication and a building block for distributed quantum computing and gate teleportation in fault-tolerant architectures. The tutorial builds the protocol step by step in PennyLane: preparing the unknown message state, creating a Bell pair shared between the two parties, entangling the message qubit with the sender's half of the pair and measuring both, and then, conditioned on those mid-circuit measurement outcomes, applying the appropriate Pauli corrections to the receiver's qubit so it becomes an exact copy of the original. It uses PennyLane's mid-circuit measurement and classical-conditioning features to express the measure-and-correct logic, and verifies that the receiver's final state matches the message. By making the protocol concrete with modern dynamic-circuit primitives, the demo is a clear, end-to-end illustration of entanglement as a communication resource in PennyLane.
Qubit
Circuit-based
Uploaded 3 days ago
10
Views
GitHub667
Citing this entry? Use this QCR ID
Uploaded by
QL
QCR Librarian

Overview

PennyLaneAI/demos
667238
README.md

Quantum Teleportation with PennyLane

This PennyLane demo implements quantum teleportation, the foundational protocol that transfers an unknown quantum state from a sender to a receiver using only a shared entangled pair and two classical bits, without physically moving the qubit and without learning the state. It is a cornerstone of quantum communication and a building block for distributed quantum computing and gate teleportation in fault-tolerant architectures. The tutorial builds the protocol step by step in PennyLane: preparing the unknown message state, creating a Bell pair shared between the two parties, entangling the message qubit with the sender's half of the pair and measuring both, and then, conditioned on those mid-circuit measurement outcomes, applying the appropriate Pauli corrections to the receiver's qubit so it becomes an exact copy of the original. It uses PennyLane's mid-circuit measurement and classical-conditioning features to express the measure-and-correct logic, and verifies that the receiver's final state matches the message. By making the protocol concrete with modern dynamic-circuit primitives, the demo is a clear, end-to-end illustration of entanglement as a communication resource in PennyLane.

Run it

pip install -r requirements.txt
python demo.py

Source and license

Imported from demonstrations_v2/tutorial_teleportation/demo.py in PennyLaneAI/demos at c52c0abeb5122218aa96b38eea848864cce7323f, under the Apache License 2.0. Original authors: Xanadu and the PennyLane community. 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.57773.1

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

Tools used

PennyLane

Keywords

teleportation
entanglement
pennylane
mid-circuit-measurement
bell-pair

You may also like5