Skip to content

Commit

Permalink
prevent deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tjstavenger-pnnl committed Dec 4, 2024
1 parent 685103c commit 9fe9155
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2qa/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def _final_measurement_mapping(circuit):
qmap = []
cmap = []
for item in circuit._data[::-1]:
if item[0].name == "measure":
if item.name == "measure":
cbit = cint_map[item[2][0]]
qbit = qint_map[item[1][0]]
if cbit in active_cbits and qbit in active_qubits:
Expand Down

0 comments on commit 9fe9155

Please sign in to comment.