DiscreteLayerGenerator.count_repeats

DiscreteLayerGenerator.count_repeats(circuit, gate, qudit)[source]

Count the number of times the last gate is repeated on qudit.

Return type:

int