interaction_validator
InteractionValidator
Bases: Validator
Source code in opensquirrel/passes/validator/interaction_validator.py
validate(ir)
Check if the circuit interactions faciliate a 1-to-1 mapping to the target hardware.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ir
|
IR
|
The intermediate representation of the circuit to be checked. |
required |
Raises:
Type | Description |
---|---|
ValueError
|
If the circuit can't be mapped to the target hardware. |