iqm.iqm_client.models.GateInfo#

class iqm.iqm_client.models.GateInfo(*, implementations: dict[str, GateImplementationInfo], default_implementation: str, override_default_implementation: dict[tuple[str, ...], str])#

Bases: BaseModel

Information about a quantum gate/operation.

Attributes

loci

Returns all loci which are available for at least one of the implementations.

model_config

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

implementations

mapping of available implementation names to information about the implementations

default_implementation

default implementation for the gate, used unless overridden by override_default_implementation or unless the user requests a specific implementation for a particular gate in the circuit using Instruction.implementation

override_default_implementation

mapping of loci to implementation names that override default_implementation for those loci

Methods

Parameters:
implementations: dict[str, GateImplementationInfo]#

mapping of available implementation names to information about the implementations

default_implementation: str#

default implementation for the gate, used unless overridden by override_default_implementation or unless the user requests a specific implementation for a particular gate in the circuit using Instruction.implementation

override_default_implementation: dict[Locus, str]#

mapping of loci to implementation names that override default_implementation for those loci

property loci: tuple[tuple[str, ...], ...]#

Returns all loci which are available for at least one of the implementations.

The loci are sorted first based on the first locus component, then the second, etc. The sorting of individual locus components is first done alphabetically based on their non-numeric part, and then components with the same non-numeric part are sorted numerically. An example of loci sorted this way would be:

(‘QB1’, ‘QB2’), (‘QB2’, ‘COMPR1’), (‘QB2’, ‘QB3’), (‘QB3’, ‘COMPR1’), (‘QB3’, ‘COMPR2’), (‘QB3’, ‘QB1’), (‘QB10’, ‘QB2’),

model_config: ClassVar[ConfigDict] = {}#

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