braket.ir.openqasm.modifiers module

class braket.ir.openqasm.modifiers.Control(*, name: ConstrainedStrValue, max_qubits: int | None = None)[source]

Bases: BaseModel

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

Raises ValidationError if the input data cannot be parsed to form a valid model.

name: ConstrainedStrValue
max_qubits: int | None
class braket.ir.openqasm.modifiers.NegControl(*, name: ConstrainedStrValue, max_qubits: int | None = None)[source]

Bases: BaseModel

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

Raises ValidationError if the input data cannot be parsed to form a valid model.

name: ConstrainedStrValue
max_qubits: int | None
class braket.ir.openqasm.modifiers.ExponentType(value)[source]

Bases: str, Enum

An enumeration.

INT = 'int'
FLOAT = 'float'
class braket.ir.openqasm.modifiers.Power(*, name: ConstrainedStrValue, exponent_types: List[ExponentType])[source]

Bases: BaseModel

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

Raises ValidationError if the input data cannot be parsed to form a valid model.

name: ConstrainedStrValue
exponent_types: List[ExponentType]
class braket.ir.openqasm.modifiers.Inverse(*, name: ConstrainedStrValue)[source]

Bases: BaseModel

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

Raises ValidationError if the input data cannot be parsed to form a valid model.

name: ConstrainedStrValue