from qbraid_qir.qasm3 import qasm3_to_qir program = """ OPENQASM 3; include "stdgates.inc"; qubit[2] q; bit[2] c; h q[0]; cx q[0], q[1]; measure q[0] -> c[0]; measure q[1] -> c[1]; """ module = qasm3_to_qir(program, name="bell") ir = str(module)
$ qir-runner -f bell.bc
Was this page helpful?