QubitCountValidator
- class braket.emulation.passes.circuit_passes.qubit_count_validator.QubitCountValidator(qubit_count)[source]
Bases:
ValidationPassA QubitCountValidator instance validates that a circuit does not use more qubits than available on a device.
- Parameters:
qubit_count (
int) – The number of qubits on the device- Raises:
ValueError – If the circuit uses more qubits than available on a device.
- validate(circuit)[source]
Checks that the number of qubits used in this circuit does not exceed this validator’s qubit_count max.
- Parameters:
circuit (
Circuit|ProgramSet) – 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