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

Revert "Add ESP readout support to Qiskit (#6543)" #6573

Merged
merged 2 commits into from
Jun 15, 2021

Conversation

mtreinish
Copy link
Member

Summary

The changes made in #6543 were unecessary and add ibm backend specific
options to common interfaces in terra. This commit reverts #6543 so it
can be isolated to just the ibmq provider as the new options added in
it are not common to all providers and isolated to just ibm backends.
The changes made in #6543 should have been done directly in the ibm
provider and no changes to terra are actually needed here. Terra already
provides all the functionality to enable the provider to add custom options
like this. A provider can advertise the new run time option via the
backend's Options object, expose the backend configuration option as
a custom attribute at construction time, and pass the setting from the
options to assemble so it gets set in the qobj config appropriately
without requiring any changes from terra. However, this isn't all
necessarily clear as the interface for BackendV1 was primarily
inherited from BaseBackend which didn't have this level of flexibility
and doesn't make the distinction between required, optional, and custom
options and backend attributes super clear. This is something we can
hopefully address in the next version of the backend interface
BackendV2 (ideas for this are being collected in #5885).

Details and comments

This reverts commit 6d605a0.

The changes made in Qiskit#6543 were unecessary and add ibm backend specific
options to common interfaces in terra. This commit reverts Qiskit#6543 so it
can be isolated to just the ibmq provider as the new options added in
it are not common to all providers and isolated to just ibm backends.
The changes made in Qiskit#6543 should have been done directly in the ibm
provider and no changes to terra are actually needed here. Terra already
provides all the functionality to enable the provider to add custom options
like this. A provider can advertise the new run time option via the
backend's `Options` object, expose the backend configuration option as
a custom attribute at construction time, and pass the setting from the
options to assemble so it gets set in the qobj config appropriately
without requiring any changes from terra. However, this isn't all
necessarily clear as the interface for `BackendV1` was primarily
inherited from `BaseBackend` which didn't have this level of flexibility
and doesn't make the distinction between required, optional, and custom
options and backend attributes super clear. This is something we can
hopefully address in the next version of the backend interface
`BackendV2` (ideas for this are being collected in Qiskit#5885).

This reverts commit 6d605a0.
@mtreinish mtreinish added this to the 0.18 milestone Jun 14, 2021
@mtreinish mtreinish requested review from chriseclectic, jyu00 and a team as code owners June 14, 2021 18:31
@taalexander
Copy link
Contributor

I agree that the overall right approach is what you propose @mtreinish. If you believe the current approach is sufficiently incorrect that we must revert the changes we will. I will note that this work is critical to the QV64/128 release milestone and will have to make its way into the provider quickly to make this release date. It could be argued that the existing solution is sufficiently workable to not warrant a reversion given the circumstances. If we do make this reversion @zachschoenfeld33 will have to find a way to integrate into the unit test framework of the provider.

@zachschoenfeld33
Copy link
Contributor

If we need to revert, I am working w/ @jyu00 to put the check in the provider...

@mtreinish mtreinish added the Changelog: None Do not include in changelog label Jun 15, 2021
@mergify mergify bot merged commit 11ffe5d into Qiskit:main Jun 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants