bloqade-circuit 0.7.2__py3-none-any.whl → 0.7.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.
- bloqade/qasm2/rewrite/register.py +2 -2
- bloqade/qasm2/rewrite/uop_to_parallel.py +3 -1
- {bloqade_circuit-0.7.2.dist-info → bloqade_circuit-0.7.3.dist-info}/METADATA +1 -1
- {bloqade_circuit-0.7.2.dist-info → bloqade_circuit-0.7.3.dist-info}/RECORD +6 -6
- {bloqade_circuit-0.7.2.dist-info → bloqade_circuit-0.7.3.dist-info}/WHEEL +0 -0
- {bloqade_circuit-0.7.2.dist-info → bloqade_circuit-0.7.3.dist-info}/licenses/LICENSE +0 -0
|
@@ -2,7 +2,7 @@ from kirin import ir
|
|
|
2
2
|
from kirin.dialects import py
|
|
3
3
|
from kirin.rewrite.abc import RewriteRule, RewriteResult
|
|
4
4
|
|
|
5
|
-
from bloqade.qasm2.dialects import core
|
|
5
|
+
from bloqade.qasm2.dialects import core, expr
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
class RaiseRegisterRule(RewriteRule):
|
|
@@ -26,7 +26,7 @@ class RaiseRegisterRule(RewriteRule):
|
|
|
26
26
|
n_qubits_ref = node.n_qubits
|
|
27
27
|
|
|
28
28
|
n_qubits = n_qubits_ref.owner
|
|
29
|
-
if isinstance(n_qubits, py.Constant):
|
|
29
|
+
if isinstance(n_qubits, py.Constant | expr.ConstInt):
|
|
30
30
|
# case where the n_qubits comes from a constant
|
|
31
31
|
new_n_qubits = n_qubits.from_stmt(n_qubits)
|
|
32
32
|
new_n_qubits.insert_before(first_stmt)
|
|
@@ -8,7 +8,7 @@ from kirin.rewrite.abc import RewriteRule, RewriteResult
|
|
|
8
8
|
from kirin.analysis.const import lattice
|
|
9
9
|
|
|
10
10
|
from bloqade.analysis import address
|
|
11
|
-
from bloqade.qasm2.dialects import uop, core, parallel
|
|
11
|
+
from bloqade.qasm2.dialects import uop, core, expr, parallel
|
|
12
12
|
from bloqade.squin.analysis.schedule import StmtDag
|
|
13
13
|
|
|
14
14
|
|
|
@@ -194,6 +194,8 @@ class SimpleMergePolicy(MergePolicyABC):
|
|
|
194
194
|
new_qubits.append(new_qubit.result)
|
|
195
195
|
case core.QRegGet(
|
|
196
196
|
reg=reg, idx=ir.ResultValue(stmt=py.Constant() as idx)
|
|
197
|
+
) | core.QRegGet(
|
|
198
|
+
reg=reg, idx=ir.ResultValue(stmt=expr.ConstInt() as idx)
|
|
197
199
|
):
|
|
198
200
|
(new_idx := idx.from_stmt(idx)).insert_before(node)
|
|
199
201
|
(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bloqade-circuit
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.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
|
|
@@ -108,8 +108,8 @@ bloqade/qasm2/rewrite/insert_qubits.py,sha256=PpYNlJAl-TVtC1MJxIzOQWDetgW8OPXe6c
|
|
|
108
108
|
bloqade/qasm2/rewrite/native_gates.py,sha256=GVutT1jf_gv9qaR5fLqjcmxcqCfMZTiQyg4Fq-TlmFM,18684
|
|
109
109
|
bloqade/qasm2/rewrite/parallel_to_glob.py,sha256=TQ5EAYIx7pLpydSeeF2Ta0h5evaHHXaRtvtgz1X3Kfo,2750
|
|
110
110
|
bloqade/qasm2/rewrite/parallel_to_uop.py,sha256=_banEox20L_qU1GTvKjSSDBkFg49UlSE-POuTCKnrzY,2351
|
|
111
|
-
bloqade/qasm2/rewrite/register.py,sha256=
|
|
112
|
-
bloqade/qasm2/rewrite/uop_to_parallel.py,sha256=
|
|
111
|
+
bloqade/qasm2/rewrite/register.py,sha256=0q-zkSdZih3BbRUDGnig8fFVQA9y2fhn3wdsu4Kbdm4,1563
|
|
112
|
+
bloqade/qasm2/rewrite/uop_to_parallel.py,sha256=2_7SQh1SRQaCk6v0HbV0G2rSlUGscIHmmDQcaMIpTwE,13131
|
|
113
113
|
bloqade/qasm2/rewrite/noise/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
114
114
|
bloqade/qasm2/rewrite/noise/heuristic_noise.py,sha256=7C7yYC66HLZPlTynXwfZ5lKnJkLnDGLT7lVWxREozuc,7851
|
|
115
115
|
bloqade/qasm2/rewrite/noise/remove_noise.py,sha256=rnalZ1igiTpCFJ9Z3PRdzcx-qnkkALv6iQO-_yz39kM,1097
|
|
@@ -232,7 +232,7 @@ bloqade/visual/animation/runtime/atoms.py,sha256=EmjxhujLiHHPS_HtH_B-7TiqeHgvW5u
|
|
|
232
232
|
bloqade/visual/animation/runtime/ppoly.py,sha256=JB9IP53N1w6adBJEue6J5Nmj818Id9JvrlgrmiQTU1I,1385
|
|
233
233
|
bloqade/visual/animation/runtime/qpustate.py,sha256=rlmxQeJSvaohXrTpXQL5y-NJcpvfW33xPaYM1slv7cc,4270
|
|
234
234
|
bloqade/visual/animation/runtime/utils.py,sha256=ju9IzOWX-vKwfpqUjlUKu3Ssr_UFPFFq-tzH_Nqyo_c,1212
|
|
235
|
-
bloqade_circuit-0.7.
|
|
236
|
-
bloqade_circuit-0.7.
|
|
237
|
-
bloqade_circuit-0.7.
|
|
238
|
-
bloqade_circuit-0.7.
|
|
235
|
+
bloqade_circuit-0.7.3.dist-info/METADATA,sha256=Bg7Nphnd5xlF_jANV1TK2wzCOlTGT0eHgXQfu8KIdPc,3850
|
|
236
|
+
bloqade_circuit-0.7.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
237
|
+
bloqade_circuit-0.7.3.dist-info/licenses/LICENSE,sha256=S5GIJwR6QCixPA9wryYb44ZEek0Nz4rt_zLUqP05UbU,13160
|
|
238
|
+
bloqade_circuit-0.7.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|