pygsti.objects.ConfidenceRegion.get_gateset_fn_confidence_interval¶
-
ConfidenceRegion.
get_gateset_fn_confidence_interval
(fnOfGateset, eps=1e-07, returnFnVal=False, verbosity=0)¶ Compute the confidence interval for a function of a GateSet.
Parameters: - fnOfGateset (function) – A function which takes as its only argument a GateSet object. The returned confidence interval is based on linearizing this function and propagating the gateset-space confidence region.
- eps (float, optional) – Step size used when taking finite-difference derivatives of fnOfGateset.
- returnFnVal (bool, optional) – If True, return the value of fnOfGateset along with it’s confidence region half-widths.
- verbosity (int, optional) – Specifies level of detail in standard output.
Returns: - df (float or numpy array) – Half-widths of confidence intervals for each of the elements in the float or array returned by fnOfGateset. Thus, shape of df matches that returned by fnOfGateset.
- f0 (float or numpy array) – Only returned when returnFnVal == True. Value of fnOfGateset at the gate specified by gateLabel.