qrunch.quantum.measurement.shots_per_group

Module for the ShotsPerGroup class, which is a temporary deprecation class for the shots argument.

Classes

ShotsPerGroup

Temporary class for specifying how many shots to use for each measurement group.

class ShotsPerGroup

Bases: object

Temporary class for specifying how many shots to use for each measurement group.

This is a temporary deprecation class for the shots argument of the Estimator.run method, which is being replaced by the shots argument. The shots argument specified how many shots to use for each measurement group, while the shots argument specifies how many shots to use in total for all measurement groups together. The ShotsPerGroup class can be used to specify how many shots to use for each measurement group when using the shots argument.

__init__(shots_per_group: int) None
Parameters:

shots_per_group (int)

Return type:

None

get_shots(number_of_groups: int) int

Get the total number of shots to use for all measurement groups together.

Parameters:

number_of_groups (int)

Return type:

int

shots_per_group: int