Skip to content

Commit b4fbd2f

Browse files
committed
remove bespoke constprop for wire
1 parent aa571b3 commit b4fbd2f

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/bloqade/squin/wire.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
dialect.
77
"""
88

9-
from kirin import ir, types, interp, lowering
9+
from kirin import ir, types, lowering
1010
from kirin.decl import info, statement
1111
from kirin.lowering import wraps
1212

@@ -112,18 +112,6 @@ class Reset(ir.Statement):
112112
wire: ir.SSAValue = info.argument(WireType)
113113

114114

115-
# Issue where constant propagation can't handle
116-
# multiple return values from Apply properly
117-
@dialect.register(key="constprop")
118-
class ConstPropWire(interp.MethodTable):
119-
120-
@interp.impl(Apply)
121-
@interp.impl(Broadcast)
122-
def apply(self, interp, frame, stmt: Apply):
123-
124-
return frame.get_values(stmt.inputs)
125-
126-
127115
@wraps(Unwrap)
128116
def unwrap(qubit: Qubit) -> Wire: ...
129117

0 commit comments

Comments
 (0)