pygsti.protocols.scarab.calculate_mirror_benchmark_results#
- calculate_mirror_benchmark_results(unmirrored_design, mirrored_data, include_dropped_gates=False, bootstrap=True, num_bootstraps=50, rand_state=None, verbose=False)#
Create a dataframe from MCFE data and edesigns.
- Parameters:
unmirrored_design (pygsti.protocols.protocol.FreeformDesign) – Edesign containing the circuits whose process fidelities are to be estimated.
mirrored_data (pygsti.protocols.protocol.ProtocolData) – Data object containing the full mirror edesign and the outcome counts for each circuit in the full mirror edesign.
include_dropped_gates (bool) – Whether to include the number of gates dropped from each subcircuit during subcircuit creation. This flag should be set to False for noise benchmark and fullstack benchmark analysis, but can be set to True for subcircuit benchmark analysis. Default is False.
bootstrap (bool) – Toggle the calculation of error bars from bootstrapped process fidelity calculations. If True, error bars are calculated. If False, error bars are not calculated.
num_bootstraps (int) – Number of samples to draw from the bootstrapped process fidelity calculations. This argument is ignored if ‘bootstrap’ is False.
rand_state (np.random.RandomState) – random state used to seed bootstrapping. If ‘bootstrap’ is set to False, this argument is ignored.
verbose (bool) – Toggle print statements with debug information. If True, print statements are turned on. If False, print statements are omitted.
- Returns:
A VBDataFrame whose dataframe contains calculated MCFE values and circuit statistics.
- Return type: