MakeDensityMatrixError
public enum MakeDensityMatrixError : Error
Errors throwed by CircuitDensityMatrixFactory.makeDensityMatrix(matrix:)
-
Throwed when
matrixis not a valid density matrix: its eigenvalues do not add to oneDeclaration
Swift
case matrixEigenvaluesDoesNotAddUpToOne -
Throwed when
matrixis not a valid density matrix: it is not hermitianDeclaration
Swift
case matrixIsNotHermitian -
Throwed when
matrixis 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
matrixDeclaration
Swift
case unableToComputeMatrixEigenvalues
MakeDensityMatrixError Enumeration Reference