oqpy icon indicating copy to clipboard operation
oqpy copied to clipboard

feat: make Range iterable

Open ajberdy opened this issue 7 months ago • 0 comments

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

ajberdy avatar Nov 16 '23 18:11 ajberdy