pygsti.report.logl_matrix

pygsti.report.logl_matrix(gateString, dataset, gateset, strs, minProbClip=1e-06, fidPairs=None)

Computes the log-likelihood matrix of 2*( log(L)_upperbound - log(L) ) values for a base gatestring.

Parameters:
  • gateString (tuple of gate labels) – The gate sequence that is sandwiched between each effectStr and prepStr
  • dataset (DataSet) – The data used to specify frequencies and counts
  • gateset (GateSet) – The gate set used to specify the probabilities and SPAM labels
  • strs (2-tuple) – A (prepStrs,effectStrs) tuple usually generated by calling get_spam_strs(...)
  • minProbClip (float, optional) – defines the minimum probability “patch-point” of the log-likelihood function.
  • fidPairs (list, optional) – A list of (iRhoStr,iEStr) tuples specifying a subset of all the prepStr,effectStr pairs to include in the matrix. Other values are set to NaN.
Returns:

logl values corresponding to gate sequences where gateString is sandwiched between the each (effectStr,prepStr) pair.

Return type:

numpy array of shape ( len(effectStrs), len(prepStrs) )