I'm trying to create the teleportation circuit in IBM Qiskit Circuit Composer.
OPENQASM 2.0;
include "qelib1.inc";
qreg q[3];
creg a[3]; // should be crz
creg b[4]; // should be crx
h q[1];
cx q[1],q[2];
barrier q; //[0];
cx q[0],q[1];
h q[0];
barrier q;
measure q[0] -> a[0];
measure q[1] -> b[0];
barrier q;
This gives me the following circuit till the 3rd measurement barrier. How do I add CRX
and CRZ
gates - to obtain the circuit as shown in the picture? Also, how to change the names of the classical registers from a3
, b4
to crz
and crx
?