-
-
Notifications
You must be signed in to change notification settings - Fork 140
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 IonQ native gates #1500
Comments
Hello @yitchen-tim, thank you for your interest in Mitiq! |
Hi @yitchen-tim, thanks for reporting this!
|
Thanks for the pointers to alternatives. Adding compilation as the final step of |
That would be great, thanks!
I fear that defining the inverse is necessary since in Mitiq we need to call the inverse method of Cirq gates. E.g. all unitary folding functions in Mitiq requires the evaluation of inverse gates. |
Opened a PR in Cirq to implement the inverse of these gates. Once Cirq is updated, I will implement the Braket-Cirq translation in Mitiq. |
Perfect! thanks @yitchen-tim |
@andreamari The PR for gate conversion is out #1525 ! |
This issue was actually closed by #1525 |
Issue Description
Amazon Braket now supports verbatim compilation now for IonQ. But when I tired to run this example with verbatim compilation and native gates, I got the validation error that the gate does not exist.
ValueError: Unable to convert the instruction Instruction('operator': GPi('angle': 0.0, 'qubit_count': 1), 'target': QubitSet([Qubit(0)])) to Cirq. If you think this is a bug, you can open an issue on the Mitiq GitHub at https://github.com/unitaryfund/mitiq.
Proposed Solution
Add IonQ native gates, GPi, GPi2 and MS, as part of the supported gates of Mitiq.
Additional References
Amazon Braket's Developer Guide
IonQ's doc
The text was updated successfully, but these errors were encountered: