Skip to content

Commit

Permalink
Fixed marginal_counts (qiskit-community#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
Helena Zhang authored and chriseclectic committed Jun 17, 2020
1 parent 2da8130 commit b23ca9e
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 b23ca9e

Please sign in to comment.