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 one

    Declaration

    Swift

    case matrixEigenvaluesDoesNotAddUpToOne
  • Throwed when matrix is not a valid density matrix: it is not hermitian

    Declaration

    Swift

    case matrixIsNotHermitian
  • Throwed when matrix is not a valid density matrix: at least one of its eigenvalues is negative

    Declaration

    Swift

    case matrixWithNegativeEigenvalues
  • Throwed if it was not possible to get the eigenvalues for the given matrix

    Declaration

    Swift

    case unableToComputeMatrixEigenvalues