calculate_prob_est_and_err¶
-
forest.benchmarking.quantum_volume.calculate_prob_est_and_err(num_heavy: int, num_circuits: int, num_shots: int) → Tuple[float, float]¶ Helper to calculate the estimate for the probability of sampling a heavy output at a particular depth as well as the 2 sigma one-sided confidence interval on this estimate.
Parameters: - num_heavy – total number of heavy outputs sampled at particular depth across all circuits
- num_circuits – the total number of depth=width model circuits whose output was sampled
- num_shots – the total number of shots taken for each circuit
Returns: estimate for the probability of sampling a heavy output at a particular depth as well as the 2 sigma one-sided confidence interval on this estimate.