Skip to content

Commit

Permalink
Merge pull request #62 from Qiskit-Partners/nonhermitian-patch-1
Browse files Browse the repository at this point in the history
Fix mapping bug
  • Loading branch information
nonhermitian authored Sep 28, 2021
2 parents d545dc7 + 768d590 commit d0776f3
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 d0776f3

Please sign in to comment.