braket.device_schema.oqc.oqc_provider_properties_v1 module

class braket.device_schema.oqc.oqc_provider_properties_v1.OqcProviderProperties[source]

Bases: braket.schema_common.schema_base.BraketSchemaBase

This defines the properties common to all the OQC devices.

properties

Basic specifications for the device, such as gate fidelities and coherence times.

Type:Dict[str, Dict[str, Union[int, List[int]]]]

Examples

>>> import json
>>> input_json = {
... "braketSchemaHeader": {
...     "name": "braket.device_schema.oqc.oqc_provider_properties",
...     "version": "1",
... },
... "properties": {
...     "one_qubit": {
...         "0": {
...             "T1": 12.2,
...             "T2": 13.5,
...             "fRO": 0.99,
...             "fRB": 0.98,
...             "native-gate-fidelities": [
...                 {"native-gate": "rz", "CLf": 0.99},
...                 {"native-gate": "sx", "CLf": 0.99},
...                 {"native-gate": "x", "CLf": 0.99},
...             ],
...             "EPE": 0.001,
...         },
...     },
...     "two_qubit": {
...         "0-1": {
...             "coupling": {"control_qubit": 0, "target_qubit": 1},
...             "CLf": 0.99,
...             "ECR_f": 0.99,
...         },
...     },
... },
... }
>>> OqcProviderProperties.parse_raw_schema(json.dumps(input_json))

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.