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.Attributes
Alias for field number 1
Alias for field number 0
- copies¶
Alias for field number 1
- shots¶
Alias for field number 0
Methods
code/api/pennylane.measurements.ShotCopies
Download Python script
Download Notebook
View on GitHub