bloqade-circuit 0.7.10__py3-none-any.whl → 0.7.12__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/squin/groups.py +2 -2
- bloqade/stim/emit/__init__.py +1 -0
- bloqade/stim/emit/impls.py +17 -0
- bloqade/stim/groups.py +2 -2
- {bloqade_circuit-0.7.10.dist-info → bloqade_circuit-0.7.12.dist-info}/METADATA +1 -1
- {bloqade_circuit-0.7.10.dist-info → bloqade_circuit-0.7.12.dist-info}/RECORD +8 -7
- {bloqade_circuit-0.7.10.dist-info → bloqade_circuit-0.7.12.dist-info}/WHEEL +0 -0
- {bloqade_circuit-0.7.10.dist-info → bloqade_circuit-0.7.12.dist-info}/licenses/LICENSE +0 -0
bloqade/squin/groups.py
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
from kirin import ir, passes
|
|
2
2
|
from kirin.prelude import structural_no_opt
|
|
3
3
|
from kirin.rewrite import Walk, Chain
|
|
4
|
-
from kirin.dialects import ilist
|
|
4
|
+
from kirin.dialects import debug, ilist
|
|
5
5
|
|
|
6
6
|
from . import op, wire, noise, qubit
|
|
7
7
|
from .op.rewrite import PyMultToSquinMult
|
|
8
8
|
from .rewrite.desugar import ApplyDesugarRule, MeasureDesugarRule
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
@ir.dialect_group(structural_no_opt.union([op, qubit, noise]))
|
|
11
|
+
@ir.dialect_group(structural_no_opt.union([op, qubit, noise, debug]))
|
|
12
12
|
def kernel(self):
|
|
13
13
|
fold_pass = passes.Fold(self)
|
|
14
14
|
typeinfer_pass = passes.TypeInfer(self)
|
bloqade/stim/emit/__init__.py
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from kirin.emit import EmitStrFrame
|
|
2
|
+
from kirin.interp import MethodTable, impl
|
|
3
|
+
from kirin.dialects.debug import Info, dialect
|
|
4
|
+
|
|
5
|
+
from bloqade.stim.emit.stim_str import EmitStimMain
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
@dialect.register(key="emit.stim")
|
|
9
|
+
class EmitStimDebugMethods(MethodTable):
|
|
10
|
+
|
|
11
|
+
@impl(Info)
|
|
12
|
+
def info(self, emit: EmitStimMain, frame: EmitStrFrame, stmt: Info):
|
|
13
|
+
|
|
14
|
+
msg: str = frame.get(stmt.msg)
|
|
15
|
+
emit.writeln(frame, f"# {msg}")
|
|
16
|
+
|
|
17
|
+
return ()
|
bloqade/stim/groups.py
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
from kirin import ir
|
|
2
2
|
from kirin.passes import Fold, TypeInfer
|
|
3
|
-
from kirin.dialects import func, lowering
|
|
3
|
+
from kirin.dialects import func, debug, lowering
|
|
4
4
|
|
|
5
5
|
from .dialects import gate, noise, collapse, auxiliary
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
@ir.dialect_group(
|
|
9
|
-
[noise, gate, auxiliary, collapse, func, lowering.func, lowering.call]
|
|
9
|
+
[noise, gate, auxiliary, collapse, func, lowering.func, lowering.call, debug]
|
|
10
10
|
)
|
|
11
11
|
def main(self):
|
|
12
12
|
typeinfer_pass = TypeInfer(self)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bloqade-circuit
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.12
|
|
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
|
|
@@ -137,7 +137,7 @@ bloqade/rewrite/rules/__init__.py,sha256=3e1Z5T3INqNtP6OU0Vivu_SdMOR_2KDixeA0Yjo
|
|
|
137
137
|
bloqade/rewrite/rules/split_ifs.py,sha256=KhwvUx-oBrBO2F1j-J5kwNbdnrnEZcZtJflzyQm-UOI,2613
|
|
138
138
|
bloqade/squin/__init__.py,sha256=j9jgH39eQHedbVR9poKx2YHxOihclAI0GpIA05NejHM,675
|
|
139
139
|
bloqade/squin/_typeinfer.py,sha256=bilWfC6whTMwewFCqDgB6vDHZsgXPr3azNOYqqnvtB4,780
|
|
140
|
-
bloqade/squin/groups.py,sha256=
|
|
140
|
+
bloqade/squin/groups.py,sha256=ceO6RfWB1B0FlGZYtJACkKUXvTFPNZR_A4aikKDwHAU,1324
|
|
141
141
|
bloqade/squin/lowering.py,sha256=bfrPjx6t2mnd1qoBshF_RW-FXMWg3TOUA6XKUeONyig,2560
|
|
142
142
|
bloqade/squin/parallel.py,sha256=X6Ps9kQIgnFMlZO14y2ntdxvivqbIP28PAWF8KmxByM,5172
|
|
143
143
|
bloqade/squin/qubit.py,sha256=eX24PLk0CILaooQZDD6gv5MwSAXSncazv86M-cyT3cc,5649
|
|
@@ -182,7 +182,7 @@ bloqade/squin/stdlib/channel.py,sha256=ZZrnZlJ1UnjiGMaN2C3MFqbeCH94lb92gfmlb72pB
|
|
|
182
182
|
bloqade/squin/stdlib/gate.py,sha256=5bwImrUOOH4Yl7VBVXsQmCtJMqtXdp6u6spMLiMWE5Q,4180
|
|
183
183
|
bloqade/stim/__init__.py,sha256=QPZnQRWiiC66pwZ4yRiX2m5doqgPQorQLqc3b7fav2A,935
|
|
184
184
|
bloqade/stim/_wrappers.py,sha256=Bx_cv-B5ifuFK9sJkURAFg3AzfDzS3oMObEEheX-Ieg,4045
|
|
185
|
-
bloqade/stim/groups.py,sha256=
|
|
185
|
+
bloqade/stim/groups.py,sha256=lywG10uTr3saNsvKGa8Sqfb-xZIqiLwc3y1_QAvaaNs,599
|
|
186
186
|
bloqade/stim/dialects/__init__.py,sha256=A1Sq0jg8wi6MjRkzmuSBnHmO3EraD0pDFWz-dO6c6v8,89
|
|
187
187
|
bloqade/stim/dialects/auxiliary/__init__.py,sha256=6f57a8k2-QBtqaB0GN8FxxTBlG82oZQbVIOxxq975g4,692
|
|
188
188
|
bloqade/stim/dialects/auxiliary/_dialect.py,sha256=GExjMgzF9HV7IA25Kbl1K2i5g7aJAhdifIdrIDrvBVY,55
|
|
@@ -213,7 +213,8 @@ bloqade/stim/dialects/noise/__init__.py,sha256=WoDdIZnxelk8REiIWDKcrEW79xwISdTZl
|
|
|
213
213
|
bloqade/stim/dialects/noise/_dialect.py,sha256=SVUjAqBoGnxo13JlAlsxulIMo1QzfJb4SMSrFaCnfP4,57
|
|
214
214
|
bloqade/stim/dialects/noise/emit.py,sha256=BCxaJPLTU_pKkFgw9rtOzTIqZKP4o4NgDM-x128NX9s,2936
|
|
215
215
|
bloqade/stim/dialects/noise/stmts.py,sha256=WJOlhLMfazP6u7jMMpKeCpX-gIL8_D1jv33mxclHrz4,3661
|
|
216
|
-
bloqade/stim/emit/__init__.py,sha256=
|
|
216
|
+
bloqade/stim/emit/__init__.py,sha256=GZst8q95tnaCf789z-Ha2t6WMiOZ429X7h8mzX5rFM0,102
|
|
217
|
+
bloqade/stim/emit/impls.py,sha256=Isld_CikedHvrU6CahEkSRLwwLC87iK57CRk_ojob90,446
|
|
217
218
|
bloqade/stim/emit/stim_str.py,sha256=JyEBoIhLQASogZcUWHI9tMD4JoXYrEqUr2qaZ30gZdc,1491
|
|
218
219
|
bloqade/stim/parse/__init__.py,sha256=l2DjReB2KkgrDjP_4nP6RnoziiOewoSeZfTno1sVYTw,59
|
|
219
220
|
bloqade/stim/parse/lowering.py,sha256=L-IcR_exlxsTVv4SQ0bhzIF4_L82P-GEdK6qRd6B86Y,23723
|
|
@@ -242,7 +243,7 @@ bloqade/visual/animation/runtime/atoms.py,sha256=EmjxhujLiHHPS_HtH_B-7TiqeHgvW5u
|
|
|
242
243
|
bloqade/visual/animation/runtime/ppoly.py,sha256=JB9IP53N1w6adBJEue6J5Nmj818Id9JvrlgrmiQTU1I,1385
|
|
243
244
|
bloqade/visual/animation/runtime/qpustate.py,sha256=rlmxQeJSvaohXrTpXQL5y-NJcpvfW33xPaYM1slv7cc,4270
|
|
244
245
|
bloqade/visual/animation/runtime/utils.py,sha256=ju9IzOWX-vKwfpqUjlUKu3Ssr_UFPFFq-tzH_Nqyo_c,1212
|
|
245
|
-
bloqade_circuit-0.7.
|
|
246
|
-
bloqade_circuit-0.7.
|
|
247
|
-
bloqade_circuit-0.7.
|
|
248
|
-
bloqade_circuit-0.7.
|
|
246
|
+
bloqade_circuit-0.7.12.dist-info/METADATA,sha256=vd0O1K5RlBH7OgQCkSl2jUnRjgMT6H-L7hPQP-GHMGI,3725
|
|
247
|
+
bloqade_circuit-0.7.12.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
248
|
+
bloqade_circuit-0.7.12.dist-info/licenses/LICENSE,sha256=S5GIJwR6QCixPA9wryYb44ZEek0Nz4rt_zLUqP05UbU,13160
|
|
249
|
+
bloqade_circuit-0.7.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|