braket.task_result.rigetti_metadata_v1 module

class braket.task_result.rigetti_metadata_v1.NativeQuilMetadata[source]

Bases: pydantic.main.BaseModel

Schema to hold native quil metadata returned by Rigetti after compilation.

Examples

>>> NativeQuilMetadata(finalRewiring=[32,21],
                      gateDepth=5,
                      gateVolume=6,
                      multiQubitGateDepth=1,
                      programDuration=300.1,
                      programFidelity=0.8989,
                      qpuRuntimeEstimation=191.21,
                      topologicalSwaps=0)

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.

class braket.task_result.rigetti_metadata_v1.RigettiMetadata[source]

Bases: braket.schema_common.schema_base.BraketSchemaBase

The Rigetti metadata result schema.

braketSchemaHeader

Schema header. Users do not need to set this value. Only default is allowed.

Type:BraketSchemaHeader
nativeQuilMetadata
Type:NativeQuilMetadata
program

The compiled program executed on the QPU

Type:str

Examples

>>> quil_metadata = NativeQuilMetadata(finalRewiring=[32,21],
                                      gateDepth=5,
                                      gateVolume=6,
                                      multiQubitGateDepth=1,
                                      programDuration=300.1,
                                      programFidelity=0.8989,
                                      qpuRuntimeEstimation=191.21,
                                      topologicalSwaps=0)
>>> RigettiMetadata(program="DECLARE ro BIT[2]", nativeQuilMetadata=quil_metadata)

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.