iqm.pulla.interface.Circuit#

class iqm.pulla.interface.Circuit(*, name, instructions, metadata=None)#

Bases: BaseModel

Quantum circuit to be executed.

Attributes

model_config

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

name

name of the circuit

instructions

instructions comprising the circuit

metadata

arbitrary metadata associated with the circuit

Methods

to_dataclass()

Convert the model to a dataclass.

Parameters:
name: str#

name of the circuit

instructions: tuple[Instruction, ...]#

instructions comprising the circuit

metadata: dict[str, Any] | None#

arbitrary metadata associated with the circuit

to_dataclass()#

Convert the model to a dataclass.

Return type:

Circuit

model_config: ClassVar[ConfigDict] = {}#

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