From bb10676904546c5c74a52e7b21304250734b983e Mon Sep 17 00:00:00 2001 From: changsookim <> Date: Sat, 30 Nov 2024 16:34:24 +0400 Subject: [PATCH] fix: add desc wire_names default transpiler --- doc/source/code-examples/advancedexamples.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/source/code-examples/advancedexamples.rst b/doc/source/code-examples/advancedexamples.rst index 6ca69e1055..d09c0817a1 100644 --- a/doc/source/code-examples/advancedexamples.rst +++ b/doc/source/code-examples/advancedexamples.rst @@ -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 @@ -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 ` 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? ---------------------