iqm.iqm_client.iqm_client.SingleQubitMapping#

class iqm.iqm_client.iqm_client.SingleQubitMapping(*, logical_name, physical_name)#

Bases: BaseModel

Mapping of a logical qubit name to a physical qubit name.

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].

logical_name

logical qubit name

physical_name

physical qubit name

Methods

Parameters:
  • logical_name (str) –

  • physical_name (str) –

logical_name: str#

logical qubit name

physical_name: str#

physical qubit name

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]] = {'logical_name': FieldInfo(annotation=str, required=True, examples=['alice']), 'physical_name': FieldInfo(annotation=str, required=True, examples=['QB1'])}#

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

This replaces Model.__fields__ from Pydantic V1.