pygsti.tools.chi2fns

pygsti.tools.chi2fns#

Chi-squared and related functions

Functions

chi2(model, dataset[, circuits, ...])

Computes the total (aggregate) chi^2 for a set of circuits.

chi2_approximate_hessian(model, dataset[, ...])

Compute and approximate Hessian matrix of the chi2() function.

chi2_hessian(model, dataset[, circuits, ...])

Compute the Hessian matrix of the chi2() function.

chi2_jacobian(model, dataset[, circuits, ...])

Compute the gradient of the chi^2 function computed by chi2().

chi2_per_circuit(model, dataset[, circuits, ...])

Computes the per-circuit chi^2 contributions for a set of circuits.

chialpha(alpha, model, dataset[, circuits, ...])

Compute the chi-alpha objective function.

chialpha_per_circuit(alpha, model, dataset)

Compute the per-circuit chi-alpha objective function.