Skip to content
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

Remove use of .device in contrib. #4821

Merged
merged 7 commits into from Jan 13, 2022

Conversation

MichaelBroughton
Copy link
Collaborator

@MichaelBroughton MichaelBroughton commented Jan 11, 2022

Another sub-component for #4744 . This removes the use of circuit.device from all contrib modules.

BREAKING_CHANGE=removing the device property from the SwapNetwork class.
It also removes some type checking done by the code (all logic in the bulk still works), which makes it more forgiving.

With the amount of meaningful maintenance contrib has had (not much), I'm not a huge fan of going through a deprecation process for these mild behavior widenings with no API changes. Are others alright with this ?

@CirqBot CirqBot added the size: M 50< lines changed <250 label Jan 11, 2022
@MichaelBroughton MichaelBroughton changed the title Remove use of .device in contrib. Remove use of .device in contrib. Jan 11, 2022
@95-martin-orion 95-martin-orion added the BREAKING CHANGE For pull requests that are important to mention in release notes. label Jan 12, 2022
Copy link
Collaborator

@95-martin-orion 95-martin-orion left a comment

Choose a reason for hiding this comment

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

You may want to hunt down the author of acquaintance to confirm this.

Otherwise, no complaints from me on this - for a long time I thought we didn't even test contrib, let alone make guarantees about stability, so I'm not too worried about deprecation-marking it.

@MichaelBroughton
Copy link
Collaborator Author

cc: @bryano

@MichaelBroughton MichaelBroughton added the automerge Tells CirqBot to sync and merge this PR. (If it's running.) label Jan 13, 2022
@CirqBot CirqBot added the front_of_queue_automerge CirqBot uses this label to indicate (and remember) what's being merged next. label Jan 13, 2022
@CirqBot CirqBot merged commit 89f88b0 into quantumlib:master Jan 13, 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 Jan 13, 2022
@MichaelBroughton MichaelBroughton deleted the device_deprecate_contrib branch January 13, 2022 21:07
MichaelBroughton added a commit to MichaelBroughton/Cirq that referenced this pull request Jan 22, 2022
Another sub-component for quantumlib#4744 . This removes the use of `circuit.device` from all contrib modules.

BREAKING_CHANGE=removing the `device` property from the `SwapNetwork` class.
It also removes some type checking done by the code (all logic in the bulk still works), which makes it more forgiving.

With the amount of meaningful maintenance contrib has had (not much), I'm not a huge fan of going through a deprecation process for these mild behavior widenings with no API changes. Are others alright with this ?
rht pushed a commit to rht/Cirq that referenced this pull request May 1, 2023
Another sub-component for quantumlib#4744 . This removes the use of `circuit.device` from all contrib modules.

BREAKING_CHANGE=removing the `device` property from the `SwapNetwork` class.
It also removes some type checking done by the code (all logic in the bulk still works), which makes it more forgiving.

With the amount of meaningful maintenance contrib has had (not much), I'm not a huge fan of going through a deprecation process for these mild behavior widenings with no API changes. Are others alright with this ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BREAKING CHANGE For pull requests that are important to mention in release notes. size: M 50< lines changed <250
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants