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 - Returns all loci which are available for at least one of the implementations. - Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict]. - mapping of available implementation names to information about the implementations - default implementation for the gate, used unless overridden by - override_default_implementationor unless the user requests a specific implementation for a particular gate in the circuit using- iqm.pulse.CircuitOperation.implementation- mapping of loci to implementation names that override - default_implementationfor those loci- Methods - get_default_implementation(locus)- Default implementation of this gate for the given locus. - Converts locus keys to tuples if they are encoded as strings. - 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_implementationor unless the user requests a specific implementation for a particular gate in the circuit using- iqm.pulse.CircuitOperation.implementation
 - override_default_implementation: dict[Locus, str]#
- mapping of loci to implementation names that override - default_implementationfor those loci
 - classmethod override_default_implementation_validator(value: Any) dict[tuple[str, ...], str]#
- Converts locus keys to tuples if they are encoded as strings. 
 - 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’), 
 - get_default_implementation(locus: tuple[str, ...]) str#
- Default implementation of this gate for the given locus. 
 - model_config: ClassVar[ConfigDict] = {}#
- Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict]. 
 
