Unroll if
UnrollIfs
Bases: Pass
flowchart TD
bloqade.qasm2.passes.unroll_if.UnrollIfs[UnrollIfs]
click bloqade.qasm2.passes.unroll_if.UnrollIfs href "" "bloqade.qasm2.passes.unroll_if.UnrollIfs"
This pass lifts statements that are not UOP out of the if body and then splits whatever is left into multiple if statements so you obtain valid QASM2