feat: add set_device method to TN abstract backend

This commit is contained in:
MatteoRobbiati
2025-02-03 16:57:50 +04:00
parent 08ad49eb19
commit 4a2362e0c1

View File

@@ -30,6 +30,9 @@ class QibotnBackend(NumpyBackend):
if precision != self.precision:
super().set_precision(precision)
def set_device(self, device):
self.device = device
# @abstractmethod
def configure_tn_simulation(self, **config):
"""Configure the TN simulation that will be performed."""