Skip to content

Commit 020f975

Browse files
committed
Remove outdated noise lowering
1 parent 52f5aea commit 020f975

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/bloqade/qasm2/parse/lowering.py

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from kirin.dialects import cf, scf, func, ilist
66

77
from bloqade.qasm2.types import CRegType, QRegType, QubitType
8-
from bloqade.qasm2.dialects import uop, core, expr, glob, noise, parallel
8+
from bloqade.qasm2.dialects import uop, core, expr, glob, parallel
99

1010
from . import ast
1111

@@ -356,16 +356,6 @@ def visit_GlobUGate(self, state: lowering.State[ast.Node], node: ast.GlobUGate):
356356
)
357357
)
358358

359-
def visit_NoisePAULI1(self, state: lowering.State[ast.Node], node: ast.NoisePAULI1):
360-
state.current_frame.push(
361-
noise.Pauli1(
362-
px=state.lower(node.px).expect_one(),
363-
py=state.lower(node.py).expect_one(),
364-
pz=state.lower(node.pz).expect_one(),
365-
qarg=state.lower(node.qarg).expect_one(),
366-
)
367-
)
368-
369359
def visit_Number(self, state: lowering.State[ast.Node], node: ast.Number):
370360
if isinstance(node.value, int):
371361
stmt = expr.ConstInt(value=node.value)

0 commit comments

Comments
 (0)