get_stats_by_qubit¶
-
forest.benchmarking.qubit_spectroscopy.get_stats_by_qubit(expt_results: List[List[forest.benchmarking.observable_estimation.ExperimentResult]]) → Dict[int, Dict[str, List[float]]]¶ Organize the mean and std_err of a single-observable experiment by qubit.
Each individual experiment result is assumed to consist of a single qubit observable. The inner list of observables should be a group of such experiments acting on different qubits. The outer list dictates the order of the returned statistics for each qubit. For example, in a T1 experiment the outer list of results is indexed by increasing time; the returned statistics will also be arranged in order of increasing time for each qubit separately.
Parameters: expt_results – Returns: a dictionary indexed by qubit label, where each value is itself a dictionary with ‘expectation’ and ‘std_err’ values for the given qubit.