SpecificationValidator
- class braket.emulation.passes.generic.specification_validator.SpecificationValidator(device_supported_specifications)[source]
Bases:
ValidationPassA validator that checks whether or not the device supports the Specification.
- Parameters:
device_supported_specifications (
Circuit|SerializableProgram|ProgramSet|Program|ProgramSet|AnalogHamiltonianSimulation|PulseSequence) – The device.properties.action dictionary.- Raises:
ValueError – The task specification is not supported.
- validate(circuit)[source]
Checks that the input matches device specifications.
- Parameters:
circuit (
Circuit|SerializableProgram|ProgramSet|Program|ProgramSet|AnalogHamiltonianSimulation|PulseSequence) – The Braket circuit whose qubit count to validate.- Raises:
ValueError – If the number of qubits used in the circuit exceeds the qubit_count.
- Return type:
None