Skip to content

Commit

Permalink
fix doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomello committed Dec 12, 2023
1 parent 9ac4e59 commit 52872ea
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doc/source/api-reference/qibo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2120,11 +2120,13 @@ As for the other backends, the Clifford backend can be set with
by specifying the engine used for calculation, if not provided the current :class:`qibo.backends.GlobalBackend` is used

.. testcode:: python
from qibo import set_backend
from qibo.backends import CliffordBackend

# setting numpy as the global backend
set_backend("numpy")
# the clifford backend will use the numpy backend as engine
backend = CliffordBackend()
# setting numpy as the global backend
set_backend("numpy")
# the clifford backend will use the numpy backend as engine
backend = CliffordBackend()

Alternatively, a Clifford circuit can also be executed starting from the :class:`qibo.quantum_info.clifford.Clifford` object

Expand Down

0 comments on commit 52872ea

Please sign in to comment.