emu-base 2.0.4__py3-none-any.whl → 2.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
emu_base/__init__.py CHANGED
@@ -16,4 +16,4 @@ __all__ = [
16
16
  "DEVICE_COUNT",
17
17
  ]
18
18
 
19
- __version__ = "2.0.4"
19
+ __version__ = "2.1.1"
@@ -73,7 +73,9 @@ def lanczos(
73
73
  """
74
74
  converged = False
75
75
  lanczos_vectors = [v / v.norm()]
76
- T = torch.zeros(max_krylov_dim + 2, max_krylov_dim + 2, dtype=v.dtype)
76
+ T = torch.zeros(
77
+ max_krylov_dim + 2, max_krylov_dim + 2, dtype=v.dtype, device=v.device
78
+ )
77
79
 
78
80
  for j in range(max_krylov_dim):
79
81
  w = op(lanczos_vectors[-1])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: emu-base
3
- Version: 2.0.4
3
+ Version: 2.1.1
4
4
  Summary: Pasqal base classes for emulators
5
5
  Project-URL: Documentation, https://pasqal-io.github.io/emulators/
6
6
  Project-URL: Repository, https://github.com/pasqal-io/emulators
@@ -1,4 +1,4 @@
1
- emu_base/__init__.py,sha256=zwz2FVP8tif58fTff5RIULPbu5cDThq5K1FueFF2wds,493
1
+ emu_base/__init__.py,sha256=jwcX-VKAHMt-ZwhwGyFknseHFgZaQk5ZUBraEtrrj9s,493
2
2
  emu_base/aggregators.py,sha256=bB-rldoDAErxQMpL715K5lpiabGOpkCY0GyxW7mfHuc,5000
3
3
  emu_base/constants.py,sha256=41LYkKLUCz-oxPbd-j7nUDZuhIbUrnez6prT0uR0jcE,56
4
4
  emu_base/jump_lindblad_operators.py,sha256=Y30f8emVFS4Dazljc_Rh4lX9qU4QQY_AxPNahnzcsfY,2101
@@ -6,8 +6,8 @@ emu_base/pulser_adapter.py,sha256=jDNUpVDlcxfUgI3q5vGfB34YZI1prT39wf--HOwkOJA,11
6
6
  emu_base/utils.py,sha256=RM8O0qfPAJfcdqqAojwEEKV7I3ZfVDklnTisTGhUg5k,233
7
7
  emu_base/math/__init__.py,sha256=6BbIytYV5uC-e5jLMtIErkcUl_PvfSNnhmVFY9Il8uQ,97
8
8
  emu_base/math/brents_root_finding.py,sha256=AVx6L1Il6rpPJWrLJ7cn6oNmJyZOPRgEaaZaubC9lsU,3711
9
- emu_base/math/double_krylov.py,sha256=-DUZ5R3g7CUMQWSET2MUxXZKObXgLNanwAtS5nX8T68,3677
9
+ emu_base/math/double_krylov.py,sha256=X16dyCbyzdP7fFK-hmKS03Q-DJtC6TZ8sJrGTJ6akIc,3708
10
10
  emu_base/math/krylov_exp.py,sha256=MNLxgtiy2djRVtmXmtlBQ6A8rSuw1OK6dTtRQUZvaHs,3854
11
- emu_base-2.0.4.dist-info/METADATA,sha256=EkDtz-l_8ERqYpAU5uyJN3sbbYTqTCiYQo8sACcLd6k,3522
12
- emu_base-2.0.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
13
- emu_base-2.0.4.dist-info/RECORD,,
11
+ emu_base-2.1.1.dist-info/METADATA,sha256=9k7qJ9KPavksjlcUNEcSdnDi1mxHk0FY47NxLBtYE5E,3522
12
+ emu_base-2.1.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
13
+ emu_base-2.1.1.dist-info/RECORD,,