Skip to content

Remove virtual_predicate deprecations.#5724

Merged
CirqBot merged 3 commits intoquantumlib:masterfrom
MichaelBroughton:virtual_remove
Jul 11, 2022
Merged

Remove virtual_predicate deprecations.#5724
CirqBot merged 3 commits intoquantumlib:masterfrom
MichaelBroughton:virtual_remove

Conversation

@MichaelBroughton
Copy link
Copy Markdown
Collaborator

No description provided.

@MichaelBroughton MichaelBroughton requested review from a team, cduck and vtomole as code owners July 11, 2022 21:03
@CirqBot CirqBot added the size: S 10< lines changed <50 label Jul 11, 2022
@_compat.deprecated(deadline='v0.16', fix='Use is_virtual instead.')
def virtual_predicate(self, op: 'cirq.Operation') -> bool:
return self.is_virtual(op)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

please check (new) line 89 below

@dstrain115
Copy link
Copy Markdown
Collaborator

Lint check, looks like you need to remove _compat

@MichaelBroughton
Copy link
Copy Markdown
Collaborator Author

weird my local install missed that somehow....

@MichaelBroughton MichaelBroughton added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jul 11, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jul 11, 2022
@CirqBot CirqBot merged commit 3c9c0e5 into quantumlib:master Jul 11, 2022
CirqBot pushed a commit that referenced this pull request Jul 12, 2022
Avoid head scratching over a reference to method removed in #5724.
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
Avoid head scratching over a reference to method removed in quantumlib#5724.
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
harry-phasecraft pushed a commit to PhaseCraft/Cirq that referenced this pull request Oct 31, 2024
Avoid head scratching over a reference to method removed in quantumlib#5724.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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. size: S 10< lines changed <50

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants