Skip to content

Commit

Permalink
Update qiskit/transpiler/passes/layout/sabre_layout.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jake Lishman <jake@binhbar.com>
  • Loading branch information
mtreinish and jakelishman authored Nov 18, 2021
1 parent bc92386 commit 6809acf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qiskit/transpiler/passes/layout/sabre_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,5 @@ def _compose_layouts(self, initial_layout, pass_final_layout, qregs):
"""
trivial_layout = Layout.generate_trivial_layout(*qregs)
qubit_map = Layout.combine_into_edge_map(initial_layout, trivial_layout)
final_layout = {v: pass_final_layout[qubit_map[v]] for v, _ in initial_layout._v2p.items()}
final_layout = {v: pass_final_layout[qubit_map[v]] for v in initial_layout._v2p}
return Layout(final_layout)

0 comments on commit 6809acf

Please sign in to comment.