-
Notifications
You must be signed in to change notification settings - Fork 707
Add support for QASM 3.0 qubit registers #7767
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 all commits
Commits
Show all changes
737 commits
Select commit
Hold shift + click to select a range
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 7a844a1
Ouptuts
comp-phys-marc 964f16d
Update docs
comp-phys-marc 119f8d3
Return outputs from from_qasm3
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 ef5292d
Merge branch 'feature/inputs' into feature/outputs
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 87cdbff
Merge branch 'feature/inputs' into feature/outputs
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 4dd6d04
Merge branch 'feature/inputs' into feature/outputs
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 4c224ed
Merge branch 'feature/inputs' into feature/outputs
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 d4d2024
Basic custom gates
comp-phys-marc 1823bb6
Call a gate within a gate
comp-phys-marc 70488b3
Format
comp-phys-marc 128f9b6
Docs
comp-phys-marc 069e1eb
Built-in constants
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 f5b9886
Built in functions
comp-phys-marc e69c649
Docs
comp-phys-marc 0f5f797
Update changelog
comp-phys-marc f133db4
Cleanup
comp-phys-marc 4b48978
pylint
comp-phys-marc a623bfc
Docs
comp-phys-marc 465134c
Paths for CI
comp-phys-marc ce60304
Format
comp-phys-marc 979dbce
Control on true rather than false case
comp-phys-marc 839d451
Fix indentation from suggested change
comp-phys-marc 74f675d
Add sdg, tdg, CU gates
comp-phys-marc b91e312
Control on true rather than false case
comp-phys-marc a63117c
Handle scoping of constants
comp-phys-marc 7dfafa7
Test SDG, TDG, CU
comp-phys-marc e8ca87a
Update docs
comp-phys-marc 5367de9
Format
comp-phys-marc 414bce9
Create PR
comp-phys-marc e6c05a8
Test CU
comp-phys-marc 73af8dc
Add resource params
comp-phys-marc a4a8379
Use ctrl and GlobalPhase instead of new fundamental gate
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 5cbb792
Merge branch 'feature/inputs' into feature/outputs
comp-phys-marc a09194b
Merge branch 'feature/outputs' into feature/custom-gates
comp-phys-marc 21d9bb8
Merge branch 'feature/custom-gates' into feature/built-in-constants
comp-phys-marc 130eef8
Merge branch 'feature/built-in-constants' into feature/built-in-funct…
comp-phys-marc ffb4a61
Merge branch 'feature/built-in-functions' into feature/dagger-gates
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 9b84812
Newline at end of file
comp-phys-marc ed41fbc
Test _rotate, support conversion of int vars
comp-phys-marc 44dd9f8
Path for CI
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 747f7b0
Support for qubit registers
comp-phys-marc 4b366ee
PR feedback
comp-phys-marc e8a29ec
Add test for index out of range
comp-phys-marc 6bcb33f
Test nested renaming of registers
comp-phys-marc f1442e3
Fix namespace leakage bug
comp-phys-marc a78c591
pylint
comp-phys-marc 0d3bd07
pylint
comp-phys-marc 48e30e4
Trigger CI
comp-phys-marc 993d203
Merge branch 'feature/measurement' into feature/inputs
comp-phys-marc 9b697f3
Merge branch 'feature/inputs' into feature/outputs
comp-phys-marc 83779bd
Merge branch 'feature/outputs' into feature/custom-gates
comp-phys-marc 2f53567
Merge branch 'feature/custom-gates' into feature/built-in-constants
comp-phys-marc 1065e69
Merge branch 'feature/built-in-constants' into feature/built-in-funct…
comp-phys-marc d981c29
Merge branch 'feature/built-in-functions' into feature/dagger-gates
comp-phys-marc ddb45aa
Merge branch 'feature/dagger-gates' into feature/qubit-registers
comp-phys-marc b6fdea1
typo
comp-phys-marc b07685f
Merge branch 'feature/built-in-functions' into feature/dagger-gates
comp-phys-marc 7f33036
Merge branch 'feature/dagger-gates' into feature/qubit-registers
comp-phys-marc fc16326
typo
comp-phys-marc 573f158
pylint
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 216187e
Stylistic reordering of clauses
comp-phys-marc 540a63a
Merge branch 'feature/inputs' into feature/outputs
comp-phys-marc 4ef4973
Merge branch 'feature/outputs' into feature/custom-gates
comp-phys-marc fdd9f9f
Remove unecessary methods
comp-phys-marc 94fc9bd
Format
comp-phys-marc 9686960
Merge branch 'feature/custom-gates' into feature/built-in-constants
comp-phys-marc 3d2f01c
Merge branch 'feature/built-in-constants' into feature/built-in-funct…
comp-phys-marc 9f25d2b
Merge branch 'feature/built-in-functions' into feature/dagger-gates
comp-phys-marc 7d4b37a
Merge branch 'feature/dagger-gates' into feature/qubit-registers
comp-phys-marc ec503ad
Add to changelog
comp-phys-marc 362c835
Cleanup merge
comp-phys-marc 65397de
Pylint
comp-phys-marc 8c566f9
Pylint
comp-phys-marc 4791e4d
Merge branch 'feature/built-in-functions' into feature/dagger-gates
comp-phys-marc 0034192
Merge branch 'feature/dagger-gates' into feature/qubit-registers
comp-phys-marc 3adcb3f
Pylint
comp-phys-marc 8f817af
Merge branch 'feature/built-in-functions' into feature/dagger-gates
comp-phys-marc 6d899e1
Merge branch 'feature/dagger-gates' into feature/qubit-registers
comp-phys-marc eaa85a2
Merge branch 'master' into feature/inputs
comp-phys-marc 582ea90
Cleanup merge
comp-phys-marc aee090b
Merge branch 'feature/inputs' into feature/outputs
comp-phys-marc 9b75faa
Format
comp-phys-marc 4be5a26
Update test
comp-phys-marc 1fb144c
Merge branch 'feature/outputs' into feature/custom-gates
comp-phys-marc 001e28e
Merge branch 'feature/custom-gates' into feature/built-in-constants
comp-phys-marc 9955c6f
Merge branch 'feature/built-in-constants' into feature/built-in-funct…
comp-phys-marc b8fc493
Test _get_bit_type_val
comp-phys-marc 51acdef
Improve coverage
comp-phys-marc ce8c999
Typo
comp-phys-marc 63d20e3
Merge branch 'feature/built-in-functions' into feature/dagger-gates
comp-phys-marc 39bb0ee
Merge branch 'feature/dagger-gates' into feature/qubit-registers
comp-phys-marc 784cb61
Improve coverage
comp-phys-marc e48da2e
Merge branch 'feature/built-in-functions' into feature/dagger-gates
comp-phys-marc 32a99fc
Merge branch 'feature/dagger-gates' into feature/qubit-registers
comp-phys-marc 6901409
Changelog
comp-phys-marc d3acad2
Improve coverage
comp-phys-marc 6453e6e
pylint
comp-phys-marc cbc8b78
Merge branch 'master' into feature/dagger-gates
comp-phys-marc 67fd665
cleanup merge
comp-phys-marc c155315
Cleanup merge
comp-phys-marc 17ba068
PR Feeedback
comp-phys-marc cc81ca8
Abstract quantum paramter binding
comp-phys-marc 480303f
Handle index out of bounds
comp-phys-marc 5d840cb
Merge branch 'feature/dagger-gates' into feature/qubit-registers
comp-phys-marc f8bcd33
Remove redundant test
comp-phys-marc 0d9c514
Account for vars
comp-phys-marc 182cfc5
Consistency of function call and custom gate behaviour
comp-phys-marc fcd52c4
Replace ctrl globalphase with phaseshift
comp-phys-marc f7f0cb9
args, kwargs implicit
comp-phys-marc 10a7190
Debug suggested changes
comp-phys-marc aeb8eea
EOF newline
comp-phys-marc 34c658e
PR feedback
comp-phys-marc 9cf7e8e
Merge remote-tracking branch 'origin/feature/qubit-registers' into fe…
comp-phys-marc c7240c4
Stylistic reordering of branches for readability
comp-phys-marc c513f04
Replace globalphase with phaseshift
comp-phys-marc 77401c8
Update test
comp-phys-marc e9ffd62
pylint
comp-phys-marc dc4aebe
Merge remote-tracking branch 'origin/feature/qubit-registers' into fe…
comp-phys-marc a3934bf
Changelog
comp-phys-marc 854fd5c
Merge branch 'feature/dagger-gates' into feature/qubit-registers
comp-phys-marc 6283861
Changelog
comp-phys-marc 48144bc
Update docstring
comp-phys-marc dbd910a
Merge branch 'master' into feature/qubit-registers
comp-phys-marc c044532
Stylistic loop refactor
comp-phys-marc ed4a13b
Merge branch 'master' into feature/qubit-registers
comp-phys-marc 7ee3536
Merge branch 'master' into feature/qubit-registers
comp-phys-marc a094b97
Merge branch 'master' into feature/qubit-registers
comp-phys-marc 5ea2c5f
Merge remote-tracking branch 'origin/feature/qubit-registers' into fe…
comp-phys-marc d5c7b81
Merge branch 'master' into feature/qubit-registers
comp-phys-marc b940caa
Cleanup GitHub's merge
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.