braket.device_schema.oqc.oqc_device_parameters_v1 module

class braket.device_schema.oqc.oqc_device_parameters_v1.OqcDeviceParameters(*, braketSchemaHeader: BraketSchemaHeader = BraketSchemaHeader(name='braket.device_schema.oqc.oqc_device_parameters', version='1'), paradigmParameters: GateModelParameters)[source]

Bases: BraketSchemaBase

This defines the parameters common to all the OQC devices.

paradigmParameters

Parameters that are common to gatemodel paradigm

Type:

braket.device_schema.gate_model_parameters_v1.GateModelParameters

Examples

>>> import json
>>> input_json = {
...    "braketSchemaHeader": {
...        "name": "braket.device_schema.oqc.oqc_device_parameters",
...        "version": "1",
...    },
...    "paradigmParameters": {"braketSchemaHeader": {
...        "name": "braket.device_schema.gate_model_parameters",
...        "version": "1",
...    },"qubitCount": 1},
... }
>>> OqcDeviceParameters.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.

braketSchemaHeader: BraketSchemaHeader
paradigmParameters: GateModelParameters