We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 653bc6f commit 07c6380Copy full SHA for 07c6380
src/bloqade/analysis/address/impls.py
@@ -190,9 +190,13 @@ def unwrap(
190
stmt: squin.wire.Unwrap,
191
):
192
193
- origin_qubit = frame.get_casted(stmt.qubit, AddressQubit)
+ origin_qubit = frame.get(stmt.qubit)
194
+
195
+ if isintance(origin_qubit, AddressQubit):
196
- return (AddressWire(origin_qubit=origin_qubit),)
197
+ return (AddressWire(origin_qubit=origin_qubit),)
198
+ else:
199
+ return (Address.top(), )
200
201
@interp.impl(squin.wire.Apply)
202
def apply(
0 commit comments