iqm.benchmarks.coherence.coherence.calculate_probabilities#
- iqm.benchmarks.coherence.coherence.calculate_probabilities(counts: dict[str, int], nqubits: int, coherence_exp: str) Tuple[List[float], int] #
Calculate the number of times ‘0’ was measured for each qubit based on the provided counts.
- Parameters:
- Returns:
- A tuple containing:
A list of occurrences of measuring ‘0’ for each qubit.
The total number of shots (measurements).
- Return type: