pygsti.objects.ConfidenceRegion.get_gate_fn_confidence_interval

ConfidenceRegion.get_gate_fn_confidence_interval(fnOfGate, gateLabel, eps=1e-07, returnFnVal=False, verbosity=0)

Compute the confidence interval for a function of a single gate.

Parameters:
  • fnOfGate (function) – A function which takes as its only argument a gate matrix. The returned confidence interval is based on linearizing this function and propagating the gateset-space confidence region.
  • gateLabel (string) – The label specifying which gate to use in evaluations of fnOfGate.
  • eps (float, optional) – Step size used when taking finite-difference derivatives of fnOfGate.
  • returnFnVal (bool, optional) – If True, return the value of fnOfGate 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 fnOfGate. Thus, shape of df matches that returned by fnOfGate.
  • f0 (float or numpy array) – Only returned when returnFnVal == True. Value of fnOfGate at the gate specified by gateLabel.