Skip to content

Commit

Permalink
Update qopt_best_practices/transpilation/swap_cancellation_pass.py
Browse files Browse the repository at this point in the history
Co-authored-by: Elena Peña Tapia <[email protected]>
  • Loading branch information
eggerdj and ElePT authored Oct 10, 2024
1 parent 9b76707 commit 6f1db1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def run(self, dag: DAGCircuit):

qmap = self.property_set["virtual_permutation_layout"]

qreg = dag.qregs["q"]
qreg = dag.qregs[next(iter(dag.qregs))]

# This will remove SWAP gates that are applied before anything else
# This remove is executed multiple times until there are no more SWAP
Expand Down

0 comments on commit 6f1db1d

Please sign in to comment.