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 some deprecation warnings #385

Merged
merged 3 commits into from
Sep 6, 2024
Merged

Remove some deprecation warnings #385

merged 3 commits into from
Sep 6, 2024

Conversation

cqc-alec
Copy link
Collaborator

@cqc-alec cqc-alec commented Sep 6, 2024

Another step towards #350 ...

I think the only deprecation warnings now are from TketBackend, which is not so easy to update and may require a complete rewrite ...

I deleted a couple of tests that use qiskit_algorithms which depended on the deprecated classes. There is a similar example in the user manual. I've checked that it still works.

@cqc-alec cqc-alec changed the title Ae/deprecations.2 Remove some deprecation warnings Sep 6, 2024
@cqc-alec cqc-alec marked this pull request as ready for review September 6, 2024 12:44
@@ -43,7 +43,8 @@
SamplerV2,
RuntimeJob,
)
from qiskit.providers.models import BackendProperties, QasmBackendConfiguration # type: ignore
from qiskit_ibm_runtime.models.backend_configuration import PulseBackendConfiguration # type: ignore
Copy link
Contributor

Choose a reason for hiding this comment

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

Why replacing QasmBackendConfiguration with PulseBackendConfiguration?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since we switched to using qiskit runtime, this is actually the type of what IBMBackend.configuration() returns. This change only corrects the typing annotations.

Copy link
Contributor

@yao-cqc yao-cqc left a comment

Choose a reason for hiding this comment

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

Thanks!

@cqc-alec cqc-alec merged commit 6742322 into main Sep 6, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants