Skip to content

Commit 724b019

Browse files
committed
add docstring to original statement
1 parent 67b4de2 commit 724b019

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/bloqade/gemini/logical/stmts.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@
1212

1313
@statement(dialect=dialect)
1414
class TerminalLogicalMeasurement(ir.Statement):
15+
"""Perform measurements on a list of logical qubits.
16+
17+
Measurements are returned as a nested list where each member list
18+
contains the individual measurement results for the constituent physical qubits per logical qubit.
19+
20+
Args:
21+
qubits (IList[QubitType, Len]): The list of logical qubits
22+
23+
Returns:
24+
IList[IList[MeasurementResultType, CodeN], Len]: A nested list containing the measurement results,
25+
where each inner list corresponds to the measurements of the physical qubits that make up each logical qubit.
26+
"""
27+
1528
traits = frozenset({lowering.FromPythonCall()})
1629
qubits: ir.SSAValue = info.argument(ilist.IListType[QubitType, Len])
1730
result: ir.ResultValue = info.result(

0 commit comments

Comments
 (0)