fix: Use default Python code blocks, instead of Bash highlight

This commit is contained in:
Alessandro Candido
2024-03-03 18:44:23 +01:00
parent f8058d5398
commit bd4f71edf8

View File

@@ -6,17 +6,13 @@ Setting the backend
QiboTN supports two backends: cutensornet (using cuQuantum library) and QuimbBackend (using Quimb library) for tensor network based simulations. The backend can be set using the following command line. QiboTN supports two backends: cutensornet (using cuQuantum library) and QuimbBackend (using Quimb library) for tensor network based simulations. The backend can be set using the following command line.
To use cuQuantum library, cutensornet can be specified as follows: To use cuQuantum library, cutensornet can be specified as follows::
.. code-block:: bash
qibo.set_backend( qibo.set_backend(
backend="qibotn", platform="cutensornet", runcard=computation_settings backend="qibotn", platform="cutensornet", runcard=computation_settings
) )
Similarly, to use Quimb library, QuimbBackend can be as follows: Similarly, to use Quimb library, QuimbBackend can be as follows::
.. code-block:: bash
qibo.set_backend( qibo.set_backend(
backend="qibotn", platform="QuimbBackend", runcard=computation_settings backend="qibotn", platform="QuimbBackend", runcard=computation_settings
@@ -25,9 +21,7 @@ Similarly, to use Quimb library, QuimbBackend can be as follows:
Setting the runcard Setting the runcard
""""""""""""""""""" """""""""""""""""""
The basic structure of the runcard is as follows: The basic structure of the runcard is as follows::
.. code-block:: bash
computation_settings = { computation_settings = {
"MPI_enabled": False, "MPI_enabled": False,
@@ -41,9 +35,7 @@ The basic structure of the runcard is as follows:
Basic example Basic example
""""""""""""" """""""""""""
The following is a basic example: The following is a basic example::
.. code-block:: bash
# Construct the circuit # Construct the circuit
c = Circuit(2) c = Circuit(2)