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

Fixed marginal_counts #409

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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