UnitaryError
public enum UnitaryError : Error, Hashable
Errors throwed by Circuit.unitary(withQubitCount:)
-
Throwed when the circuit has no gate from which to produce an unitary matrix
Declaration
Swift
case circuitCanNotBeAnEmptyList -
Throwed if
gatethrowserrorDeclaration
Swift
case gateThrowedError(gate: Gate, error: QuantumOperatorError) -
Throwed when the resulting matrix lost too much precision after applying
gatesDeclaration
Swift
case resultingMatrixIsNotUnitary
UnitaryError Enumeration Reference