MakeDensityMatrixError
public enum MakeDensityMatrixError : Error
Errors throwed by CircuitDensityMatrixFactory.makeDensityMatrix(matrix:)
-
Throwed when
matrix
is not a valid density matrix: its eigenvalues do not add to oneDeclaration
Swift
case matrixEigenvaluesDoesNotAddUpToOne
-
Throwed when
matrix
is not a valid density matrix: it is not hermitianDeclaration
Swift
case matrixIsNotHermitian
-
Throwed when
matrix
is not a valid density matrix: at least one of its eigenvalues is negativeDeclaration
Swift
case matrixWithNegativeEigenvalues
-
Throwed if it was not possible to get the eigenvalues for the given
matrix
Declaration
Swift
case unableToComputeMatrixEigenvalues