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.

supportedOperations

Operations supported by the Blackbird action.

supportedResultTypes

Result types that are supported by the Blackbird action.

Examples

>>> import json
>>> input_json = {
...    "actionType": "braket.ir.blackbird.program",
...    "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.