diff --git a/doc/source/api-reference/qibo.rst b/doc/source/api-reference/qibo.rst index a0e39840f6..5e7001e143 100644 --- a/doc/source/api-reference/qibo.rst +++ b/doc/source/api-reference/qibo.rst @@ -2120,13 +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 + + import qibo # setting numpy as the global backend - set_backend("numpy") + qibo.set_backend("numpy") # the clifford backend will use the numpy backend as engine - backend = CliffordBackend() + backend = qibo.backends.CliffordBackend() Alternatively, a Clifford circuit can also be executed starting from the :class:`qibo.quantum_info.clifford.Clifford` object