exceptions
This module contains all custom exception used by OpenSquirrel
.
ExporterError
NoRoutingPathError
Bases: Exception
Should be raised when no routing path is available between qubits.
Source code in opensquirrel/exceptions.py
__init__(message, *args)
Init of the NoRoutingPathError
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
message
|
str
|
Error message. |
required |
UnsupportedGateError
Bases: Exception
Should be raised when a gate is not supported.
Source code in opensquirrel/exceptions.py
__init__(gate, *args)
Init of the UnsupportedGateError
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
gate
|
Any
|
Gate that is not supported. |
required |