braket.device_schema.jaqcd_device_action_properties module

class braket.device_schema.jaqcd_device_action_properties.ResultType[source]

Bases: pydantic.main.BaseModel

This class provides the result type for a quantum task to return.

name

name of the result type

observables

supported result types for this result type.

minShots

min shots for the results

maxShots

max shots for the results

Examples

>>> import json
>>> input_json = {
...     "name": "resultType1",
...     "observables": ["observable1"],
...     "minShots": 0,
...     "maxShots": 4,
... }
>>> ResultType.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.

name: str = None
observables: Optional[List[str]] = None
minShots: Optional[int] = None
maxShots: Optional[int] = None
class braket.device_schema.jaqcd_device_action_properties.JaqcdDeviceActionProperties[source]

Bases: braket.device_schema.device_action_properties.DeviceActionProperties

This defines the schema for properties for the actions that can be supported by the

jaqcd devices

supportedOperations

operations supported by the jaqcd action

supportedResultTypes

result types that are supported by the jaqcd action.

Examples

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

supportedOperations: List[str] = None
supportedResultTypes: Optional[List[ResultType]] = None