iqm.pulla.interface.Instruction#

class iqm.pulla.interface.Instruction(*, name, implementation=None, qubits, args)#

Bases: BaseModel

An instruction in a quantum circuit.

Attributes

model_config

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

name

name of the quantum operation

implementation

name of the implementation

qubits

names of the logical qubits the operation acts on

args

arguments for the operation

Methods

to_dataclass()

Convert the model to a dataclass.

Parameters:
name: str#

name of the quantum operation

implementation: str | None#

name of the implementation

qubits: tuple[str, ...]#

names of the logical qubits the operation acts on

args: dict[str, Any]#

arguments for the operation

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