Phase.repeat

Phase.repeat(n)

Creates an instruction with gate repeated n amount of times.

Parameters:

n (int) – Number of times to repeat the instruction

Returns:

Containing the definition.

Return type:

qiskit.circuit.Instruction

Raises:

CircuitError – If n < 1.