Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Commit

Permalink
Fixed marginal_counts (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
Helena Zhang authored May 21, 2020
1 parent be9b1f8 commit fcac778
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/ignis/verification/tomography/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def marginal_counts(counts: Dict[str, int],

# Check if we do not need to marginalize. In this case we just trim
# whitespace from count keys
if num_qubits == len(meas_qubits) or (meas_qubits is True):
if (meas_qubits is True) or (num_qubits == len(meas_qubits)):
ret = {}
for key, val in counts.items():
key = key.replace(' ', '')
Expand Down

0 comments on commit fcac778

Please sign in to comment.