braket.device_schema.device_action_properties module

class braket.device_schema.device_action_properties.DeviceActionType[source]

Bases: str, enum.Enum

These are the actions supported by Braket.

OPENQASM = 'braket.ir.openqasm.program'
JAQCD = 'braket.ir.jaqcd.program'
BLACKBIRD = 'braket.ir.blackbird.program'
ANNEALING = 'braket.ir.annealing.problem'
class braket.device_schema.device_action_properties.DeviceActionProperties[source]

Bases: pydantic.main.BaseModel

This class defines the actions that can be performed by a device

version

List of versions for the actions the device supports

Type:List[str]
actionType

Enum for the action type. Type of the action to be performed.

Type:Union[DeviceActionType, str]

Examples

>>> import json
>>> input_json = {
...     "actionType": "braket.ir.jaqcd.program",
...     "version": ["1"],
... }
>>> DeviceActionProperties.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.