-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Change Pasqal to use transformers #5377
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
Conversation
- Add PasqalGateset that encapsulates gatesets used by the PasqalDevice classes. - Deprecate PasqalConverter and use cirq.convert_to_target_gateset instead.
tanujkhattar
left a comment
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 % nits
| gates (defaults to True). | ||
| """ | ||
|
|
||
| def __init__(self, include_controlled_ops: bool = True): |
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.
include_controlled_ops is slightly confusing, since we'll always have CZ as part of the gateset. Maybe change it to include_additional_controlled_ops ? It's hard to come up with better names here; do you have any other suggestions?
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.
Done. I can't really come up with a good name either.
| assert repr(gs) == 'cirq_pasqal.PasqalGateset(include_controlled_ops=True)' | ||
| assert repr(gs2) == 'cirq_pasqal.PasqalGateset(include_controlled_ops=False)' |
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.
Use cirq.testing.assert_equivalent_repr 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.
Done.
…irq-1 into pasqal_transformers
- Add PasqalGateset that encapsulates gatesets used by the PasqalDevice classes. - Deprecate PasqalConverter and use cirq.convert_to_target_gateset instead. Fixes: quantumlib#5130
used by the PasqalDevice classes.
instead.
Fixes: #5130