pygsti.objects.DataSet.add_counts_1q

DataSet.add_counts_1q(gateString, nPlus, nMinus)
Single-qubit version of addCountsDict, for convenience when
the DataSet contains two spam labels, ‘plus’ and ‘minus’.
Parameters:
  • gateString (tuple or GateString) – A tuple of gate labels specifying the gate string or a GateString object, e.g. (‘I’,’x’)
  • nPlus (int) – The number of counts for the ‘plus’ spam label.
  • nMinus (int) – The number of counts for the ‘minus’ spam label.
Returns:

Return type:

None