emu-base 2.5.0__py3-none-any.whl → 2.5.2__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
@@ -22,4 +22,4 @@ __all__ = [
22
22
  "init_logging",
23
23
  ]
24
24
 
25
- __version__ = "2.5.0"
25
+ __version__ = "2.5.2"
@@ -90,6 +90,7 @@ def _extract_omega_delta_phi(
90
90
  locals_a_d_p = sequence_dict["XY"]
91
91
  else:
92
92
  raise ValueError("Only `ground-rydberg` and `mw_global` channels are supported.")
93
+ qubit_ids_filtered = [qid for qid in qubit_ids if qid in locals_a_d_p]
93
94
  for i in range(nsamples):
94
95
  t = (target_times[i] + target_times[i + 1]) / 2
95
96
  # The sampled values correspond to the start of each interval
@@ -100,7 +101,7 @@ def _extract_omega_delta_phi(
100
101
  # Note that for dt even, t1=t2
101
102
  t1 = math.floor(t)
102
103
  t2 = math.ceil(t)
103
- for q_pos, q_id in enumerate(qubit_ids):
104
+ for q_pos, q_id in enumerate(qubit_ids_filtered):
104
105
  omega[i, q_pos] = (
105
106
  locals_a_d_p[q_id]["amp"][t1] + locals_a_d_p[q_id]["amp"][t2]
106
107
  ) / 2.0
@@ -110,10 +111,11 @@ def _extract_omega_delta_phi(
110
111
  phi[i, q_pos] = (
111
112
  locals_a_d_p[q_id]["phase"][t1] + locals_a_d_p[q_id]["phase"][t2]
112
113
  ) / 2.0
114
+
113
115
  else:
114
116
  # We're in the final step and dt=1, approximate this using linear extrapolation
115
117
  # we can reuse omega_1 and omega_2 from before
116
- for q_pos, q_id in enumerate(qubit_ids):
118
+ for q_pos, q_id in enumerate(qubit_ids_filtered):
117
119
  delta[i, q_pos] = (
118
120
  3.0 * locals_a_d_p[q_id]["det"][t2] - locals_a_d_p[q_id]["det"][t1]
119
121
  ) / 2.0
@@ -126,6 +128,7 @@ def _extract_omega_delta_phi(
126
128
  / 2.0,
127
129
  0.0,
128
130
  )
131
+
129
132
  return omega, delta, phi
130
133
 
131
134
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: emu-base
3
- Version: 2.5.0
3
+ Version: 2.5.2
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,7 +1,7 @@
1
- emu_base/__init__.py,sha256=0gT5wd46vY1MykuZ-E1-h9Ev1fOXE_tu59FzRDH9PCM,759
1
+ emu_base/__init__.py,sha256=Hwz7RJiKKY-lie2PIQIK-KaOVe0uGhyarI21w_PPqeE,759
2
2
  emu_base/constants.py,sha256=41LYkKLUCz-oxPbd-j7nUDZuhIbUrnez6prT0uR0jcE,56
3
3
  emu_base/jump_lindblad_operators.py,sha256=F_C-1aruXY_SLzw0m_HD5loqRGdjgsLHEzttlMzWNEw,3015
4
- emu_base/pulser_adapter.py,sha256=o30fm2soOXr7y2hvoZKLC24oi-FW0_6RmSgrsSWu_y4,7274
4
+ emu_base/pulser_adapter.py,sha256=QyvJVWmAQDpFBc68-cnndNBkY1rvdDeEXXPse-afQ68,7369
5
5
  emu_base/utils.py,sha256=kXfRFq31r_dfLbBC0SHiPpvf7Wll4behd2vqQJsTrVo,3553
6
6
  emu_base/math/__init__.py,sha256=6BbIytYV5uC-e5jLMtIErkcUl_PvfSNnhmVFY9Il8uQ,97
7
7
  emu_base/math/brents_root_finding.py,sha256=AVx6L1Il6rpPJWrLJ7cn6oNmJyZOPRgEaaZaubC9lsU,3711
@@ -9,6 +9,6 @@ emu_base/math/double_krylov.py,sha256=X16dyCbyzdP7fFK-hmKS03Q-DJtC6TZ8sJrGTJ6akI
9
9
  emu_base/math/krylov_energy_min.py,sha256=iR4hmE0eXptbAg3opikd5d4Zv7dhnDrawH-n_4KG-cc,4009
10
10
  emu_base/math/krylov_exp.py,sha256=mGFddVQ8mEbwypbZtnlRPFpi4Nf8JZT6OKLHloIwCDQ,3934
11
11
  emu_base/math/matmul.py,sha256=lEAnV0b5z_f1xEA-9p-WXxA8bM3QbShiHdXQ3ZkZFcQ,877
12
- emu_base-2.5.0.dist-info/METADATA,sha256=U1_pInFyZ7gjemxHzZjX1F4y3hfhkw174NjuPVw47gI,3604
13
- emu_base-2.5.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
14
- emu_base-2.5.0.dist-info/RECORD,,
12
+ emu_base-2.5.2.dist-info/METADATA,sha256=Nvrz_okEVXHqTG2aYZmjLBlK57DP3jz2YtHCaiJaexc,3604
13
+ emu_base-2.5.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
14
+ emu_base-2.5.2.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.28.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any