ProgramSetValidator

class braket.emulation.passes.generic.program_set_validator.ProgramSetValidator(device_action)[source]

Bases: ValidationPass

A validator that checks whether or not the device supports the Specification.

Parameters:

device_action (dict) – The device.properties.action dictionary.

Raises:

ValueError – The task specification is not supported.

validate(task_specification)[source]

Validates the number of executables and total program shots are valid.

Parameters:

task_specification (ProgramSet) – The Braket circuit whose qubit count to validate.

Raises:

ValueError – Too many executables or too many shots.

Return type:

None