Note

This is the documentation for the current state of the development branch of Qiskit Experiments. The documentation or APIs here can change prior to being released.

FitOptions

class FitOptions(parameters, default_p0=None, default_bounds=None, **extra)[source]

Collection of fitting options.

This class is initialized with a list of parameter names used in the fit model and corresponding default values provided by users.

This class is hashable, and generates fitter keyword arguments.

Attributes

FitOptions.bounds

Return bounds dictionary.

FitOptions.fitter_opts

Return fitter options dictionary.

FitOptions.options

Generate keyword arguments of the curve fitter.

FitOptions.p0

Return initial guess dictionary.

Methods

FitOptions.add_extra_options(**kwargs)

Add more fitter options.

FitOptions.copy()

Create copy of this option.