SummarizedProbabilitiesError

public enum SummarizedProbabilitiesError : Error, Hashable

Errors throwed by CircuitProbabilities.summarizedProbabilities(byQubits:).

  • Throwed when qubits references a qubit that does not exist in the circuit

    Declaration

    Swift

    case qubitsAreNotInsideBounds
  • Throwed when qubits contains repeated values

    Declaration

    Swift

    case qubitsAreNotUnique
  • Throwed when qubits does not specify any qubit, i.e. it is empty

    Declaration

    Swift

    case qubitsCanNotBeAnEmptyList