OPENQASM 3.0; include "stdgates.inc"; // From the example's text: two qubit arguments and one allocated; custom X, H, CX (control first, as its name says) and Rx. qubit[3] q; x q[0]; h q[1]; cx q[2], q[0]; cx q[1], q[2]; rx(0.5) q[0];