Skip to main content
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)

Execute the QIR program using the qir-runner command line tool:
$ qir-runner -f bell.bc
https://github.com/qBraid/qbraid-qir/tree/main/test-containers