braket.device_schema.dwave.dwave_device_capabilities_v1 module

class braket.device_schema.dwave.dwave_device_capabilities_v1.DwaveDeviceCapabilities[source]

Bases: braket.device_schema.device_capabilities.DeviceCapabilities, braket.schema_common.schema_base.BraketSchemaBase

These are the capabilities specific to D-Wave device

provider

Properties specific to D-Wave provider

Examples

>>> import json
>>> input_json = ...{
...    "braketSchemaHeader": {
...        "name": "braket.device_schema.dwave.dwave_device_capabilities",
...        "version": "1",
...    },
...    "provider": {
...        "braketSchemaHeader": {
...            "name": "braket.device_schema.dwave.dwave_provider_properties",
...            "version": "1",
...        },
...        "annealingOffsetStep": 1.45,
...        "annealingOffsetStepPhi0": 1.45,
...        "annealingOffsetRanges": [[1.45, 1.45], [1.45, 1.45]],
...        "annealingDurationRange": [1.45, 2.45, 3],
...        "couplers": [[1, 2, 3], [1, 2, 3]],
...        "defaultAnnealingDuration": 1,
...        "defaultProgrammingThermalizationDuration": 1,
...        "defaultReadoutThermalizationDuration": 1,
...        "extendedJRange": [1, 2, 3],
...        "hGainScheduleRange": [1, 2, 3],
...        "hRange": [1, 2, 3],
...        "jRange": [1, 2, 3],
...        "maximumAnnealingSchedulePoints": 1,
...        "maximumHGainSchedulePoints": 1,
...        "perQubitCouplingRange": [1, 2, 3],
...        "programmingThermalizationDurationRange": [1, 2, 3],
...        "qubits": [1, 2, 3],
...        "qubitCount": 1,
...        "quotaConversionRate": 1,
...        "readoutThermalizationDurationRange": [1, 2, 3],
...        "taskRunDurationRange": [1, 2, 3],
...        "topology": {},
...    },
...    "service": {
...        "braketSchemaHeader": {
...            "name": "braket.device_schema.device_service_properties",
...            "version": "1",
...        },
...        "executionWindows": [
...            {
...                "executionDay": "Everyday",
...                "windowStartHour": "09:00",
...                "windowEndHour": "19:00",
...            }
...        ],
...        "shotsRange": [1, 10],
...        "deviceCost": {
...             "price": 0.25,
...             "unit": "minute"
...         },
...         "deviceDocumentation": {
...             "imageUrl": "image_url",
...             "summary": "Summary on the device",
...             "externalDocumentationUrl": "exter doc link",
...         },
...         "deviceLocation": "us-east-1",
...         "updatedAt": "2020-06-16T19:28:02.869136"
...    },
...    "action": {
...        "braket.ir.annealing.problem": {
...            "actionType": "braket.ir.annealing.problem",
...            "version": ["1"],
...        }
...    },
...    "deviceParameters": {DwaveDeviceParameters.schema_json()},
... }
>>> DwaveDeviceCapabilities.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.