iqm.iqm_client.models.Counts#
- class iqm.iqm_client.models.Counts(*, measurement_keys: list[str], counts: dict[str, int])#
Bases:
BaseModelCircuit 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_keysis['mk_1', 'mk2']and'mk_1'measuresQB1and'mk_2'measuresQB3andQB5, thencountscould contains keys such as'010'representing shots whereQB1`, ``QB3andQB5were observed to be in the state \(|010 angle\).