Skip to content

Commit

Permalink
feat: add set_device method to TN abstract backend
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoRobbiati committed Feb 3, 2025
1 parent 08ad49e commit 4a2362e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/qibotn/backends/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ def set_precision(self, precision):
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."""
Expand Down

0 comments on commit 4a2362e

Please sign in to comment.