iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.exponential_rb

Contents

iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.exponential_rb#

iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.exponential_rb(depths: ndarray, depolarization_probability: float, offset: float, amplitude: float) ndarray#

Fit function for interleaved/non-interleaved RB

Parameters:
  • depths (np.ndarray) – the depths of the RB experiment

  • depolarization_probability (float) – the depolarization value (1-p) of the RB decay

  • offset (float) – the offset of the RB decay

  • amplitude (float) – the amplitude of the RB decay

Returns:

the exponential fit function

Return type:

np.ndarray