iqm.iqm_client.models.Counts

iqm.iqm_client.models.Counts#

class iqm.iqm_client.models.Counts(*, measurement_keys: list[str], counts: dict[str, int])#

Bases: BaseModel

Measurement results in the counts representation

Attributes

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

measurement_keys

measurement keys in the order they are concatenated to form the states in counts

counts

counts as a dictionary mapping states represented as bitstrings to the number of shots they were measured

Methods

Parameters:
model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

measurement_keys: list[str]#

measurement keys in the order they are concatenated to form the states in counts

counts: dict[str, int]#

counts as a dictionary mapping states represented as bitstrings to the number of shots they were measured