braket.device_schema.xanadu.xanadu_device_parameters_v1 module

class braket.device_schema.xanadu.xanadu_device_parameters_v1.XanaduDeviceParameters[source]

Bases: braket.schema_common.schema_base.BraketSchemaBase

This defines the parameters common to all the Xanadu devices.

paradigmParameters

Parameters that are common to photonic devices

gateParameters

A dictionary of gate parameters to two numbers representing the lower and upper bound for each parameter.

target

Device name

Examples

>>> import json
>>> input_json = {
...    "braketSchemaHeader": {
...        "name": "braket.device_schema.xanadu.xanadu_device_parameters",
...        "version": "1",
...    },
... }
>>> XanaduDeviceParameters.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.