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 empty

    Declaration

    Swift

    case groupQubitsCanNotBeAnEmptyList
  • Throwed when groupQubits and/or summaryQubits references a qubit that does not exist in the circuit

    Declaration

    Swift

    case qubitsAreNotInsideBounds
  • Throwed when groupQubits and/or summaryQubits contains repeated values

    Declaration

    Swift

    case qubitsAreNotUnique