bloqade-circuit 0.5.1__py3-none-any.whl → 0.5.3__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.

Potentially problematic release.


This version of bloqade-circuit might be problematic. Click here for more details.

@@ -281,7 +281,8 @@ class Squin(lowering.LoweringABC[CirqNode]):
281
281
  return state.current_frame.push(op.stmts.Z())
282
282
 
283
283
  # NOTE: just for the Z gate, an arbitrary exponent is equivalent to the ShiftOp
284
- t = node.exponent
284
+ # up to a minus sign!
285
+ t = -node.exponent
285
286
  theta = state.current_frame.push(py.Constant(math.pi * t))
286
287
  return state.current_frame.push(op.stmts.ShiftOp(theta=theta.result))
287
288
 
@@ -126,6 +126,14 @@ class SquinU3ToClifford(RewriteRule):
126
126
  if theta is None or phi is None or lam is None:
127
127
  return ()
128
128
 
129
+ # For U3(2*pi*n, phi, lam) = U3(0, 0, lam + phi) which is a Z rotation.
130
+ if np.isclose(np.mod(theta, math.tau), 0):
131
+ lam = lam + phi
132
+ phi = 0.0
133
+ elif np.isclose(np.mod(theta + np.pi, math.tau), 0):
134
+ lam = lam - phi
135
+ phi = 0.0
136
+
129
137
  theta_half_pi: int | None = self.resolve_angle(theta)
130
138
  phi_half_pi: int | None = self.resolve_angle(phi)
131
139
  lam_half_pi: int | None = self.resolve_angle(lam)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bloqade-circuit
3
- Version: 0.5.1
3
+ Version: 0.5.3
4
4
  Summary: The software development toolkit for neutral atom arrays.
5
5
  Author-email: Roger-luo <rluo@quera.com>, kaihsin <khwu@quera.com>, weinbe58 <pweinberg@quera.com>, johnzl-777 <jlong@quera.com>
6
6
  License-File: LICENSE
@@ -135,7 +135,7 @@ bloqade/squin/analysis/nsites/analysis.py,sha256=rIe1RU1MZRItcE2aB8DYahLrv73HfD3
135
135
  bloqade/squin/analysis/nsites/impls.py,sha256=bVqO4E2hDzfYWwSG0pfj2j8oT1m0C3b42LdSHr4HQlo,2874
136
136
  bloqade/squin/analysis/nsites/lattice.py,sha256=ruh0808SHtj3ecuT-C3AZTsLY2j3DRhtezGiTZvcuVs,942
137
137
  bloqade/squin/cirq/__init__.py,sha256=fxvBvwX5VNfDmqkeM4GHguLQh53k-PJVsz89Eu0wRXw,8552
138
- bloqade/squin/cirq/lowering.py,sha256=tVbDBL7jlwXbp0ZLEjQ4zWdV1TSkcpwWgHOGxF8T1Hg,15660
138
+ bloqade/squin/cirq/lowering.py,sha256=G3AQ86JMOQ_H4TYn5rDeHiV9nivG8lJU1RH_IqoX4WE,15691
139
139
  bloqade/squin/cirq/emit/emit_circuit.py,sha256=7puJ3eCFwE9VdPb9NAiSdyRNkoQPwo_uVykz9Yv7c14,3761
140
140
  bloqade/squin/cirq/emit/noise.py,sha256=rESjGC_66s2Y4FwwYda4rY3mYHYjbqLlKE_vnqpZDYI,1534
141
141
  bloqade/squin/cirq/emit/op.py,sha256=z54NP5KqMxffXeFGWamEzvunpTNrxmYuluurk4j2-ps,4000
@@ -155,7 +155,7 @@ bloqade/squin/op/stdlib.py,sha256=4UFK3wKImpums2v5a9OFKuVvz2TLYbYwidg3JYYEi2o,10
155
155
  bloqade/squin/op/stmts.py,sha256=68dASDOK6IFqS4G02A5Wlnc4ThyyIrls4aurK09aqgE,5975
156
156
  bloqade/squin/op/traits.py,sha256=jjsnzWtPtmQK7K3H_D2fvc8XiW1Y3EMBcgeyPax2sjc,1065
157
157
  bloqade/squin/op/types.py,sha256=ozUT0Bv9NuUxPjB2vAeqJ9cpdvUaBfP9trB5mybYxgc,663
158
- bloqade/squin/rewrite/U3_to_clifford.py,sha256=HpkFTqe-J0macb_aNs1QNs8wJDoUsmwf9Mtb0I3ZepI,5377
158
+ bloqade/squin/rewrite/U3_to_clifford.py,sha256=72ECWFrjeaEelR5e6IgNgaJXnTQ6ZXL4ZakZfXQbi8I,5670
159
159
  bloqade/squin/rewrite/__init__.py,sha256=cY1GbXQXKvDeXi0YE4PgjORm6iGBPk63xzMCpVjiCgw,349
160
160
  bloqade/squin/rewrite/canonicalize.py,sha256=hcfsn4ntsvnJ_cVnoUgcE5Zk9EqvwgixGArLPx4OjP0,2100
161
161
  bloqade/squin/rewrite/desugar.py,sha256=ZPZnhBvIpPYOZDCFsyja4-AL5KMGfH0h8kS-AGu6sHY,3526
@@ -223,7 +223,7 @@ bloqade/visual/animation/runtime/atoms.py,sha256=EmjxhujLiHHPS_HtH_B-7TiqeHgvW5u
223
223
  bloqade/visual/animation/runtime/ppoly.py,sha256=JB9IP53N1w6adBJEue6J5Nmj818Id9JvrlgrmiQTU1I,1385
224
224
  bloqade/visual/animation/runtime/qpustate.py,sha256=rlmxQeJSvaohXrTpXQL5y-NJcpvfW33xPaYM1slv7cc,4270
225
225
  bloqade/visual/animation/runtime/utils.py,sha256=ju9IzOWX-vKwfpqUjlUKu3Ssr_UFPFFq-tzH_Nqyo_c,1212
226
- bloqade_circuit-0.5.1.dist-info/METADATA,sha256=1_UoT7ZbKJFWFtB989BNeTofLYYe9Md6aQTc2QGIbqs,3849
227
- bloqade_circuit-0.5.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
228
- bloqade_circuit-0.5.1.dist-info/licenses/LICENSE,sha256=S5GIJwR6QCixPA9wryYb44ZEek0Nz4rt_zLUqP05UbU,13160
229
- bloqade_circuit-0.5.1.dist-info/RECORD,,
226
+ bloqade_circuit-0.5.3.dist-info/METADATA,sha256=7_NyHD80Mm98Lxu_kZyKMNTFTcCHyK2vfp-6SncvcII,3849
227
+ bloqade_circuit-0.5.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
228
+ bloqade_circuit-0.5.3.dist-info/licenses/LICENSE,sha256=S5GIJwR6QCixPA9wryYb44ZEek0Nz4rt_zLUqP05UbU,13160
229
+ bloqade_circuit-0.5.3.dist-info/RECORD,,