Skip to content

Commit

Permalink
Update qiskit_addon_obp/backpropagation.py
Browse files Browse the repository at this point in the history
Co-authored-by: Max Rossmannek <oss@zurich.ibm.com>
  • Loading branch information
caleb-johnson and mrossinek authored Mar 5, 2025
1 parent cb23106 commit adb5ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit_addon_obp/backpropagation.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def handle_timeout(signum, frame):
# PERF: we will likely need to parallelize this loop
for i in range(num_observables):
non_trivial_slice = False
op_nodes = reversed(list(circuit_to_dag(slice_).topological_op_nodes()))
op_nodes = reversed(circuit_to_dag(slice_).topological_op_nodes())
for op_idx, op_node in enumerate(op_nodes):
# Ignore barriers within slices
if op_node.name == "barrier":
Expand Down

0 comments on commit adb5ace

Please sign in to comment.