get_stats_by_qubit_group

forest.benchmarking.randomized_benchmarking.get_stats_by_qubit_group(qubit_groups: Sequence[Sequence[int]], expt_results: Iterable[Iterable[forest.benchmarking.observable_estimation.ExperimentResult]]) → Dict[Tuple[int, ...], Dict[str, List[List[float]]]]

Organize the results of a simultaneous RB experiment into lists of expectations and std_errs for each sequence; these lists are stored in a dict for each qubit group.

Parameters:
  • qubit_groups – disjoint groups of qubits for which we have simultaneous RB results.
  • expt_results – ExperimentResults for each ObservablesExperiment run as part of a RB experiment
Returns:

a dict whose keys are qubit groups (as tuples) with corresponding value which is an inner dict with ‘expectation’ and ‘std_err’ estimates for each group of observables measured on each sequence.