iqm.iqm_client.iqm_client.Metadata#

class iqm.iqm_client.iqm_client.Metadata(*, calibration_set_id=None, request, cocos_version=None, timestamps=None)#

Bases: BaseModel

Metadata describing a circuit execution job.

Attributes

model_computed_fields

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config

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

model_fields

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

calibration_set_id

ID of the calibration set used

request

copy of the original RunRequest sent to the server

cocos_version

CoCoS version used to execute the job

timestamps

Timestamps of execution progress

Methods

Parameters:
calibration_set_id: UUID | None#

ID of the calibration set used

request: RunRequest#

copy of the original RunRequest sent to the server

cocos_version: str | None#

CoCoS version used to execute the job

timestamps: dict[str, str] | None#

Timestamps of execution progress

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_config: ClassVar[ConfigDict] = {}#

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

model_fields: ClassVar[dict[str, FieldInfo]] = {'calibration_set_id': FieldInfo(annotation=Union[UUID, NoneType], required=False, default=None), 'cocos_version': FieldInfo(annotation=Union[str, NoneType], required=False, default=None), 'request': FieldInfo(annotation=RunRequest, required=True), 'timestamps': FieldInfo(annotation=Union[dict[str, str], NoneType], required=False, default=None)}#

Metadata about the fields defined on the model, mapping of field names to [FieldInfo][pydantic.fields.FieldInfo].

This replaces Model.__fields__ from Pydantic V1.