StatevectorError
public enum StatevectorError : Error, Hashable
Errors throwed by Circuit.statevector(withInitialState:)
-
Throwed if
gatethrowserrorDeclaration
Swift
case gateThrowedError(gate: Gate, error: QuantumOperatorError) -
Throwed when the resulting state vector lost too much precision after applying
gatesDeclaration
Swift
case resultingStatevectorAdditionOfSquareModulusIsNotEqualToOne
StatevectorError Enumeration Reference