iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.fit_decay_lmfit#
- iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.fit_decay_lmfit(func: Callable, qubit_set: list[int], data: list[list[float]] | list[list[list[float]]], rb_identifier: str, simultaneous_fit_vars: list[str] | None = None, interleaved_gate_str: str | None = None) tuple[ndarray, Parameters]#
Perform a fitting routine for 0th-order (Ap^m+B) RB using lmfit.
- Parameters:
func (Callable) – the model function for fitting
data (list[list[float]] | list[list[list[float]]]) – the data to be fitted
rb_identifier (str) – the RB identifier, either “stdrb”, “irb” or “mrb”
simultaneous_fit_vars (list[str] | None) – the list of variables used to fit simultaneously
interleaved_gate_str (str | None) – the name of the interleaved gate in IRB
- Returns:
A tuple of fitting data (list of lists of average fidelities or polarizations) and MRB fit parameters
- Return type: