braket.ir.openqasm.program_v1 module¶
-
class
braket.ir.openqasm.program_v1.
Program
[source]¶ Bases:
braket.schema_common.schema_base.BraketSchemaBase
Root object of the OpenQASM IR.
-
braketSchemaHeader
¶ Schema header. Users do not need to set this value. Only default is allowed.
Type: BraketSchemaHeader
-
source
¶ OpenQASM source program.
Type: str
-
inputs
¶ Inputs for the OpenQASM program.
Type: Dict
Examples
>>> OpenQASMProgram(source='OPENQASM3.0; cx $0, $1')
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.
-