Skip to content

Commit

Permalink
Fix mapping bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nonhermitian authored Sep 28, 2021
1 parent d545dc7 commit 768d590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mthree/mitigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def apply_correction(self, counts, qubits, distance=None,

if isinstance(qubits, dict):
# If a mapping was given for qubits
qubits = list(qubits)
qubits = [list(qubits)]
elif not any(isinstance(qq, (list, tuple, np.ndarray, dict)) for qq in qubits):
qubits = [qubits]*len(counts)
else:
Expand Down

0 comments on commit 768d590

Please sign in to comment.