braket.device_schema.rigetti.rigetti_provider_properties_v2 module
- class braket.device_schema.rigetti.rigetti_provider_properties_v2.RigettiProviderProperties(*, braketSchemaHeader: BraketSchemaHeader = BraketSchemaHeader(name='braket.device_schema.rigetti.rigetti_provider_properties', version='2'), specs: dict[str, str | list | dict[str, str | list]])[source]
Bases:
BraketSchemaBaseThis defines the parameters common to all Rigetti devices.
- specs
Basic specifications for the device, such as gate fidelities and coherence times. More details at https://docs.api.qcs.rigetti.com/#operation/GetInstructionSetArchitecture
- Type:
dict[str, Union[str, list, dict[str, Union[str,list]]]
Examples
>>> import json >>> input_json = { ... "braketSchemaHeader": { ... "name": "braket.device_schema.rigetti.rigetti_provider_properties", ... "version": "2", ... }, ... "specs": { ... "instructionSetArchitectures": [ ... { ... "architecture": { ... "edges": [ ... { ... "node_ids": [ ... 0, ... 0 ... ] ... } ... ], ... "family": "None", ... "nodes": [ ... { ... "node_id": 0 ... } ... ] ... }, ... "benchmarks": [ ... { ... "characteristics": [ ... { ... "error": 0, ... "name": "string", ... "node_ids": [ ... 0 ... ], ... "parameter_values": [ ... 0 ... ], ... "timestamp": "2025-01-03T00:13:25Z", ... "value": 0 ... } ... ], ... "name": "string", ... "node_count": 0, ... "parameters": [ ... { ... "name": "string" ... } ... ], ... "sites": [ ... { ... "characteristics": [ ... { ... "error": 0, ... "name": "string", ... "node_ids": [ ... 0 ... ], ... "parameter_values": [ ... 0 ... ], ... "timestamp": "2025-01-03T00:13:25Z", ... "value": 0 ... } ... ], ... "node_ids": [ ... 0 ... ] ... } ... ] ... } ... ], ... "instructions": [ ... { ... "characteristics": [ ... { ... "error": 0, ... "name": "string", ... "node_ids": [ ... 0 ... ], ... "parameter_values": [ ... 0 ... ], ... "timestamp": "2025-01-03T00:13:25Z", ... "value": 0 ... } ... ], ... "name": "string", ... "node_count": 0, ... "parameters": [ ... { ... "name": "string" ... } ... ], ... "sites": [ ... { ... "characteristics": [ ... { ... "error": 0, ... "name": "string", ... "node_ids": [ ... 0 ... ], ... "parameter_values": [ ... 0 ... ], ... "timestamp": "2025-01-03T00:13:25Z", ... "value": 0 ... } ... ], ... "node_ids": [ ... 0 ... ] ... } ... ] ... } ... ], ... "name": "string" ... } ... ], ... } >>> RigettiProviderProperties.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
- specs: dict[str, str | list | dict[str, str | list]]