iqm.iqm_client.models.RunCounts

iqm.iqm_client.models.RunCounts#

class iqm.iqm_client.models.RunCounts(*, status: Status, counts_batch: list[Counts] | None = None)#

Bases: BaseModel

Measurement counts of a circuit execution job.

Attributes

model_config

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

status

current status of the job, in {'pending compilation', 'pending execution', 'ready', 'failed', 'aborted'}

counts_batch

Methods

from_dict(inp)

Parses the result from a dict.

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

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

status: Status#

current status of the job, in {'pending compilation', 'pending execution', 'ready', 'failed', 'aborted'}

static from_dict(inp: dict[str, str | dict | list | None]) RunCounts#

Parses the result from a dict.

Parameters:

inp (dict[str, str | dict | list | None]) – value to parse, has to map to RunCounts

Returns:

parsed job status

Return type:

RunCounts