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 deprecated IBMQ dependent functionality #11513

Merged
merged 7 commits into from
Jan 11, 2024

Conversation

mtreinish
Copy link
Member

Summary

This commit removes all the functionality in Qiskit that depended on the legacy qiskit-ibmq-provider package. This process was started in #10525 which removed the qiskit.IBMQ alias object but as was discovered in that PR there were many other places in qiskit that were relying on the qiskit-ibmq-provider package. This commit removes all of these places, which primarily include qiskit.test.decorators's online_test decorator, qiskit.tools.jupyter, qiskit.tools.monitor, qiskit.test.ibmq_mock, and qiskit.test.mock (which just referenced IBMQ and didn't actually use it). With these removals we're also no longer optionally dependent on ipywidgets, jupyter, or ipython and those are removed from the optional and development requirements lists.

Details and comments

This commit removes all the functionality in Qiskit that depended on the
legacy qiskit-ibmq-provider package. This process was started in Qiskit#10525
which removed the qiskit.IBMQ alias object but as was discovered in that
PR there were many other places in qiskit that were relying on the
qiskit-ibmq-provider package. This commit removes all of these places,
which primarily include qiskit.test.decorators's online_test decorator,
qiskit.tools.jupyter, qiskit.tools.monitor, qiskit.test.ibmq_mock, and
qiskit.test.mock (which just referenced IBMQ and didn't actually use
it). With these removals we're also no longer optionally dependent on
ipywidgets, jupyter, or ipython and those are removed from the optional
and development requirements lists.
@mtreinish mtreinish added the Changelog: Removal Include in the Removed section of the changelog label Jan 8, 2024
@mtreinish mtreinish added this to the 1.0.0 milestone Jan 8, 2024
@mtreinish mtreinish requested review from jyu00 and a team as code owners January 8, 2024 16:07
@qiskit-bot
Copy link
Collaborator

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core

@coveralls
Copy link

coveralls commented Jan 8, 2024

Pull Request Test Coverage Report for Build 7481893451

Warning: This coverage report may be inaccurate.

We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.7%) to 89.25%

Totals Coverage Status
Change from base Build 7448002797: 1.7%
Covered Lines: 59463
Relevant Lines: 66625

💛 - Coveralls

mtreinish added a commit to mtreinish/qiskit-core that referenced this pull request Jan 8, 2024
This commit removes all the functionality in `qiskit.tools` with the
exception of `parallel_map` which has been migrated to `qiskit.utils`.
This PR does not cover the removal of `qiskit.tools.jupyter` or
`qiskit.tools.monitor` which are covered by Qiskit#11513.
mtreinish added a commit to mtreinish/qiskit-core that referenced this pull request Jan 8, 2024
This commit removes all the functionality in `qiskit.tools` with the
exception of `parallel_map` which has been migrated to `qiskit.utils`.
This PR does not cover the removal of `qiskit.tools.jupyter` or
`qiskit.tools.monitor` which are covered by Qiskit#11513.
@mtreinish mtreinish changed the title Remove deprecate IBMQ dependent functionality Remove deprecated IBMQ dependent functionality Jan 8, 2024
Copy link
Member

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

This has a large amount of overlap with #11445, but that's no problem. Mostly this looks fine to me, just very minor comments.

qiskit/__init__.py Outdated Show resolved Hide resolved
qiskit/providers/__init__.py Outdated Show resolved Hide resolved
qiskit/providers/fake_provider/__init__.py Outdated Show resolved Hide resolved
Copy link
Member

@jakelishman jakelishman left a comment

Choose a reason for hiding this comment

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

This looks like as clean a removal as we'll get of these. Good to tidy these things up before 1.0.

@jakelishman jakelishman enabled auto-merge January 10, 2024 23:13
@jakelishman jakelishman added this pull request to the merge queue Jan 11, 2024
Merged via the queue into Qiskit:main with commit 6bcb17b Jan 11, 2024
13 checks passed
@mtreinish mtreinish deleted the drop_ibmq branch January 11, 2024 14:15
github-merge-queue bot pushed a commit that referenced this pull request Jan 11, 2024
* Remove qiskit.tools module

This commit removes all the functionality in `qiskit.tools` with the
exception of `parallel_map` which has been migrated to `qiskit.utils`.
This PR does not cover the removal of `qiskit.tools.jupyter` or
`qiskit.tools.monitor` which are covered by #11513.

* Update qiskit/utils/__init__.py

Co-authored-by: Jake Lishman <[email protected]>

---------

Co-authored-by: Jake Lishman <[email protected]>
ShellyGarion pushed a commit to ShellyGarion/qiskit-terra that referenced this pull request Jan 18, 2024
* Remove deprecate IBMQ dependent functionality

This commit removes all the functionality in Qiskit that depended on the
legacy qiskit-ibmq-provider package. This process was started in Qiskit#10525
which removed the qiskit.IBMQ alias object but as was discovered in that
PR there were many other places in qiskit that were relying on the
qiskit-ibmq-provider package. This commit removes all of these places,
which primarily include qiskit.test.decorators's online_test decorator,
qiskit.tools.jupyter, qiskit.tools.monitor, qiskit.test.ibmq_mock, and
qiskit.test.mock (which just referenced IBMQ and didn't actually use
it). With these removals we're also no longer optionally dependent on
ipywidgets, jupyter, or ipython and those are removed from the optional
and development requirements lists.

* Remove stale api docs

* Remove ibmq usage in fake backend update script

* Preserve circuit library visualizations

* Remove apidocs from index

* Remove unused import

* Update docs
ShellyGarion pushed a commit to ShellyGarion/qiskit-terra that referenced this pull request Jan 18, 2024
* Remove qiskit.tools module

This commit removes all the functionality in `qiskit.tools` with the
exception of `parallel_map` which has been migrated to `qiskit.utils`.
This PR does not cover the removal of `qiskit.tools.jupyter` or
`qiskit.tools.monitor` which are covered by Qiskit#11513.

* Update qiskit/utils/__init__.py

Co-authored-by: Jake Lishman <[email protected]>

---------

Co-authored-by: Jake Lishman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Removal Include in the Removed section of the changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants