braket.device_schema.blackbird_device_action_properties module

class braket.device_schema.blackbird_device_action_properties.BlackbirdDeviceActionProperties[source]

Bases: braket.device_schema.device_action_properties.DeviceActionProperties

Defines the schema for properties for the actions that can be supported by devices that accept Blackbird IR.


Operations supported by the Blackbird action.


Result types that are supported by the Blackbird action.


>>> import json
>>> input_json = {
...    "actionType": "",
...    "version": ["1"],
...    "supportedOperations": [ BSGate, XGate, ZGate],
...    "supportedResultTypes": [],
... }
>>> BlackbirdDeviceActionProperties.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.