iqm.pulla.interface.Instruction#
- class iqm.pulla.interface.Instruction(*, name, implementation=None, qubits, args)#
Bases:
BaseModel
An instruction in a quantum circuit.
Attributes
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
name of the quantum operation
name of the implementation
names of the logical qubits the operation acts on
arguments for the operation
Methods
Convert the model to a dataclass.
- Parameters:
- to_dataclass()#
Convert the model to a dataclass.
- Return type:
CircuitOperation
- model_config: ClassVar[ConfigDict] = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].