Skip to content

Commit

Permalink
[doc] Updated Qiskit Documentation (#1094)
Browse files Browse the repository at this point in the history
  • Loading branch information
MonitSharma authored Oct 30, 2023
1 parent 0fc99a5 commit 31d6447
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pytket/docs/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ The following code snippet will show how to compile a circuit to run on an IBM d
from pytket.extensions.qiskit import IBMQBackend

circ = Circuit(3).X(0).CCX(0, 1, 2)
belem_device = IBMQBackend('ibmq_belem')
nairobi_device = IBMQBackend('ibm_nairobi')

# Compile Circuit to use supported gates of IBMQ Belem
compiled_circ = belem_device.get_compiled_circuit(circ)
# Compile Circuit to use supported gates of IBMQ Nairobi
compiled_circ = nairobi_device.get_compiled_circuit(circ)
result = backend.run_circuit(compiled_circ, n_shots=100)

Here the default compilation pass is applied by :py:meth:`IBMQBackend.get_compiled_circuit`. See `this page <https://cqcl.github.io/pytket-qiskit/api/index.html#default-compilation>`_ for more details.

As an alternative, We can experiment with constructing our own circuit compilation routines in pytket. Passes from the :py:mod:`pytket.passes` module can be applied individually or composed in sequence.
See the section of the user manual on `circuit compilation <https://cqcl.github.io/pytket/manual/manual_compiler.html>`_ and the corresponding `notebook example <https://github.com/CQCL/pytket/blob/main/examples/compilation_example.ipynb>`_ for more.
See the section of the user manual on `circuit compilation <https://cqcl.github.io/pytket/manual/manual_compiler.html>`_ and the corresponding `notebook example <https://github.com/CQCL/pytket/blob/main/examples/compilation_example.ipynb>`_ for more.

0 comments on commit 31d6447

Please sign in to comment.