braket.device_schema.blackbird_device_action_properties module
- class braket.device_schema.blackbird_device_action_properties.BlackbirdDeviceActionProperties(*, version: List[str], actionType: ConstrainedStrValue, supportedOperations: List[str], supportedResultTypes: ConstrainedListValue[ResultType])[source]
Bases:
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.
- Type:
List[str]
- supportedResultTypes
Result types that are supported by the Blackbird action.
- Type:
types.ConstrainedListValue[braket.device_schema.result_type.ResultType]
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.
- actionType: ConstrainedStrValue
- supportedOperations: List[str]
- supportedResultTypes: ConstrainedListValue[ResultType]