Program.wrap_in_numshots_loop

Program.wrap_in_numshots_loop(shots)[source]

Wraps a Quil program in a loop that re-runs the same program many times.

Note: this function is a prototype of what will exist in the future when users will be responsible for writing this loop instead of having it happen automatically.

Parameters:shots (int) – Number of iterations to loop through.