Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update transpiler docs #12731

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
Comment on lines +686 to +687
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this already merged but how does this reconcile with: #12453 which is new in 1.2.0? We're not running the "pass" by default. But we're using the pass internals as part of another one.


- :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
Loading