Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Update uses of FakeBackends to be compatible with 0.45 and 1.0 #808

Merged
merged 2 commits into from
Feb 5, 2024

Conversation

ElePT
Copy link
Contributor

@ElePT ElePT commented Feb 2, 2024

Summary

I just naively modified all the fake backends I found in the code, but I see that #804 removes some of these files, I can prune the changes in this PR to match #804 if necessary.

Related to #804.

Comment on lines +35 to +41
.. jupyter-execute::
:hide-code:
:hide-output:

import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The only way I found to make the docs build pass was to filter the deprecation warning raised in 0.45 after the try-except. It's not ideal to have the try-except in an example, but these examples are run. An alternative would be to skip the run, in that case we wouldn't need the try-except or the filter.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 7787190529

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 51.534%

Totals Coverage Status
Change from base Build 7670662919: 0.0%
Covered Lines: 3476
Relevant Lines: 6745

💛 - Coveralls

@kt474
Copy link
Member

kt474 commented Feb 5, 2024

LGTM, I can handle the merge conflicts in #804

@kt474 kt474 merged commit 8f15c79 into Qiskit:main Feb 5, 2024
19 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants