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 1229479 commit 68a9539Copy full SHA for 68a9539
src/bloqade/pyqrack/qasm2/core.py
@@ -1,6 +1,7 @@
1
from typing import Any
2
3
from kirin import interp
4
+from kirin.interp import InterpreterError
5
from kirin.dialects import ilist
6
7
from bloqade.pyqrack.reg import (
@@ -70,7 +71,7 @@ def measure(
70
71
else:
72
cbit.set_value(interp.loss_m_result)
73
- raise RuntimeError(
74
+ raise InterpreterError(
75
f"Expected measure call on either a single qubit and classical bit, or two registers, but got the types {type(qarg)} and {type(carg)}"
76
)
77
0 commit comments