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