qrunch.quantum.groupers.shot_distributors.homogeneous_shot_distributor
Module containing the IdentityShotDistributor, which distributes shots equally among groups.
Classes
Represent a distribution strategy where shots are distributed equally among groups. |
- class HomogeneousShotDistributor
Bases:
ShotDistributorRepresent a distribution strategy where shots are distributed equally among groups.
- __init__(*args, **kwargs)
- distribute_shots(groups: Sequence[PartialMeasurementGroup], total_shots: int | None) tuple[MeasurementGroup, ...]
Distribute shots equally among the groups.
- Parameters:
groups (Sequence[PartialMeasurementGroup]) – A list of Hermitian Pauli sum groups.
total_shots (int | None) – The total number of measurement shots to allocate.
- Return type:
tuple[MeasurementGroup, …]