braket.device_schema.xanadu.xanadu_provider_properties_v1 module

class braket.device_schema.xanadu.xanadu_provider_properties_v1.XanaduProviderProperties[source]

Bases: braket.schema_common.schema_base.BraketSchemaBase

This defines the parameters common to all Xanadu devices.

specs

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

Type:Dict[str, Dict[str, Dict[str, float]]]

Examples

>>> import json
>>> input_json = {
...    "braketSchemaHeader": {
...        "name": "braket.device_schema.xanadu.xanadu_provider_properties",
...        "version": "1",
...    },
...    "loop_phases": [
...        -1.5957742826142312
...    ],
...    "schmidt_number": 1.1240597475954237,
...    "common_efficiency": 0.42871142768980564,
...    "loop_efficiencies": [
...        0.8518902619448591
...    ],
...    "squeezing_parameters_mean": {
...        "low": 0.6130577606615072,
...        "high": 1.0635796125448667,
...        "medium": 0.893051739389763
...    },
...    "relative_channel_efficiencies": [
...        0.9648681625753431,
...        1.0,
...        0.973400900408643,
...    ]
...  }
>>> XanaduProviderProperties.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.