circuits / quantum-teleportation

Quantum Teleportation

FEATURED

Teleports the state of qubit 0 to qubit 2 using an entangled Bell pair and classical communication.

quantumcomputer.dev
openqasm3q7 gatesdepth 60 views0 saves0 forks0 downloads

Source Code

OPENQASM 2.0;
include "qelib1.inc";
qreg q[3];
creg c[3];
// Prepare Bell pair
h q[1];
cx q[1],q[2];
// Teleport q[0]
cx q[0],q[1];
h q[0];
measure q[0] -> c[0];
measure q[1] -> c[1];
// Corrections
if(c[1]==1) x q[2];
if(c[0]==1) z q[2];
measure q[2] -> c[2];

Cite this circuit

MIT
quantumcomputer.dev. "Quantum Teleportation". quantumcomputer.dev/circuits/quantum-teleportation. 2026.