SpecificationValidator

class braket.emulation.passes.generic.specification_validator.SpecificationValidator(device_supported_specifications)[source]

Bases: ValidationPass

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

Parameters:

device_supported_specifications (TaskSpecification) – 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) – 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