Skip to content

Qasm3 expr to py

Rewrite QASM3 expression dialect statements into py/math dialect equivalents.

QASM3ExprToPy

Bases: RewriteRule


              flowchart TD
              bloqade.squin.rewrite.qasm3.qasm3_expr_to_py.QASM3ExprToPy[QASM3ExprToPy]

              

              click bloqade.squin.rewrite.qasm3.qasm3_expr_to_py.QASM3ExprToPy href "" "bloqade.squin.rewrite.qasm3.qasm3_expr_to_py.QASM3ExprToPy"
            

Rewrite QASM3 expression statements to their py/math dialect equivalents.

This mirrors the QASM2Py rewrite rule but for the QASM3 expression dialect.