diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3370558..8f50cc1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,7 +13,7 @@ jobs: matrix: os: [ubuntu-latest] python-version: [3.9, "3.10", "3.11", "3.12"] - uses: qiboteam/workflows/.github/workflows/deploy-pip-poetry.yml@main + uses: qiboteam/workflows/.github/workflows/deploy-pip-poetry.yml@v1 with: os: ${{ matrix.os }} python-version: ${{ matrix.python-version }} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0aaf3a1..18b90bc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,7 +28,7 @@ jobs: deploy-docs: needs: [evaluate-label] - uses: qiboteam/workflows/.github/workflows/deploy-ghpages-latest-stable.yml@main + uses: qiboteam/workflows/.github/workflows/deploy-ghpages-latest-stable.yml@v1 with: python-version: "3.10" package-manager: "poetry" diff --git a/.github/workflows/rules.yml b/.github/workflows/rules.yml index 8f956cf..8d1d59c 100644 --- a/.github/workflows/rules.yml +++ b/.github/workflows/rules.yml @@ -30,7 +30,7 @@ jobs: matrix: os: [ubuntu-latest] python-version: [3.9, "3.10", "3.11", "3.12"] - uses: qiboteam/workflows/.github/workflows/rules-poetry.yml@main + uses: qiboteam/workflows/.github/workflows/rules-poetry.yml@v1 with: os: ${{ matrix.os }} python-version: ${{ matrix.python-version }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0d8d655..42147ca 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: isort args: ["--profile", "black"] - repo: https://github.com/PyCQA/docformatter - rev: v1.7.5 + rev: master hooks: - id: docformatter additional_dependencies: [tomli] diff --git a/README.md b/README.md index 64378fe..7552994 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,7 @@ computation_settings = { qibo.set_backend( backend="qibotn", platform="cutensornet", runcard=computation_settings ) # cuQuantum -#qibo.set_backend(backend="qibotn", platform="qutensornet", runcard=computation_settings) #quimb +# qibo.set_backend(backend="qibotn", platform="qutensornet", runcard=computation_settings) #quimb # Construct the circuit diff --git a/doc/source/getting-started/quickstart.rst b/doc/source/getting-started/quickstart.rst index 4e9c1a5..6650118 100644 --- a/doc/source/getting-started/quickstart.rst +++ b/doc/source/getting-started/quickstart.rst @@ -49,10 +49,8 @@ Basic example The following is a basic example to execute a two qubit circuit and print the final state in dense vector form using quimb backend:: - # Set the quimb backend - qibo.set_backend( - backend="qibotn", platform="qutensornet", runcard=computation_settings - ) + import qibo + from qibo import Circuit, gates # Set the runcard computation_settings = { @@ -62,6 +60,13 @@ The following is a basic example to execute a two qubit circuit and print the fi "expectation_enabled": False, } + + # Set the quimb backend + qibo.set_backend( + backend="qibotn", platform="qutensornet", runcard=computation_settings + ) + + # Construct the circuit with two qubits c = Circuit(2)