Skip to content
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

Add documentation to cirq.decompose protocol regarding specific target gateset #6439

Merged
merged 5 commits into from
Mar 22, 2024

Conversation

tanujkhattar
Copy link
Collaborator

Fixes #930

@tanujkhattar tanujkhattar requested review from vtomole, cduck and a team as code owners February 2, 2024 07:22
@CirqBot CirqBot added the size: S 10< lines changed <50 label Feb 2, 2024
Copy link

codecov bot commented Feb 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.81%. Comparing base (ee56c59) to head (a79c741).
Report is 45 commits behind head on main.

❗ Current head a79c741 differs from pull request most recent head c8ca34b. Consider uploading reports for the commit c8ca34b to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6439   +/-   ##
=======================================
  Coverage   97.81%   97.81%           
=======================================
  Files        1111     1111           
  Lines       97121    97143   +22     
=======================================
+ Hits        95000    95022   +22     
  Misses       2121     2121           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

give an `intercepting_decomposer` to `cirq.decompose` that attempts to
target a specific gate set).
2-qubit gates included by default in Cirq. If a custom decomposition is not
specified, Cirq will decompose all operations to X/Y/Z/CZ/Measurement + Global
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused since these aren't universal? Is it missing PhasedX?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I meant XPow/YPow/ZPow/CZPow; updated the docstring to clarify this.

@github-actions github-actions bot added Stale and removed Stale labels Mar 6, 2024
@dstrain115
Copy link
Collaborator

@tanujkhattar Are we waiting on anything to merge this?

@dstrain115
Copy link
Collaborator

@tanujkhattar Can we finish this off and commit it?

@tanujkhattar
Copy link
Collaborator Author

@dstrain115 This is good to go now.

@tanujkhattar tanujkhattar enabled auto-merge (squash) March 22, 2024 17:49
@tanujkhattar tanujkhattar merged commit 83382ae into quantumlib:main Mar 22, 2024
29 checks passed
jselig-rigetti pushed a commit to jselig-rigetti/Cirq that referenced this pull request May 28, 2024
…t gateset (quantumlib#6439)

* Add documentation to cirq.decompose protocol regarding specific target gateset

* Clarify docstring

---------

Co-authored-by: Noureldin <noureldinyosri@google.com>
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
…t gateset (quantumlib#6439)

* Add documentation to cirq.decompose protocol regarding specific target gateset

* Clarify docstring

---------

Co-authored-by: Noureldin <noureldinyosri@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: S 10< lines changed <50
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Better define when one should use _decompose_
5 participants