model_functions

model_functions#

Full path: exa.core.util.model_functions

Functions for fitting models to data.

Functions

fit_cos(phase, signal)

Fits phase sweep with a cosine function.

get_decaying_oscillation_fitter([amp_guess, ...])

Generates a fitter function for exponentially decaying sinusoidal oscillation.

get_estimated_exponent(x, y)

Estimates decay constant in typical exponential decay data.

get_estimated_frequencies(x, y)

Estimates characteristic frequency in a given data set.

get_exponential_fitter([decay_estimate, ...])

Generates 1d exponential fitter function.

get_exponential_interleaved_rb_fitter(...)

Get a function for fitting an exponential RB model \(P_e = A p^{N_{Cl}} + B\) for a randomized benchmarking (RB) experiment with the given initial parameters.

get_exponential_rb_fitter(...)

Get a function for fitting an exponential RB model \(P_e = A p^{N_{Cl}} + B\) for a randomized benchmarking (RB) experiment with the given initial parameters.

get_gaussian_fitter([x0_estimate, ...])

Generate fitting function for a Gaussian curve (with optional linear slope b).

get_leakage_rb_f_state_fitter(...)

Generates 1d leakage function fitter.

get_line_fitter([slope_estimate, ...])

Returns a 1d line fitter.

get_lorentzian_dip([amplitude_guess, ...])

Generates 1d lorentzian fitter function that fits a lorenzian curve on the provided (x, y) values.

get_oscillation_fitter([period_estimate, ...])

Generates a fitter function for sinusoidal oscillation.

get_parabola_fitter([a_guess, ...])

Generates 1d parabola fitter function.

get_square_pulse_response(square_pulse_length)

Generates 1d fitter function for exponentially decaying response to a rectangular pulse.

sine_with_decay_model(time, pop_amplitude, ...)

Exponentially decaying sine.