ProgramSetValidator
- class braket.emulation.passes.generic.program_set_validator.ProgramSetValidator(device_action)[source]
Bases:
ValidationPassA validator that checks whether or not the device supports the Specification.
- Parameters:
device_action (
dict[DeviceActionType,DeviceActionProperties]) – 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