CircuitMeasurementCounts#
- class CircuitMeasurementCounts(*, measurement_keys, counts)#
Bases:
PydanticBaseCircuit measurement counts in histogram representation.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Module:
iqm.station_control.interface.models.circuitAttributes
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] = {'extra': 'ignore', 'ser_json_inf_nan': 'constants', 'validate_assignment': True, 'validate_default': True}#
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\).