fix: change the order or the inheritance to impose the correct __mro__
This commit is contained in:
@@ -20,10 +20,16 @@ class QibotnBackend(ABC):
|
||||
def set_precision(self, precision):
|
||||
if precision != self.precision:
|
||||
super().set_precision(precision)
|
||||
self._setup_backend_specifics()
|
||||
|
||||
def set_device(self, device):
|
||||
self.device = device
|
||||
self._setup_backend_specifics()
|
||||
|
||||
def configure_tn_simulation(self, **config):
|
||||
"""Configure the TN simulation that will be performed."""
|
||||
pass
|
||||
|
||||
def _setup_backend_specifics(self):
|
||||
"""Configure the backend specific according to the used package."""
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user