qbraid.passes.qasm.contains_feedforward
- contains_feedforward(program)[source]
Check whether an unrolled OpenQASM program still contains an
iforswitch.Pass
QasmModule.unrolled_ast, not the original program: unrolling resolvesifandswitchstatements on compile-time constants. It keeps anyifon abit, though, even one never measured; usebranches_on_measurement()on the unrolled program to tell those apart.- Return type:
bool