MakeStatevectorError
public enum MakeStatevectorError : Error
Errors throwed by CircuitStatevectorFactory.makeStatevector(vector:)
-
Throwed when
vectoris not validDeclaration
Swift
case vectorAdditionOfSquareModulusIsNotEqualToOne -
Throwed when the length of
vectoris not a power of 2. Anvectorrepresents all possible qubit combinations, this is (qubitCount)^2Declaration
Swift
case vectorCountHasToBeAPowerOfTwo
MakeStatevectorError Enumeration Reference