Skip to content

Commit

Permalink
fix: add desc wire_names default transpiler
Browse files Browse the repository at this point in the history
  • Loading branch information
changsookim committed Nov 30, 2024
1 parent 6321b3c commit bb10676
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/source/code-examples/advancedexamples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ How to select specific hardware qubits for circuit execution?
The :class:`qibo.models.Circuit` has a ``wire_names`` property that stores the physical names of the qubits in the circuit.
The physical qubit name ``wire_names[i]`` is assigned to the ``i`` th qubit in the circuit.
Users can specify the hardware qubits to be used by setting the ``wire_names``.
During circuit execution, Qibolab uses the ``wire_names`` to find the corresponding hardware qubits.


.. code-block:: python
Expand All @@ -192,6 +194,13 @@ For example, if the user sets ``wire_names`` to ``["C", "A", "B", "D"]``,
it means that the first qubit in the circuit is mapped to the physical qubit named ``C``,
the second qubit is mapped to ``A``, and so on.

If the circuit with the given ``wire_names`` does not meet the hardware device's constraints
(e.g., connectivity and native gate requirements),
the :ref:`default transpiler <tutorials_set_transpiler>` will automatically modify
the circuit to satisfy these constraints.
In this case, different hardware qubits may be used to execute the circuit.
If the user disables the default transpiler, executing the circuit will result in compilation errors.


How to use callbacks?
---------------------
Expand Down

0 comments on commit bb10676

Please sign in to comment.