While a classical register at index classical_reg is 1, loop q_program
Equivalent to the following construction:
- classical_reg (MemoryReferenceDesignator) – The classical register to check
- q_program (Program) – The Quil program to loop.
Return type: Returns:
The Quil Program with the loop instructions added.