iqm.benchmarks.randomized_benchmarking.multi_lmfit.eval_func_single_dataset

iqm.benchmarks.randomized_benchmarking.multi_lmfit.eval_func_single_dataset#

iqm.benchmarks.randomized_benchmarking.multi_lmfit.eval_func_single_dataset(func: Callable, params: Parameters, i: int, x: ndarray) ndarray#

Returns the evaluation of the fit function for a single dataset.

Parameters:
  • func (Callable) – The fit function to evaluate.

  • params (Parameters) – lmfit Parameters object containing all parameter values.

  • i (int) – Index of the dataset (0-based).

  • x (ndarray) – Independent variable values.

Returns:

Evaluated function values for the given dataset.

Return type:

ndarray