Skip to content

Commit

Permalink
Remove DenseLayout from default pipeline (#12731) (#12732)
Browse files Browse the repository at this point in the history
Co-authored-by: Jake Lishman <[email protected]>
(cherry picked from commit 865081e)

Co-authored-by: Elena Peña Tapia <[email protected]>
  • Loading branch information
mergify[bot] and ElePT authored Jul 8, 2024
1 parent 1916ef5 commit 27c5842
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions qiskit/transpiler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -650,8 +650,6 @@
.. image:: /source_images/mapping.png
By default, qiskit will do this mapping for you. The choice of mapping depends on the
properties of the circuit, the particular device you are targeting, and the optimization
level that is chosen. The choice of initial layout is extremely important for minimizing the
Expand Down Expand Up @@ -684,10 +682,12 @@
:class:`~.SabreLayout` is used to select a layout if a perfect layout isn't found for
optimization levels 1, 2, and 3.
- :class:`~.TrivialLayout`: Always used for the layout at optimization level 0.
There are other passes than can be used for the heuristic stage, but are not included in the default
pipeline, such as:
- :class:`~.DenseLayout`: Finds the sub-graph of the device with greatest connectivity
that has the same number of qubits as the circuit. Used for
optimization level 1 if there are control flow operations (such as
:class:`~.IfElseOp`) present in the circuit.
that has the same number of qubits as the circuit.
Let's see what layouts are automatically picked at various optimization levels. The circuits
returned by :func:`qiskit.compiler.transpile` are annotated with this initial layout information,
Expand Down

0 comments on commit 27c5842

Please sign in to comment.