Skip to content

Commit 93b41b9

Browse files
committed
renaming variable
1 parent 1168242 commit 93b41b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bloqade/analysis/address/analysis.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ def try_eval_const_prop(
5959
case _:
6060
return result
6161

62-
def unpack_iterable(self, collection: Address):
62+
def unpack_iterable(self, iterable: Address):
6363
"""Extract the values of a container lattice element.
6464
6565
Args:
66-
collection: The lattice element representing a container.
66+
iterable: The lattice element representing a container.
6767
6868
Returns:
6969
A tuple of the container type and the contained values.
@@ -76,13 +76,13 @@ def from_constant(constant: const.Result) -> Address:
7676
def from_literal(literal: Any) -> Address:
7777
return ConstResult(const.Value(literal))
7878

79-
match collection:
79+
match iterable:
8080
case PartialIList(data):
8181
return PartialIList, data
8282
case PartialTuple(data):
8383
return PartialTuple, data
8484
case AddressReg():
85-
return PartialIList, collection.qubits
85+
return PartialIList, iterable.qubits
8686
case ConstResult(const.Value(IList() as data)):
8787
return PartialIList, tuple(map(from_literal, data))
8888
case ConstResult(const.Value(tuple() as data)):

0 commit comments

Comments
 (0)