iqm.iqm_client.models.RunStatus#

class iqm.iqm_client.models.RunStatus(*, status: Status, message: str | None = None, warnings: list[str] | None = None)#

Bases: BaseModel

Status 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'}

message

if the job failed, an error message

warnings

list of warning messages

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'}

message: str | None#

if the job failed, an error message

warnings: list[str] | None#

list of warning messages

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

Parses the result from a dict.

Parameters:

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

Returns:

parsed job status

Return type:

RunStatus