QuantumOperatorError
public enum QuantumOperatorError : Error, Hashable
Errors throwed while acting on a QuantumOperator in a Circuit or NoiseCircuit
-
Throwed when the number of qubits (informed or inferred) to create a circuit is 0
Declaration
Swift
case circuitQubitCountHasToBeBiggerThanZero -
Throwed when the
Gateused to create theQuantumOperatoris not validDeclaration
Swift
case gateError(error: GateError) -
Throwed when the
Noiseoperator used to create theQuantumOperatoris not validDeclaration
Swift
case noiseError(error: NoiseError) -
Throwed when an operator does not use as many qubits as its matrix is able to handle
Declaration
Swift
case operatorInputCountDoesNotMatchOperatorMatrixQubitCount -
Throwed when an operator references one or more qubits that do not exist
Declaration
Swift
case operatorInputsAreNotInBound -
Throwed when an operator references same qubit/s multiple times
Declaration
Swift
case operatorInputsAreNotUnique -
Throwed when an operator requires more qubits than the circuit actually has
Declaration
Swift
case operatorHandlesMoreQubitsThanCircuitActuallyHas
QuantumOperatorError Enumeration Reference