Skip to content

Commit

Permalink
Merge pull request #1108 from qiboteam/in-place
Browse files Browse the repository at this point in the history
Add note about in-place updating in the docs
  • Loading branch information
MatteoRobbiati authored Nov 30, 2023
2 parents 5d0c55d + 5d7df1a commit 17a8523
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/source/getting-started/backends.rst
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ be controlled using the ``QIBO_LOG_LEVEL`` environment variable. This can be set
to 3 to hide info messages or 4 to hide both info and warning messages. The
default value is 1 allowing all messages to appear.

.. note::
The `qibojit` backend implements in-place updates. This
implies that the initial state is modified at runtime without performing any copies to save memory.
For algorithms that require access to the initial state after its modification, such as quantum machine learning applications,
it is suggested to perform a copy of the state explicitly if really needed by the algorithm.


.. _hardware-backends:

Expand Down

0 comments on commit 17a8523

Please sign in to comment.