-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New classical expr.Range specification #14618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
arthurostrauss
wants to merge
126
commits into
Qiskit:main
Choose a base branch
from
arthurostrauss:dynamic_range_expr
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+921
−23
Open
Changes from all commits
Commits
Show all changes
126 commits
Select commit
Hold shift + click to select a range
9ec68b2
Adds range expression to classical circuits
arthurostrauss 8962ff5
Fixed bug
arthurostrauss 4828738
Reformat
arthurostrauss b4af557
Linting + bug in attribute getting in test
arthurostrauss 26485f9
Fixed additional test
arthurostrauss 6ed3917
New linting
arthurostrauss 3d265af
Enables type specification for Range expressions
arthurostrauss 8c4ef28
Added dummy __len__ method to Range + fix Cast logic
arthurostrauss 92285ae
Adds range expression to classical circuits
arthurostrauss 2a2d425
Fixed bug
arthurostrauss a2a52a6
Reformat
arthurostrauss e1b46be
Linting + bug in attribute getting in test
arthurostrauss d7f4afe
New linting
arthurostrauss 5505f00
Enables type specification for Range expressions
arthurostrauss 4c25f5f
Added dummy __len__ method to Range + fix Cast logic
arthurostrauss 60e2afd
Additional expr fix
arthurostrauss 87fcb7e
Added extra check on specified Range type and corrected tests
arthurostrauss 969e864
linting
arthurostrauss e9f6f42
Added new release note
arthurostrauss 4dd4d01
Adds support for range expressions
arthurostrauss 57a2e36
Linting fix attempt
arthurostrauss 44cbb3d
Added default step value to 1 in promoted type
arthurostrauss 1f2edfb
Reformat and small fix on arg name
arthurostrauss 24c445d
Linting
arthurostrauss 1c44a42
Fixed tests and linting
arthurostrauss 66d6f25
Additional linting
arthurostrauss f017b0a
Update release note section name
arthurostrauss 4adfad5
Release notes rewriting
arthurostrauss 10d79e5
additional editing of release note
arthurostrauss 5077d2f
Linting fix
arthurostrauss 7e15c65
Refactors range expressions to ensure step is always present
arthurostrauss 55a7bc2
Reformat
arthurostrauss cb1eee2
Linting
arthurostrauss a476007
Updates range representation in Python
arthurostrauss 6fa6720
Removes unnecessary formatting in repr
arthurostrauss 6e75c81
Removed unnecessary logic on error message
arthurostrauss a337b4c
Linting
arthurostrauss b474bbe
Update range.rs (linting)
arthurostrauss 675c05a
Update qiskit/qasm3/ast.py
arthurostrauss 48c57d3
Update releasenotes
arthurostrauss 8f381cb
Update releasenotes
arthurostrauss f540df3
Update releasenotes
arthurostrauss 00c1244
Linting
arthurostrauss 22bb3c2
Added copy and pickle method to comply with transpiler constraints
arthurostrauss eb6622c
Reformat
arthurostrauss ab49a25
Updated upgrade section of release notes
arthurostrauss fe5fcc8
Adds range expression to classical circuits
arthurostrauss 1fba76a
Fixed bug
arthurostrauss 9e55386
Reformat
arthurostrauss 15f3ca5
Linting + bug in attribute getting in test
arthurostrauss fc63ffb
Fixed additional test
arthurostrauss 3dc8b3d
New linting
arthurostrauss 89fc193
Enables type specification for Range expressions
arthurostrauss 74b366f
Added dummy __len__ method to Range + fix Cast logic
arthurostrauss 751cadd
Adds range expression to classical circuits
arthurostrauss 934f37b
Fixed bug
arthurostrauss 93243a1
Reformat
arthurostrauss 0aaf149
Linting + bug in attribute getting in test
arthurostrauss 5084882
New linting
arthurostrauss 49fb7ac
Enables type specification for Range expressions
arthurostrauss 7a5bbaf
Added dummy __len__ method to Range + fix Cast logic
arthurostrauss 07f46a7
Additional expr fix
arthurostrauss d1ff3f3
Added extra check on specified Range type and corrected tests
arthurostrauss 763cfc6
linting
arthurostrauss a91937b
Added new release note
arthurostrauss 51e0d78
Adds support for range expressions
arthurostrauss a926362
Linting fix attempt
arthurostrauss ee9c4bd
Added default step value to 1 in promoted type
arthurostrauss ed62fc7
Reformat and small fix on arg name
arthurostrauss 0063acb
Linting
arthurostrauss 133b21e
Fixed tests and linting
arthurostrauss 55dfde9
Additional linting
arthurostrauss 5b2ef05
Update release note section name
arthurostrauss 0cab043
Release notes rewriting
arthurostrauss 070cb2f
additional editing of release note
arthurostrauss bfb7fd5
Linting fix
arthurostrauss 00491cf
Refactors range expressions to ensure step is always present
arthurostrauss f57e51f
Reformat
arthurostrauss a59a6eb
Linting
arthurostrauss 375901d
Updates range representation in Python
arthurostrauss 65c0fc1
Removes unnecessary formatting in repr
arthurostrauss 3dac32b
Removed unnecessary logic on error message
arthurostrauss 7b3ceee
Linting
arthurostrauss 54bfab8
Update range.rs (linting)
arthurostrauss adf5b9c
Update qiskit/qasm3/ast.py
arthurostrauss 01a80a2
Update releasenotes
arthurostrauss 67d9198
Update releasenotes
arthurostrauss 1419121
Update releasenotes
arthurostrauss e597905
Linting
arthurostrauss bc2dc75
Added copy and pickle method to comply with transpiler constraints
arthurostrauss 2ff1523
Reformat
arthurostrauss ce7e4d9
Updated upgrade section of release notes
arthurostrauss 1506e9d
Merge remote-tracking branch 'origin/dynamic_range_expr' into dynamic…
arthurostrauss 87f009e
Merge remote-tracking branch 'Qiskit/main' into dynamic_range_expr
arthurostrauss d1ba761
Merge remote-tracking branch 'Qiskit/main' into dynamic_range_expr
arthurostrauss c43e3a2
Merge remote-tracking branch 'Qiskit/main' into dynamic_range_expr
arthurostrauss 9c3c8ae
Updated Range to comply with latest Rust changes
arthurostrauss ebc7331
Linting
arthurostrauss 8231ad4
Update range.rs
arthurostrauss b30c75a
Merge branch 'main' into dynamic_range_expr
1ucian0 ca6bab5
Merge branch 'main' into dynamic_range_expr
arthurostrauss 7a7241b
Merge remote-tracking branch 'Qiskit/main' into dynamic_range_expr
arthurostrauss ea7bd65
Adapted Range to comply with latest Value specification
arthurostrauss 8f82b3d
Upgraded test Range using ddt
arthurostrauss ff37ae2
Fixed default type in QASM3 AST for ForLoop statement
arthurostrauss 2d48480
Merge remote-tracking branch 'Qiskit/main' into dynamic_range_expr
arthurostrauss 3fc6983
Merge remote-tracking branch 'Qiskit/main' into dynamic_range_expr
arthurostrauss bf82be2
Merge remote-tracking branch 'Qiskit/main' into dynamic_range_expr
arthurostrauss f47de54
Merge remote-tracking branch 'Qiskit/main' into dynamic_range_expr
arthurostrauss 4221598
Merge remote-tracking branch 'Qiskit/main' into dynamic_range_expr
arthurostrauss ef65946
Merge remote-tracking branch 'Qiskit/main' into dynamic_range_expr
arthurostrauss e107e23
Merge remote-tracking branch 'Qiskit/main' into dynamic_range_expr
arthurostrauss effbf32
Merge remote-tracking branch 'Qiskit/main' into dynamic_range_expr
arthurostrauss 1a7db2f
Merge remote-tracking branch 'Qiskit/main' into dynamic_range_expr
arthurostrauss ef2784a
Adds support for range indexsets in for-loops
arthurostrauss 810a89a
Improves ForLoopOp drawing with dynamic range
arthurostrauss cbf2acd
Simplifies range formatting in circuit visualization
arthurostrauss 19bd045
Added is_empty() method for ForLoopIndexSet
arthurostrauss 30dce33
Improves display of range objects in circuit visualization
arthurostrauss 707d8d0
Merge branch 'main' into dynamic_range_expr
1ucian0 0f2f1f1
Merge remote-tracking branch 'Qiskit/main' into dynamic_range_expr
arthurostrauss b0da9ee
Reduces cloning in range expression creation.
arthurostrauss f0e680e
Merge remote-tracking branch 'Qiskit/main' into dynamic_range_expr
arthurostrauss b245cc4
Merge remote-tracking branch 'Qiskit/main' into dynamic_range_expr
arthurostrauss d5fe0e6
Merge remote-tracking branch 'Qiskit/main' into dynamic_range_expr
arthurostrauss 4666007
Merge remote-tracking branch 'Qiskit/main' into dynamic_range_expr
arthurostrauss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't fully understand what this function does - and so, whether we should also compare the values of start and stop (and step).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It recursively goes into the equivalence checks of the components of the Range, which are defined in other modules. I did not pay too much attention of what it was checking under the hood