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

Refactors convert_to_sycamore_gates to abstract out analytical decomposition methods in cirq_google.two_qubit_to_sycamore #5044

Merged
merged 3 commits into from
Mar 3, 2022

Conversation

tanujkhattar
Copy link
Collaborator

@tanujkhattar tanujkhattar requested review from wcourtney, a team and vtomole as code owners March 1, 2022 19:42
@CirqBot CirqBot added the size: XL lines changed >1000 label Mar 1, 2022
Copy link
Collaborator

@MichaelBroughton MichaelBroughton left a comment

Choose a reason for hiding this comment

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

LGTM. This makes me wonder if we should try and roll some kind of "approximate 2q" compiler for these harder cases like SYC. I think I have some code laying around to do this that I would be happy to put up in a PR.

Comment on lines +110 to +113
1. Adjacent `cirq.SWAP` and `cirq.ZPowGate` wrapped in a circuit operation of length 2.
2. `cirq.PhasedISwapPowGate` with exponent = 1 or phase_exponent = 0.25.
3. `cirq.SWAP`, `cirq.ISWAP`.
4. `cirq.CNotPowGate`, `cirq.CZPowGate`, `cirq.ZZPowGate`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might want to mention how many SYCs each of these produces.

@tanujkhattar tanujkhattar merged commit 4ddcd5f into quantumlib:master Mar 3, 2022
@tanujkhattar tanujkhattar deleted the sycamore_transformer branch March 3, 2022 01:32
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
…mposition methods in `cirq_google.two_qubit_to_sycamore` (quantumlib#5044)

* Add cirq_google.two_qubit_to_sycamore containing analytical decomposition methods

* Address feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: XL lines changed >1000
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants