Skip to content

Commit ca45199

Browse files
committed
Properly set the elem_type for qubits in cirq lowering (#344)
1 parent 566731f commit ca45199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bloqade/squin/cirq/lowering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def lower_qubit_getindices(
4545
self, state: lowering.State[CirqNode], qids: list[cirq.Qid]
4646
):
4747
qbits_getitem = [self.lower_qubit_getindex(state, qid) for qid in qids]
48-
qbits_stmt = ilist.New(values=qbits_getitem)
48+
qbits_stmt = ilist.New(values=qbits_getitem, elem_type=qubit.QubitType)
4949
qbits_result = state.current_frame.get(qbits_stmt.name)
5050

5151
if qbits_result is not None:

0 commit comments

Comments
 (0)