Skip to content

Commit

Permalink
fix: add expln Preprocessing on_qubits
Browse files Browse the repository at this point in the history
  • Loading branch information
changsookim committed Dec 1, 2024
1 parent bb10676 commit 35be2c4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion doc/source/code-examples/advancedexamples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2209,7 +2209,6 @@ In this example, we used :class:`qibo.transpiler.optimizer.Preprocessing`,
and :class:`qibo.transpiler.unroller.Unroller` passes to transpile the circuit
on a star-shaped hardware connectivity and a custom set of native gates.


.. testcode:: python

import networkx as nx
Expand Down Expand Up @@ -2258,6 +2257,18 @@ on a star-shaped hardware connectivity and a custom set of native gates.
native_gates=NativeGates.default()
)


In the current Qibo version, transpiler passes require that
``wire_names`` match the qubit names in the given connectivity graph.
This can be done manually or by using :class:`qibo.transpiler.optimizer.Preprocessing`
or the ``on_qubits`` parameter.

.. note::

- :class:`qibo.transpiler.optimizer.Preprocessing` pads the circuit with the remaining qubits from the connectivity graph.
- The ``on_qubits`` parameter in :class:`qibo.transpiler.pipeline.Passes` restricts the connectivity graph.


.. _tutorials_set_transpiler:

How to attach a transpiler to a backend?
Expand Down

0 comments on commit 35be2c4

Please sign in to comment.