Skip to content

Commit

Permalink
Fix in mps_enabled settings
Browse files Browse the repository at this point in the history
  • Loading branch information
vinitha-balachandran committed Mar 7, 2024
1 parent b2c0ffa commit 628160c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/qibotn/backends/quimb.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ def __init__(self, runcard):

mps_enabled_value = runcard.get("MPS_enabled")
if mps_enabled_value is True:
self.mps_opts = {"method": "svd", "cutoff": 1e-6, "cutoff_mod": "abs"}
self.mps_opts = {"method": "svd", "cutoff": 1e-6, "cutoff_mode": "abs"}
elif mps_enabled_value is False:
self.mps_opts = False
self.mps_opts = None
elif isinstance(mps_enabled_value, dict):
self.mps_opts = mps_enabled_value
else:
Expand All @@ -29,6 +29,7 @@ def __init__(self, runcard):
self.MPS_enabled = False
self.NCCL_enabled = False
self.expectation_enabled = False
self.mps_opts = None

self.name = "qibotn"
self.quimb = quimb
Expand Down

0 comments on commit 628160c

Please sign in to comment.