iqm.benchmarks.randomized_benchmarking.multi_lmfit

iqm.benchmarks.randomized_benchmarking.multi_lmfit#

Lmfit for multiple datasets, generalized and extended version of the shown example in the lmfit documentation: https://lmfit.github.io/lmfit-py/examples/example_fit_multi_datasets.html#sphx-glr-examples-example-fit-multi-datasets-py

Functions

create_multi_dataset_params(func, data[, ...])

Generates lmfit Parameter object with parameters for each line to fit

eval_func_single_dataset(func, params, i, x)

Returns the evaluation of the fit function for a single dataset

get_param_names_from_func_signature(func)

Gets the function parameter names from its signature

multi_dataset_residual(params, x, data, func)

Calculate total residual for fits of func to several data sets.