[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2025-01-27 11:29:47 +00:00
parent 43ebd79cec
commit 80bfc7e876
5 changed files with 56 additions and 57 deletions

View File

@@ -1,11 +1,11 @@
from abc import abstractmethod
from qibo.backends.numpy import NumpyBackend
from qibo.config import raise_error
DEFAULT_CONFIGURATION = {
"MPI_enabled": False, # TODO: cutensornet specific, TBRemoved
"NCCL_enabled": False, # TODO: cutensornet specific, TBRemoved
"MPI_enabled": False, # TODO: cutensornet specific, TBRemoved
"NCCL_enabled": False, # TODO: cutensornet specific, TBRemoved
"expectation_enabled": False,
"pauli_string_pattern": None,
"MPS_enabled": False,
@@ -14,10 +14,9 @@ DEFAULT_CONFIGURATION = {
}
class QibotnBackend(NumpyBackend):
def __init__(self, runcard:dict = DEFAULT_CONFIGURATION):
def __init__(self, runcard: dict = DEFAULT_CONFIGURATION):
super().__init__()
def apply_gate(self, gate, state, nqubits): # pragma: no cover
@@ -32,10 +31,8 @@ class QibotnBackend(NumpyBackend):
def set_precision(self, precision):
if precision != self.precision:
super().set_precision(precision)
@abstractmethod
def configure_tn_simulation(self, **config):
"""Configure the TN simulation that will be performed."""
pass