qml.measurements.ShotCopies

class ShotCopies(shots, copies)[source]

Bases: NamedTuple

A namedtuple that represents a shot quantity being repeated some number of times. For example, ShotCopies(10 shots x 2) indicates two executions with 10 shots each for 20 shots total.

copies

Alias for field number 1

shots

Alias for field number 0

copies

Alias for field number 1

shots

Alias for field number 0

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.