oqpy
oqpy copied to clipboard
feat: make Range iterable
Draft PR to demonstrate typing fix that removes IDE warning (Expected type 'collections.Iterable', got 'Range' instead
) for autoqasm syntax for _ in aq.range(n)
(where aq.range(n)
gives an oqpy Range
object).
If Range
is not meant to be an "iterable", there may be a fix on the autoqasm side