qilisdk.digital.exceptions

Exceptions

QubitOutOfRangeError

Raised when a qubit index is outside the defined circuit range.

GateHasNoMatrixError

Raised when a gate lacks an associated matrix representation.

GateNotParameterizedError

Raised when attempting to set parameters on a non-parameterized gate.

ParametersNotEqualError

Raised when parameterized gates receive mismatched parameter values.

InvalidParameterNameError

Raised when an unknown parameter name is supplied to a gate.

UnsupportedGateError

Raised when a gate is not supported by the target backend.

Module Contents

exception QubitOutOfRangeError[source]

Bases: Exception

Raised when a qubit index is outside the defined circuit range.

Initialize self. See help(type(self)) for accurate signature.

exception GateHasNoMatrixError[source]

Bases: Exception

Raised when a gate lacks an associated matrix representation.

Initialize self. See help(type(self)) for accurate signature.

exception GateNotParameterizedError[source]

Bases: Exception

Raised when attempting to set parameters on a non-parameterized gate.

Initialize self. See help(type(self)) for accurate signature.

exception ParametersNotEqualError[source]

Bases: Exception

Raised when parameterized gates receive mismatched parameter values.

Initialize self. See help(type(self)) for accurate signature.

exception InvalidParameterNameError[source]

Bases: Exception

Raised when an unknown parameter name is supplied to a gate.

Initialize self. See help(type(self)) for accurate signature.

exception UnsupportedGateError[source]

Bases: Exception

Raised when a gate is not supported by the target backend.

Initialize self. See help(type(self)) for accurate signature.