From 705b111ab5d8ddbedd006d7969949ee78baf885a Mon Sep 17 00:00:00 2001 From: yangliwei Date: Sat, 2 Mar 2024 01:51:06 +0800 Subject: [PATCH] Fix rendering issues --- docs/source/getting-started/quickstart.rst | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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()) - -..