Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 18, 2024
1 parent e6be227 commit e6d1abb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/qibotn/backends/quimb.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
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):

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)
Expand Down Expand Up @@ -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(),
Expand All @@ -92,7 +90,6 @@ def execute_circuit(
circuit.to_qasm(), initial_state, self.mps_opts, backend="numpy"
)


if return_array:
return state.flatten()
else:
Expand Down

0 comments on commit e6d1abb

Please sign in to comment.