qnet.algebra.core.exceptions module¶
Exceptions and Errors raised by QNET
Summary¶
Exceptions:
AlgebraError |
Base class for all algebraic errors |
AlgebraException |
Base class for all algebraic exceptions |
BadLiouvillianError |
Raised when a Liouvillian is not of standard Lindblad form. |
BasisNotSetError |
Raised if the basis or a Hilbert space dimension is unavailable |
CannotConvertToSLH |
Raised when a circuit algebra object cannot be converted to SLH |
CannotEliminateAutomatically |
Raised when attempted automatic adiabatic elimination fails. |
CannotSimplify |
Raised when a rule cannot further simplify an expression |
CannotSymbolicallyDiagonalize |
Matrix cannot be diagonalized analytically. |
CannotVisualize |
Raised when a circuit cannot be visually represented. |
IncompatibleBlockStructures |
Raised for invalid block-decomposition |
InfiniteSumError |
Raised when expanding a sum into an infinite number of terms |
NoConjugateMatrix |
Raised when entries of Matrix have no defined conjugate |
NonSquareMatrix |
Raised when a Matrix fails to be square |
OverlappingSpaces |
Raised when objects fail to be in separate Hilbert spaces. |
SpaceTooLargeError |
Raised when objects fail to be have overlapping Hilbert spaces. |
UnequalSpaces |
Raised when objects fail to be in the same Hilbert space. |
WrongCDimError |
Raised for mismatched channel number in circuit series |
__all__: AlgebraError, AlgebraException, BadLiouvillianError, BasisNotSetError, CannotConvertToSLH, CannotEliminateAutomatically, CannotSimplify, CannotSymbolicallyDiagonalize, CannotVisualize, IncompatibleBlockStructures, InfiniteSumError, NoConjugateMatrix, NonSquareMatrix, OverlappingSpaces, SpaceTooLargeError, UnequalSpaces, WrongCDimError
Reference¶
-
exception
qnet.algebra.core.exceptions.AlgebraException[source]¶ Bases:
ExceptionBase class for all algebraic exceptions
-
exception
qnet.algebra.core.exceptions.AlgebraError[source]¶ Bases:
qnet.algebra.core.exceptions.AlgebraExceptionBase class for all algebraic errors
-
exception
qnet.algebra.core.exceptions.InfiniteSumError[source]¶ Bases:
qnet.algebra.core.exceptions.AlgebraErrorRaised when expanding a sum into an infinite number of terms
-
exception
qnet.algebra.core.exceptions.CannotSimplify[source]¶ Bases:
qnet.algebra.core.exceptions.AlgebraExceptionRaised when a rule cannot further simplify an expression
-
exception
qnet.algebra.core.exceptions.CannotConvertToSLH[source]¶ Bases:
qnet.algebra.core.exceptions.AlgebraExceptionRaised when a circuit algebra object cannot be converted to SLH
-
exception
qnet.algebra.core.exceptions.CannotVisualize[source]¶ Bases:
qnet.algebra.core.exceptions.AlgebraExceptionRaised when a circuit cannot be visually represented.
-
exception
qnet.algebra.core.exceptions.WrongCDimError[source]¶ Bases:
qnet.algebra.core.exceptions.AlgebraErrorRaised for mismatched channel number in circuit series
-
exception
qnet.algebra.core.exceptions.IncompatibleBlockStructures[source]¶ Bases:
qnet.algebra.core.exceptions.AlgebraErrorRaised for invalid block-decomposition
This is raised when a circuit decomposition into a block-structure is requested that is icompatible with the actual block structure of the circuit expression.
-
exception
qnet.algebra.core.exceptions.CannotEliminateAutomatically[source]¶ Bases:
qnet.algebra.core.exceptions.AlgebraErrorRaised when attempted automatic adiabatic elimination fails.
-
exception
qnet.algebra.core.exceptions.BasisNotSetError[source]¶ Bases:
qnet.algebra.core.exceptions.AlgebraErrorRaised if the basis or a Hilbert space dimension is unavailable
-
exception
qnet.algebra.core.exceptions.UnequalSpaces[source]¶ Bases:
qnet.algebra.core.exceptions.AlgebraErrorRaised when objects fail to be in the same Hilbert space.
This happens for example when trying to add two states from different Hilbert spaces.
-
exception
qnet.algebra.core.exceptions.OverlappingSpaces[source]¶ Bases:
qnet.algebra.core.exceptions.AlgebraErrorRaised when objects fail to be in separate Hilbert spaces.
-
exception
qnet.algebra.core.exceptions.SpaceTooLargeError[source]¶ Bases:
qnet.algebra.core.exceptions.AlgebraErrorRaised when objects fail to be have overlapping Hilbert spaces.
-
exception
qnet.algebra.core.exceptions.CannotSymbolicallyDiagonalize[source]¶ Bases:
qnet.algebra.core.exceptions.AlgebraExceptionMatrix cannot be diagonalized analytically.
Signals that a fallback to numerical diagonalization is required.
-
exception
qnet.algebra.core.exceptions.BadLiouvillianError[source]¶ Bases:
qnet.algebra.core.exceptions.AlgebraErrorRaised when a Liouvillian is not of standard Lindblad form.
-
exception
qnet.algebra.core.exceptions.NonSquareMatrix[source]¶ Bases:
qnet.algebra.core.exceptions.AlgebraErrorRaised when a
Matrixfails to be square
-
exception
qnet.algebra.core.exceptions.NoConjugateMatrix[source]¶ Bases:
qnet.algebra.core.exceptions.AlgebraErrorRaised when entries of
Matrixhave no defined conjugate