From e6d1abb9ec1f1afaae0035ef188228818af67528 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 07:39:51 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/qibotn/backends/quimb.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/qibotn/backends/quimb.py b/src/qibotn/backends/quimb.py index 2194c2e8..acd5ee2a 100644 --- a/src/qibotn/backends/quimb.py +++ b/src/qibotn/backends/quimb.py @@ -1,7 +1,7 @@ +import numpy as np from qibo.backends.numpy import NumpyBackend from qibo.config import raise_error from qibo.result import QuantumState -import numpy as np class QuimbBackend(NumpyBackend): @@ -9,7 +9,6 @@ class QuimbBackend(NumpyBackend): def __init__(self, runcard): super().__init__() import quimb # pylint: disable=import-error - if runcard is not None: self.MPI_enabled = runcard.get("MPI_enabled", False) @@ -76,7 +75,6 @@ def execute_circuit( NotImplementedError, "QiboTN quimb backend cannot support expectation" ) - if self.MPI_enabled == True: state, rank = eval.dense_vector_tn_mpi_qu( circuit.to_qasm(), @@ -92,7 +90,6 @@ def execute_circuit( circuit.to_qasm(), initial_state, self.mps_opts, backend="numpy" ) - if return_array: return state.flatten() else: