pygsti.tools.create_count_vec_dict

pygsti.tools.create_count_vec_dict(spamLabels, dataset, gatestring_list)

Create a count-vector dictionary that is useful for speeding up multiple evaluations of logl(...). The returned dictionary has keys that are spam labels and values that are numpy vectors containing the dataset counts for that spam label for each gate string in gatestring_list.

Parameters:
  • spamLabels (list of strings) – List of the spam labels to include as keys in returned dict.
  • dataset (DataSet) – The dataset to extract counts from.
  • gatestring_list (list of (tuples or GateStrings)) – List of the gate strings to extract counts for, which determines the ordering of the counts within each dictionary value.
Returns:

as described above.

Return type:

dict