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
gate
throwserror
Declaration
Swift
case gateThrowedError(gate: Gate, error: QuantumOperatorError)
-
Throwed when the resulting matrix lost too much precision after applying
gates
Declaration
Swift
case resultingMatrixIsNotUnitary