iqm.iqm_client.models.Counts#
- class iqm.iqm_client.models.Counts(*, measurement_keys: list[str], counts: dict[str, int])#
Bases:
BaseModel
Circuit measurement results in histogram representation.
Attributes
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Measurement keys in the order they are concatenated to form the state bitstrings in
counts
.mapping from computational basis states, represented as bitstrings, to the number of times they were observed when executing the circuit
Methods
- 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 state bitstrings in
counts
.For example, if
measurement_keys
is['mk_1', 'mk2']
and'mk_1'
measuresQB1
and'mk_2'
measuresQB3
andQB5
, thencounts
could contains keys such as'010'
representing shots whereQB1`, ``QB3
andQB5
were observed to be in the state \(|010 angle\).