Skip to content

Commit

Permalink
Merge branch 'slice-bug' of github.com:Qiskit/qiskit-addon-obp into s…
Browse files Browse the repository at this point in the history
…lice-bug
  • Loading branch information
caleb-johnson committed Mar 5, 2025
2 parents 2b10536 + adb5ace commit 1bfb6c3
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 1bfb6c3

Please sign in to comment.