Skip to content

Update matrices.py#1416

Merged
notmgsk merged 2 commits intorigetti:rcfrom
bramathon:patch-3
Feb 9, 2022
Merged

Update matrices.py#1416
notmgsk merged 2 commits intorigetti:rcfrom
bramathon:patch-3

Conversation

@bramathon
Copy link
Collaborator

Moved native gates to the top of the QUANTUM_GATES dictionary.

Description

When translating to quil from some other format, there might be multiple possible choices for a gate (eg "ISWAP" or "XY"). While in general, converters targeting native quil ought to limit themselves to native gates, moving the native gates to the top of the list will help push in the right direction.

Checklist

  • The PR targets the rc branch (not master).
  • Commit messages are prefixed with one of the prefixes outlined in the commit syntax checker (see pattern field).
  • The above description motivates these changes.
  • There is a unit test that covers these changes.
  • All new and existing tests pass locally and on the PR's checks.
  • 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, Test ignore #1234).

Moved native gates to the top of the QUANTUM_GATES dictionary.
@bramathon bramathon requested a review from a team as a code owner January 29, 2022 00:31
@notmgsk notmgsk merged commit 2ced1d2 into rigetti:rc Feb 9, 2022
@rigetti-githubbot
Copy link

🎉 This PR is included in version 3.1.0-rc.5 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

dbanty pushed a commit that referenced this pull request Feb 14, 2022
Moved native gates to the top of the QUANTUM_GATES dictionary.

Co-authored-by: Mark Skilbeck <mark.skilbeck@rigetti.com>
@rigetti-githubbot
Copy link

🎉 This PR is included in version 3.2.0-rc.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@rigetti-githubbot
Copy link

🎉 This PR is included in version 3.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants