qat.ir.gates.operation module

class Barrier(**data)

Bases: QubitInstruction

A barrier is a software construct that serves two purposes: #. Instructs the compiler to not optimize across the barrier (e.g. squashing of gates) #. Instructs the scheduler to synchronize targetted qubits up until this point.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

inst: Literal['Barrier']
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'ser_json_inf_nan': 'constants', 'use_enum_values': False, 'validate_assignment': True}

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

qubits: list[Annotated[int]]
class Measure(**data)

Bases: QubitInstruction

Instructs a measurement to be taken on the given qubit.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

clbit: Annotated[int]
inst: Literal['Measure']
mode: AcquireMode
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'ser_json_inf_nan': 'constants', 'use_enum_values': False, 'validate_assignment': True}

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

qubit: Annotated[int]
property qubits
class Reset(**data)

Bases: QubitInstruction

Instructs a qubit to be reset to it’s lowest energy (\(|0>\)) state.

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

inst: Literal['Reset']
model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'ser_json_inf_nan': 'constants', 'use_enum_values': False, 'validate_assignment': True}

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

qubit: Annotated[int]
property qubits