diff --git a/docs/source/getting-started/quickstart.rst b/docs/source/getting-started/quickstart.rst index dd4d01c2..1728579e 100644 --- a/docs/source/getting-started/quickstart.rst +++ b/docs/source/getting-started/quickstart.rst @@ -7,23 +7,24 @@ QiboTN supports two backends cutensornet (using CuQuantum library) and Quimbback For CuQuantum library, -.. testcode:: +.. code-block:: bash + qibo.set_backend(backend="qibotn", platform="cutensornet", runcard=computation_settings) -.. and for Quimb library -.. testcode:: +.. code-block:: bash + qibo.set_backend( backend="qibotn", platform="QuimbBackend", runcard=computation_settings ) -.. Setting the runcard """""""""""""""""""" Basic structure of runcard is -.. testcode:: +.. code-block:: bash + computation_settings = { "MPI_enabled": False, "MPS_enabled": False, @@ -32,11 +33,12 @@ Basic structure of runcard is "pauli_string_pattern": "IXZ", }, } -.. Basic example """""""""""" -.. testcode:: + +.. code-block:: bash + # Construct the circuit c = Circuit(2) # Add some gates @@ -47,5 +49,3 @@ Basic example result = c() print(result.state()) - -..