Skip to content

bloqade.qasm2.passes.unroll_if.UnrollIfs

← Module overview

classUnrollIfssource

bloqade.qasm2.passes.unroll_if.UnrollIfs

Bases: Pass

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

class UnrollIfs

methodunsafe_runsource

bloqade.qasm2.passes.unroll_if.UnrollIfs.unsafe_run

def unsafe_run(mt: ir.Method)

Parameters

NameTypeDescription
mtir.Method
source