pygsti.report.total_count_matrix

pygsti.report.total_count_matrix(gateString, dataset, strs, fidPairs=None)

Computes the total count matrix 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 the counts
  • strs (2-tuple) – A (prepStrs,effectStrs) tuple usually generated by calling get_spam_strs(...)
  • 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:

total count values (sum of count values for each SPAM label) corresponding to gate sequences where gateString is sandwiched between the specified set of N prepSpec and M effectSpec gate strings.

Return type:

numpy array of shape (M,N)