OpenQASM 3.0 Playground
Run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Bell State OPENQASM 3.0; gate h q { U(pi/2.0, 0, pi) q; } gate cx c, t { ctrl @ U(pi, 0, pi) c, t; } qubit[2] q; reset q; h q[0]; cx q[0], q[1]; measure q;