pygsti.tools.rbtools.marginalized_success_counts#
- marginalized_success_counts(dsrow, circ, target, qubits)#
Marginalize the success counts over qubits.
- Parameters:
dsrow (_DataSetRow) – The circuit outcome data to marginalize.
circ (Circuit) – The circuit.
target (str) – The ideal outcome, e.g. “0010”.
qubits (tuple) – The qubit labels that are retained after the marginalization.
- Returns:
The number of success counts.
- Return type:
int