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