braket.device_schema.jaqcd_device_action_properties module

class braket.device_schema.jaqcd_device_action_properties.JaqcdDeviceActionProperties(*, version: List[str], actionType: ConstrainedStrValue, supportedOperations: List[str], supportedResultTypes: List[ResultType] | None = None, disabledQubitRewiringSupported: bool | None = None)[source]

Bases: DeviceActionProperties

Defines the schema for properties for the actions that can be supported by JAQCD devices.

supportedOperations

Operations supported by the JAQCD action.

Type:

List[str]

supportedResultTypes

Result types that are supported by the JAQCD action.

Type:

List[braket.device_schema.result_type.ResultType] | None

disabledQubitRewiringSupported

Whether the device supports the ability to run circuits with the exact qubits chosen, without any rewiring downstream.

Type:

bool | None

Examples

>>> import json
>>> input_json = {
...    "actionType": "braket.ir.jaqcd.program",
...    "version": ["1"],
...    "supportedOperations": ["x", "y"],
...    "supportedResultTypes": [{
...         "name": "resultType1",
...         "observables": ["observable1"],
...         "minShots": 0,
...         "maxShots": 4,
...     }],
...    "disabledQubitRewiringSupported": True
... }
>>> JaqcdDeviceActionProperties.parse_raw(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.

actionType: ConstrainedStrValue
supportedOperations: List[str]
supportedResultTypes: List[ResultType] | None
disabledQubitRewiringSupported: bool | None