-
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
Deprecate device.decompose_operation in cirq_ionq. #4925
Deprecate device.decompose_operation in cirq_ionq. #4925
Conversation
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.
LGTM
cirq-ionq/cirq_ionq/ionq_devices.py
Outdated
if operation in _VALID_GATES: | ||
return operation | ||
assert cirq.has_unitary(operation), ( | ||
f'Operation {operation} that is not available on the IonQ API nor does it have a ' |
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.
remove "that"
from cirq import _compat | ||
|
||
|
||
_VALID_GATES = cirq.Gateset( |
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.
adding to the import time I see :)
The original We should ideally create a new cirq transformer (aka optimizer) for converting circuits to the ionq native gatesets and use that as a recommendation to replace the deprecated This is tracked in #4901 |
Right, although I don't think you or I should work on implementing this. Ideally someone from ionq will come along and do this. |
Yet more of #4744 .