API Reference
Program.
if_then
If the classical register at index classical reg is 1, run if_program, else run else_program.
Equivalent to the following construction:
The Quil Program with the branching instructions added.
Program