GroupedProbabilitiesError
public enum GroupedProbabilitiesError : Error, Hashable
Errors throwed by
CircuitProbabilities.groupedProbabilities(byQubits:summarizedByQubits:roundingSummaryToDecimalPlaces:)
.
-
Throwed when
groupQubits
does not specify any qubit, i.e. it is emptyDeclaration
Swift
case groupQubitsCanNotBeAnEmptyList
-
Throwed when
groupQubits
and/orsummaryQubits
references a qubit that does not exist in the circuitDeclaration
Swift
case qubitsAreNotInsideBounds
-
Throwed when
groupQubits
and/orsummaryQubits
contains repeated valuesDeclaration
Swift
case qubitsAreNotUnique