You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Controlled gates weren't getting treated properly in the QUANTUM_GATES / matrix globals. The name needs to be modified to pick up the right matrix. As a result I've added a new modified_name property which corrects the name for controlled gates, and a unit-test showing that the example in 1259 now passes.
Checklist
The above description motivates these changes.
There is a unit test that covers these changes.
All new and existing tests pass locally and on Travis CI.
Parameters and return values have type hints with PEP 484 syntax.
Functions and classes have useful Sphinx-style docstrings.
All code follows Black style and obeys flake8 conventions.
(New Feature) The docs have been updated accordingly.
(Bugfix) The associated issue is referenced above using auto-close keywords.
The changelog is updated, including author and PR number (@username, gh-xxx).
You might consider cherry-picking this to the rc branch so that this can come with pyquil v3, then updating this PR to go into rc. After the v3 release, we'll do all work on the rc branch and publish release candidates after each merged PR.
Howdy, thanks @ameyer-rigetti - have re-pointed to rc as you suggested, no conflicts with base so have left it as-is (there's only 3 existing lines changing, the rest are all new, so not surprising.)
Howdy, thanks @ameyer-rigetti - have re-pointed to rc as you suggested, no conflicts with base so have left it as-is (there's only 3 existing lines changing, the rest are all new, so not surprising.)
Great @dwillmer, thanks! Once the remaining checkboxes are ticked, we can review/merge.
Hi @dwillmer, just following up on this. Are you still interested in seeing this through?
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.
Description
Fixes #1259
Controlled gates weren't getting treated properly in the
QUANTUM_GATES/ matrix globals. The name needs to be modified to pick up the right matrix. As a result I've added a newmodified_nameproperty which corrects the name for controlled gates, and a unit-test showing that the example in 1259 now passes.Checklist
flake8conventions.