Skip to content

Conversation

@jlapeyre
Copy link
Collaborator

@jlapeyre jlapeyre commented Dec 1, 2025

This replaces some clumsy code with more efficient and cleaner code.

Various types-- "flavors" --of lists are parsed with a single function. The flavor is sent as a parameter to this function so that particulars may be treated correctly. Furthermore, each kind of list has a token or token that signifies no more items when it is encountered. This commit factors this check for end tokens into a single function and removes some redundancy.

This replaces some clumsy code, with more efficient and cleaner code.
Various types, "flavors" of lists are parsed with a single function.
Each kind of list has a token or token that signifys no more items when
encountered. This commit factors this into a single function and removes
some redundancy.
@jlapeyre jlapeyre merged commit a879417 into Qiskit:main Dec 1, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant