SummarizedProbabilitiesError
public enum SummarizedProbabilitiesError : Error, Hashable
Errors throwed by CircuitProbabilities.summarizedProbabilities(byQubits:)
.
-
Throwed when
qubits
references a qubit that does not exist in the circuitDeclaration
Swift
case qubitsAreNotInsideBounds
-
Throwed when
qubits
contains repeated valuesDeclaration
Swift
case qubitsAreNotUnique
-
Throwed when
qubits
does not specify any qubit, i.e. it is emptyDeclaration
Swift
case qubitsCanNotBeAnEmptyList