braket.device_schema.standardized_gate_model_qpu_device_properties_v1 module

class braket.device_schema.standardized_gate_model_qpu_device_properties_v1.QubitDirection[source]

Bases: str, enum.Enum

Enum for qubit direction labels for two-qubit fidelity details

CONTROL = 'control'
TARGET = 'target'
class braket.device_schema.standardized_gate_model_qpu_device_properties_v1.FidelityType[source]

Bases: pydantic.main.BaseModel

Fidelity measurement types .. attribute:: name

description of the fidelity measurement

type:str
description

Optional description for how the fidelity measurement was performed

Type:Optional[str]

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.device_schema.standardized_gate_model_qpu_device_properties_v1.GateFidelity2Q[source]

Bases: pydantic.main.BaseModel

Describes the fidelity of two-qubit pairing .. attribute:: direction

Describes which qubit is control/target for the pair. If direction is None the pair is considered bi-directional.

type:Optional[Dict[QubitDirection, int]]
gateName

the 2-qubit gate that the fidelity measurement was performed on

Type:str
fidelity

the fidelity value

Type:float
standardError

Describes the error value on the fidelity measurement

Type:Optional[float]
fidelityType

The fidelity measurement technique used for the presented value

Type:FidelityType

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.device_schema.standardized_gate_model_qpu_device_properties_v1.TwoQubitProperties[source]

Bases: pydantic.main.BaseModel

The standard two-qubit calibration details for a quantum hardware provider .. attribute:: twoQubitGateFidelity

two qubit fidelity properties

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.device_schema.standardized_gate_model_qpu_device_properties_v1.Fidelity1Q[source]

Bases: pydantic.main.BaseModel

Describes one qubit fidelity measured on a qubit .. attribute:: fidelityType

The fidelity measurement technique used for the presented value

type:FidelityType
fidelity

The measured fidelity value

Type:float
standardError

on the measurement

Type:Optional[float]

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.device_schema.standardized_gate_model_qpu_device_properties_v1.CoherenceTime[source]

Bases: pydantic.main.BaseModel

The coherence time values provided for the device .. attribute:: value

The coherence time value

type:str
standardError

The error/confidence in coherence measurement provided

Type:str
unit

The unit for the described value

Type:str

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.device_schema.standardized_gate_model_qpu_device_properties_v1.OneQubitProperties[source]

Bases: pydantic.main.BaseModel

The standard one-qubit calibration details for a quantum hardware provider .. attribute:: T1

The T1 decoherence/relaxation time data structure
T2

The T2 coherence/dephasing time

oneQubitFidelity

one qubit fidelity properties

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.device_schema.standardized_gate_model_qpu_device_properties_v1.StandardizedGateModelQpuDeviceProperties[source]

Bases: braket.schema_common.schema_base.BraketSchemaBase

Braket standarized gate model device qpu properties for the given quantum hardware

oneQubitProperties

Dictionary describing a qubit identifier (ex: ‘1’), to the calibration property set

Type:Dict[str, OneQubitProperties]
twoQubitProperties

Dictionary describing the two-qubit identifier (ex: ‘0-1’), to the calibration property set

Type:Dict[str, TwoQubitProperties]

Examples

>>> import json
>>> valid_input = {
...         "braketSchemaHeader": {
...             "name":         ...             "braket.device_schema.standardized_gate_model_qpu_device_properties",
...             "version": "1",
...         },
...         "oneQubitProperties": {
...             "0": {
...                 "T1": {"value": 28.9, "standardError": 0.01, "unit": "us"},
...                 "T2": {"value": 44.5, "standardError": 0.02, "unit": "us"},
...                 "oneQubitFidelity": [
...                     {
...                         "fidelityType": {
...                             "name": "RANDOMIZED_BENCHMARKING",
...                             "description": "uses a standard RB technique",
...                         },
...                         "fidelity": 0.9993,
...                     },
...                     {
...                         "fidelityType": {"name": "READOUT"},
...                         "fidelity": 0.903,
...                         "standardError": None,
...                     },
...                 ],
...             },
...             "1": {
...                 "T1": {"value": 28.9, "unit": "us"},
...                 "T2": {"value": 44.5, "standardError": 0.02, "unit": "us"},
...                 "oneQubitFidelity": [
...                     {
...                         "fidelityType": {"name": "RANDOMIZED_BENCHMARKING"},
...                         "fidelity": 0.9986,
...                         "standardError": None,
...                     },
...                     {
...                         "fidelityType": {"name": "READOUT"},
...                         "fidelity": 0.867,
...                         "standardError": None,
...                     },
...                 ],
...             },
...         },
...         "twoQubitProperties": {
...             "0-1": {
...                 "twoQubitGateFidelity": [
...                     {
...                         "direction": {"control": 0, "target": 1},
...                         "gateName": "CNOT",
...                         "fidelity": 0.877,
...                         "fidelityType": {"name": "INTERLEAVED_RANDOMIZED_BENCHMARKING"},
...                     }
...                 ]
...             },
...             "0-7": {
...                 "twoQubitGateFidelity": [
...                     {
...                         "direction": {"control": 0, "target": 7},
...                         "gateName": "CNOT",
...                         "fidelity": 0.877,
...                         "standardError": 0.001,
...                         "fidelityType": {"name": "INTERLEAVED_RANDOMIZED_BENCHMARKING"},
...                     }
...                 ]
...             },
...         },
...     }
>>> StandardizedGateModelQpuDeviceProperties.parse_raw_schema(json.dumps(valid_input))

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.