-
Notifications
You must be signed in to change notification settings - Fork 706
Inputs can be provided from python to QASM 3.0 programs #7651
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
Merged
Merged
Changes from 250 commits
Commits
Show all changes
622 commits
Select commit
Hold shift + click to select a range
086dde1
Merge branch 'feature/subroutines' into feature/control-flow
comp-phys-marc b18f8fc
Merge branch 'feature/variables' into feature/subroutines
comp-phys-marc 3f053bb
Merge branch 'feature/end-statements' into feature/variables
comp-phys-marc 776d6c4
Run formatter
comp-phys-marc afb2969
Pass Context instead of dict
comp-phys-marc 6546d4c
Use dataclass for Variables
comp-phys-marc b771aa5
Feedback
comp-phys-marc db29b72
PR Feedback
comp-phys-marc e7c5c75
Move retrieve_variable into Context
comp-phys-marc 219fe4d
Format
comp-phys-marc aa0883a
Update docs
comp-phys-marc 2be2c10
Merge branch 'feature/end-statements' into feature/variables
comp-phys-marc d274a8e
Improve test coverage
comp-phys-marc 6e57e3f
More test coverage
comp-phys-marc 5d5c632
Use set op instead of loop to build wire list
comp-phys-marc 199f46e
PR Feedback
comp-phys-marc 5ece1da
Merge remote-tracking branch 'origin/feature/variables' into feature/…
comp-phys-marc ac9a5dd
Debug failing regex
comp-phys-marc 0c30fa2
Casting
comp-phys-marc 36e1c11
Improve coverage
comp-phys-marc b7b98c4
Merge branch 'master' into feature/variables
comp-phys-marc 8c34b18
Move exprs and casts to separate PR
comp-phys-marc 650fdf9
Simple expressions and casts
comp-phys-marc d8ce679
pylint
comp-phys-marc c5d1355
pylint
comp-phys-marc b886aea
Refactor pylint directives
comp-phys-marc c8c24be
Change TypeError -> NotImplementedError
comp-phys-marc 30a3227
Change TypeError -> NotImplementedError in tests
comp-phys-marc 2ed517a
Merge remote-tracking branch 'origin/feature/variables' into feature/…
comp-phys-marc 6ede81d
PR Feedbback
comp-phys-marc 897bce9
Full file paths for CI
comp-phys-marc 5d2a43e
Format
comp-phys-marc 33c9e04
Trigger CI
comp-phys-marc a484ea8
Simplify indexing
comp-phys-marc a6c1cc8
File paths for CI
comp-phys-marc e804d6b
Handle more general indices
comp-phys-marc d3b6f76
Merge branch 'feature/variables' into feature/expressions
comp-phys-marc 988c5d1
Implement binary and unary exprs without eval
comp-phys-marc 0b66c1d
pylint
comp-phys-marc 927766f
Improve coverage
comp-phys-marc e1ee664
Assignment expressions
comp-phys-marc 08d61e0
pylint
comp-phys-marc 33e0aea
pylint
comp-phys-marc 70fa8aa
Test Expressions
comp-phys-marc 30d3180
format
comp-phys-marc 3afd579
Remove redundant logic in retrieve_variable
comp-phys-marc 22d1ba5
Test unary exprs
comp-phys-marc 4d74068
Merge branch 'feature/variables' into feature/expressions
comp-phys-marc d0e58c4
Merge branch 'feature/expressions' into feature/subroutines
comp-phys-marc 7cfa9d2
Refactor dict to Variable
comp-phys-marc 2ceb1d9
File paths for CI
comp-phys-marc 097a2b1
Merge branch 'feature/subroutines' into feature/control-flow
comp-phys-marc b5961c7
Merge branch 'feature/control-flow' into feature/measurement
comp-phys-marc 4d3f4c4
Refactor after merge
comp-phys-marc 467820b
Roughly equal
comp-phys-marc 59a1248
Switch case
comp-phys-marc a7353d7
Merge branch 'master' into feature/expressions
comp-phys-marc 0e16fdc
Merge branch 'master', fix switch
comp-phys-marc 4a02d0b
Clean up merge
comp-phys-marc 98a3042
Cleanup tests
comp-phys-marc fc33e3b
pylint
comp-phys-marc f5bfd74
Typo in comment
comp-phys-marc 98458c4
PR feedback
comp-phys-marc ce3b163
Merge remote-tracking branch 'origin' into feature/expressions
comp-phys-marc 10bf4d2
Merge remote-tracking branch 'origin/feature/expressions' into featur…
comp-phys-marc 0fe1c7d
Format
comp-phys-marc 6400876
Merge branch 'feature/expressions' into feature/subroutines
comp-phys-marc 2849bd4
pylint
comp-phys-marc 9006e26
Merge branch 'feature/expressions' into feature/subroutines
comp-phys-marc 6d12397
Merge branch 'feature/subroutines' into feature/control-flow
comp-phys-marc 4cf6b49
Cleanup merge
comp-phys-marc 28ccbf5
File paths for CI
comp-phys-marc 0692899
Improve coverage
comp-phys-marc 51a9975
Format, pylint
comp-phys-marc 5271539
Merge branch 'feature/expressions' into feature/subroutines
comp-phys-marc ce3ad7f
Merge branch 'feature/subroutines' into feature/control-flow
comp-phys-marc 605fc1f
Merge branch 'feature/control-flow' into feature/measurement
comp-phys-marc 1f7fd14
isnumeric doesn't match "."
comp-phys-marc 3733f58
Test organization
comp-phys-marc 5ba2f3a
Merge branch 'feature/expressions' into feature/subroutines
comp-phys-marc 619a257
Merge branch 'feature/subroutines' into feature/control-flow
comp-phys-marc 96269d7
Merge branch 'feature/control-flow' into feature/measurement
comp-phys-marc 391c74d
Format
comp-phys-marc 47b90e6
Processing functions
comp-phys-marc 56d8f5f
typo in comment
comp-phys-marc 481b1f4
Minor cosmetic refactor
comp-phys-marc d208757
Merge remote-tracking branch 'origin/feature/expressions' into featur…
comp-phys-marc 237c776
Update changelog
comp-phys-marc 63e2bdc
Merge branch 'master' into feature/expressions
comp-phys-marc 1b58489
PR feedback
comp-phys-marc 0d6e9a4
Merge branch 'feature/expressions' into feature/subroutines
comp-phys-marc 16676d5
Merge branch 'feature/subroutines' into feature/control-flow
comp-phys-marc f3e40b0
Merge branch 'feature/control-flow' into feature/measurement
comp-phys-marc 867b659
Remove redundant check
comp-phys-marc 72aa5fa
Remove unused key
comp-phys-marc 4f6a80a
Test undefined sub
comp-phys-marc 22d840b
File paths for CI
comp-phys-marc 8da2afe
Merge branch 'master' into feature/subroutines
comp-phys-marc 91646ec
[WIP] processing measurementvalues in exprs
comp-phys-marc 6627fba
format, pylint
comp-phys-marc 6d62940
Test classical arg
comp-phys-marc d2674b2
Only make constants accessible on inner scope's vars
comp-phys-marc 711a479
Remove outer scopes
comp-phys-marc 13c6f84
Remove outer wires
comp-phys-marc d00aa12
Remove unreachable branch
comp-phys-marc a749de8
Update changelog
comp-phys-marc 663b7ac
processing measurementvalues in exprs
comp-phys-marc 8a2771f
Unary ops and measurements
comp-phys-marc 1eefbe4
Simplify subroutine naming
comp-phys-marc bf0db2a
[WIP] test post processing
comp-phys-marc fc8fe3b
Cleanup minor typo in suggested change
comp-phys-marc c3417bc
PR Feedback
comp-phys-marc b2daffe
Pass attribute retrievals through to context dict
comp-phys-marc 73a8d2a
Fix infinite recursion
comp-phys-marc c648a93
Test post processing
comp-phys-marc 684bc46
Cleanup test
comp-phys-marc 1c17d2f
Test resets
comp-phys-marc 8c204ff
Format
comp-phys-marc d5c4567
Remove recursion protection - now unecessary
comp-phys-marc a6f667b
Pass None to getattr instead of catching KeyError
comp-phys-marc f7e8b94
Revert suggested change
comp-phys-marc d0278a6
Format, paths for CI
comp-phys-marc 3d20119
Merge branch 'feature/subroutines' into feature/control-flow
comp-phys-marc c22a6c6
Merge branch 'feature/control-flow' into feature/measurement
comp-phys-marc 3e27f82
format
comp-phys-marc 2774bcf
Remove outer_wires, outer_scopes
comp-phys-marc 3851b2b
Merge branch 'feature/control-flow' into feature/measurement
comp-phys-marc 6dc1c9e
Test measurement outside of subroutine
comp-phys-marc b2983d5
Inputs
comp-phys-marc d80a23b
Create PR
comp-phys-marc 323be18
Update docstring
comp-phys-marc 9131bfa
Merge branch 'feature/measurement' into feature/inputs
comp-phys-marc 1b2ac89
Update docstring
comp-phys-marc 408f3af
Test naming
comp-phys-marc a4511ca
Minor fixes
comp-phys-marc f0a53f8
Merge branch 'feature/control-flow' into feature/measurement
comp-phys-marc 4aa6701
Merge branch 'feature/measurement' into feature/inputs
comp-phys-marc 858d82a
Minor cleanup
comp-phys-marc 6c53100
Merge branch 'feature/control-flow' into feature/measurement
comp-phys-marc 802ecf9
Merge branch 'feature/measurement' into feature/inputs
comp-phys-marc 5b6ed05
Repeated calls test
comp-phys-marc fe671b1
Test passing
comp-phys-marc d9fdab3
format
comp-phys-marc bab7814
Merge branch 'feature/subroutines' into feature/control-flow
comp-phys-marc d91c081
Merge branch 'feature/control-flow' into feature/measurement
comp-phys-marc 2b83310
Merge branch 'feature/measurement' into feature/inputs
comp-phys-marc 82f4eee
replace else if with wlif
comp-phys-marc 268eabb
Trigger CI
comp-phys-marc a4e2f12
Merge remote-tracking branch 'origin/feature/subroutines' into featur…
comp-phys-marc cf419af
Init wire map on call and test
comp-phys-marc b61e01d
path for CI
comp-phys-marc 727a1c1
Reset return
comp-phys-marc 741037e
Stylistic change
comp-phys-marc 68c899d
Resolve wire renamings in outer contexts before new calls
comp-phys-marc 400fd35
Merge remote-tracking branch 'origin/feature/subroutines' into featur…
comp-phys-marc be4c009
Could get a collision with the first call
comp-phys-marc 51caaa7
Merge branch 'master' into feature/subroutines
comp-phys-marc 712ee90
Merge branch 'feature/subroutines' into feature/control-flow
comp-phys-marc 27f9570
Merge branch 'feature/control-flow' into feature/measurement
comp-phys-marc 52a5624
Merge branch 'feature/measurement' into feature/inputs
comp-phys-marc 6f292b0
Minor feedback
comp-phys-marc 36d20fd
Format
comp-phys-marc 2eae3b6
Avoid pointless lookup
comp-phys-marc 37d4aa5
Merge branch 'feature/subroutines' into feature/control-flow
comp-phys-marc 3d15137
Format
comp-phys-marc 1b0d3d9
Improve test coverage
comp-phys-marc f7d8f2e
Handle set declarations and try to simplify loop iterators
comp-phys-marc 999e24a
Format, cleanup
comp-phys-marc f133db4
Cleanup
comp-phys-marc 4b48978
pylint
comp-phys-marc 979dbce
Control on true rather than false case
comp-phys-marc 839d451
Fix indentation from suggested change
comp-phys-marc b91e312
Control on true rather than false case
comp-phys-marc a63117c
Handle scoping of constants
comp-phys-marc 5367de9
Format
comp-phys-marc 431ed0e
Merge branch 'feature/subroutines' into feature/control-flow
comp-phys-marc 100d7f7
Merge branch 'feature/control-flow' into feature/measurement
comp-phys-marc fe42a88
Merge branch 'feature/measurement' into feature/inputs
comp-phys-marc aa04138
pylint
comp-phys-marc b2cae8c
Debug unrelated test failing in CI
comp-phys-marc dfeb535
Unecessary partial use
comp-phys-marc a970daa
Remove erroneous lines in suggested change
comp-phys-marc 237f039
Format
comp-phys-marc 7e871e5
Debug failing docs build in CI
comp-phys-marc aa0af14
More formal wording in docstring.
comp-phys-marc 97a9ec7
More formal wording in docstring.
comp-phys-marc 5e1b0e1
More formal wording in docstring.
comp-phys-marc 5adb8ea
Refactor import for brevity
comp-phys-marc 6440669
Merge remote-tracking branch 'origin/feature/control-flow' into featu…
comp-phys-marc 32d5977
Format
comp-phys-marc b337dba
Remove ast. prefix from docstrings
comp-phys-marc 7eecdb4
PR feedback
comp-phys-marc 157615f
Raise using MCM as while condition
comp-phys-marc 5961d8d
pylint
comp-phys-marc 4527a58
Trigger CI
comp-phys-marc 71a6090
Merge branch 'feature/control-flow' into feature/measurement
comp-phys-marc 651d385
Paths for CI
comp-phys-marc c12faba
format
comp-phys-marc 80cbade
Clean up tests
comp-phys-marc 5d59b6d
Mudit's feedback
comp-phys-marc e3be2b2
Test of nested control flow
comp-phys-marc bf16181
Add empty newline at end of file
comp-phys-marc e796806
Add empty newline at end of file
comp-phys-marc 31d6a92
Add empty newline at end of file
comp-phys-marc d28cb73
Update docstring
comp-phys-marc adda770
Add newlines to ends of .qasm files
comp-phys-marc 3b0bab8
Typo in comment
comp-phys-marc c3ebd93
Reword docstring
comp-phys-marc 57e8c81
Tighten type hint on unary operands
comp-phys-marc 1c41686
Merge remote-tracking branch 'origin/feature/measurement' into featur…
comp-phys-marc 796bb31
Revert type hint change
comp-phys-marc 2d9a177
Update test
comp-phys-marc 5e7d80a
Merge branch 'master' into feature/control-flow
comp-phys-marc 20e4e4b
Merge remote-tracking branch 'origin/feature/control-flow' into featu…
comp-phys-marc 263f129
Improve type hints
comp-phys-marc 838da90
Codefactor
comp-phys-marc ef17074
Codefactor
comp-phys-marc 59044a1
format
comp-phys-marc 57673a8
Simplify loops scopes
comp-phys-marc 25eb22e
Oops I over simplified
comp-phys-marc 0edf61f
Simplify by removing unecessary block scopes
comp-phys-marc d322e21
Paths for CI
comp-phys-marc a9cc3db
format
comp-phys-marc 8ab4f95
__getitem__ no longer necessary or helpful
comp-phys-marc c6ed0a2
Simplify 3 lines -> 1 line
comp-phys-marc bd341b3
Rename _handle_break -> execute_loop
comp-phys-marc 93ec021
Trigger CI
comp-phys-marc b140f19
Trigger CI
comp-phys-marc ca527ea
Merge remote-tracking branch 'origin/feature/control-flow' into featu…
comp-phys-marc b4641d1
Merge branch 'master' into feature/control-flow
comp-phys-marc f1acac2
Merge branch 'master' into feature/control-flow
comp-phys-marc 8c56393
Merge branch 'feature/control-flow' into feature/measurement
comp-phys-marc 0e27170
Allow subscripting of Context - helpful now
comp-phys-marc 1b11f54
Merge branch 'master' into feature/measurement
comp-phys-marc e2208d3
PR feedback
comp-phys-marc 90cb251
Merge branch 'master' into feature/measurement
comp-phys-marc 403d316
Add PR to changelog
comp-phys-marc 993d203
Merge branch 'feature/measurement' into feature/inputs
comp-phys-marc 9706dff
Merge branch 'master' into feature/inputs
comp-phys-marc c0b0f05
Raise if too many / incorrect params are passed
comp-phys-marc 70ede3d
Docs
comp-phys-marc b4b275a
scope name
comp-phys-marc 98f6735
pylint
comp-phys-marc eaa85a2
Merge branch 'master' into feature/inputs
comp-phys-marc 582ea90
Cleanup merge
comp-phys-marc 0e94c47
Merge branch 'master' into feature/inputs
comp-phys-marc c2a2ad0
Pass kwargs through returned func
comp-phys-marc 1fa3ffa
Remove redundant kwargs
comp-phys-marc a50ddc9
cleanup test
comp-phys-marc fc13f7f
pylint
comp-phys-marc 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
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
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.
Uh oh!
There was an error while loading. Please reload this page.