-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Transpile to native IonQ gates #6572
Transpile to native IonQ gates #6572
Conversation
hi can we reopen this and merge? @dstrain115 |
hi @pavoljuhas can we get this reviewed please? a few customers are asking for native gate transpilation in cirq |
I am very busy ATM, but will get to it by the end of the week. Hope it is OK. |
definitely! thanks for the quick response :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the CI-reported problems and the inline comments in the code.
@pavoljuhas Thank you for reviewing the code for this ticket (Transpile to native IonQ gates). The review comments are almost addressed, but it still requires a bit more work :) However meanwhile, I do not see CI-reported problems in this page. I did get in my mailbox some CI report, but it was for a different ticket (Batch circuit submit in cirq_ionq). Perhaps you need to approve the latest workflow, or maybe I am not looking in the correct place? Thank you! |
@radumarg - I just approved the CI workflows for the last commit - the results should show up at https://github.com/quantumlib/Cirq/pull/6572/checks. Also, please see https://github.com/quantumlib/Cirq/blob/main/docs/dev/development.md#setting-up-an-environment for instructions how to run tests locally. |
@pavoljuhas I have completed the rework and checked-in the changes. I run the CI tests locally, however running test coverage locally with ./check/pytest-and-incremental-coverage does not seem to produce correct test coverage results. Please approve the workflow in order to see if more fixes are required. Thank you! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6572 +/- ##
========================================
Coverage 97.84% 97.84%
========================================
Files 1077 1079 +2
Lines 92791 92976 +185
========================================
+ Hits 90788 90973 +185
Misses 2003 2003 ☔ View full report in Codecov by Sentry. |
@pavoljuhas Looks like everything is green. Are we ready to merge? |
I think so. I am on a travel, I will give it a last look ASAP. |
Also import items from `typing` in one statement. And clean up redundant "m" from example circuit diagram.
These are already exercised when testing JSON serialization of AriaNativeGateset and ForteNativeGateset.
No change in the effective test code.
Fix its type annotation instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pavoljuhas Looks good!
Thank you for implementing these! |
Adding support for transpiling circuit to native IonQ gates.