NoiseError
public enum NoiseError : Error, Hashable
Errors throwed while acting on a Noise operator in a NoiseCircuit
-
Throwed if any matrix in the noise operator is not square
Declaration
Swift
case noiseMatricesAreNotSquare -
Throwed when noise operator has not
matricesDeclaration
Swift
case noiseMatricesCanNotBeAnEmptyList -
Throwed if any matrix in the noise operator does not have the same number of rows that the others
Declaration
Swift
case noiseMatricesDoNotHaveSameRowCount -
Throwed when addition of adjointed noise matrices by themselves is not equal to identity matrix
Declaration
Swift
case noiseMatricesDoNotSatisfyIdentity -
Throwed when the number of rows in any matrix used to build a noise operator is not a power of 2
Declaration
Swift
case noiseMatricesRowCountHasToBeAPowerOfTwo -
Throwed when the noise probability is not between [0…1]
Declaration
Swift
case noiseProbabilityHasToBeBetweenZeroAndOne
NoiseError Enumeration Reference