DensityMatrixError
public enum DensityMatrixError : Error, Hashable
Errors throwed by Circuit.densityMatrix(withInitialState:)
-
Throwed if
operatorthrowserrorDeclaration
Swift
case operatorThrowedError(operator: QuantumOperator, error: QuantumOperatorError) -
Throwed when the resulting density matrix is not a valid: its eigenvalues do not add to one
Declaration
Swift
case resultingDensityMatrixEigenvaluesDoesNotAddUpToOne -
Throwed when the resulting density matrix is not a valid: it is not hermitian
Declaration
Swift
case resultingDensityMatrixIsNotHermitian -
Throwed when the resulting density matrix is not a valid: at least one of its eigenvalues is negative
Declaration
Swift
case resultingDensityMatrixWithNegativeEigenvalues -
Throwed if it was not possible to get the eigenvalues for the resulting density matrix
Declaration
Swift
case unableToComputeResultingDensityMatrixEigenvalues
DensityMatrixError Enumeration Reference