OPENQASM 3.0; include "stdgates.inc"; // From the benchmark's source: the textbook QFT on three qubits, qubit i measured into bit 2 - i. qubit[3] q; bit[3] c; h q[2]; cp(pi/2) q[1], q[2]; cp(pi/4) q[0], q[2]; h q[1]; cp(pi/2) q[0], q[1]; h q[0]; c[2] = measure q[0]; c[1] = measure q[1]; c[0] = measure q[2];