Skip to content

Commit bd040ed

Browse files
committed
Fix Measure stmt docstring
1 parent 47375ed commit bd040ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bloqade/qasm2/dialects/core/stmts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ class Measure(ir.Statement):
4747
name = "measure"
4848
traits = frozenset({lowering.FromPythonCall()})
4949
qarg: ir.SSAValue = info.argument(QubitType | QRegType)
50-
"""qarg (Qubit): The qubit to measure."""
50+
"""qarg (Qubit | QReg): The qubit or quantum register to measure."""
5151
carg: ir.SSAValue = info.argument(BitType | CRegType)
52-
"""carg (Bit): The bit to store the result in."""
52+
"""carg (Bit | CReg): The bit or register to store the result in."""
5353

5454
def check_type(self) -> None:
5555
qarg_is_qubit = self.qarg.type.is_subseteq(QubitType)

0 commit comments

Comments
 (0)