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 gatesdepth623 views0 saves0 forks0 downloads
1OPENQASM 2.0;
2include "qelib1.inc";
3qreg q[3];
4creg c[3];
5// Prepare Bell pair
6h q[1];
7cx q[1],q[2];
8// Teleport q[0]
9cx q[0],q[1];
10h q[0];
11measure q[0] -> c[0];
12measure q[1] -> c[1];
13// Corrections
14if(c[1]==1) x q[2];
15if(c[0]==1) z q[2];
16measure q[2] -> c[2];

Cite this circuit

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