Skip to content

Conversation

@dstrain115
Copy link
Collaborator

@dstrain115 dstrain115 commented May 19, 2022

  • Add PasqalGateset that encapsulates gatesets
    used by the PasqalDevice classes.
  • Deprecate PasqalConverter and use cirq.convert_to_target_gateset
    instead.

Fixes: #5130

- Add PasqalGateset that encapsulates gatesets
used by the PasqalDevice classes.
- Deprecate PasqalConverter and use cirq.convert_to_target_gateset
instead.
@dstrain115 dstrain115 requested review from a team, HGSilveri, cduck and vtomole as code owners May 19, 2022 00:56
@dstrain115 dstrain115 requested a review from viathor May 19, 2022 00:56
@CirqBot CirqBot added the size: M 50< lines changed <250 label May 19, 2022
@dstrain115 dstrain115 requested a review from tanujkhattar May 19, 2022 16:08
Copy link
Collaborator

@tanujkhattar tanujkhattar left a 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):
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

Comment on lines 101 to 102
assert repr(gs) == 'cirq_pasqal.PasqalGateset(include_controlled_ops=True)'
assert repr(gs2) == 'cirq_pasqal.PasqalGateset(include_controlled_ops=False)'
Copy link
Collaborator

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@tanujkhattar tanujkhattar self-assigned this May 20, 2022
@tanujkhattar tanujkhattar added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label May 23, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label May 23, 2022
@CirqBot CirqBot merged commit 289f9ac into quantumlib:master May 23, 2022
@CirqBot CirqBot removed automerge Tells CirqBot to sync and merge this PR. (If it's running.) front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. labels May 23, 2022
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
- Add PasqalGateset that encapsulates gatesets
used by the PasqalDevice classes.
- Deprecate PasqalConverter and use cirq.convert_to_target_gateset
instead.

Fixes: quantumlib#5130
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: M 50< lines changed <250

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Pasqal] Vendor Transformer Adoption

4 participants