Algorithm
Quantum Teleportation
Problem: transfer an unknown quantum state using entanglement plus classical measurement results.
Expected output
This sample demonstrates the structure: EPR pair, Bell measurement, and a simplified recovery step.
Algorithm
Problem: transfer an unknown quantum state using entanglement plus classical measurement results.
This sample demonstrates the structure: EPR pair, Bell measurement, and a simplified recovery step.
The state is not copied; the original is consumed while Bob's qubit is corrected.
Prepare an EPR pair, entangle the message with Alice's qubit, then measure.
Teleportation is foundational for quantum networking and repeaters.
The current DSL has no classical conditional gate syntax, so this is an educational simplification.
# Teleportation (alice->bob) qubits 3 # q0 = message, q1 = alice, q2 = bob H 1 CX 1 2 CX 0 1 H 0 MEASURE 0 MEASURE 1 # Bob recovers (simplified): CX 1 2 MEASURE 2
What is required along with entanglement?