Skip to content

Commit

Permalink
Update qiskit/transpiler/passes/optimization/elide_permutations.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed May 1, 2024
1 parent 07c2966 commit e270aa8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def run(self, dag):
)
return dag

op_count = dag.count_ops()
op_count = dag.count_ops(recurse=False)
if op_count.get("swap", 0) == 0 and op_count.get("permutation", 0) == 0:
return dag

Expand Down

0 comments on commit e270aa8

Please sign in to comment.