Qiskit / qiskit

Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.
https://www.ibm.com/quantum/qiskit
Apache License 2.0
5.28k stars 2.37k forks source link

Filter aer warnings in deprecated `FakeBackend` V1 class #13018

Closed ElePT closed 2 months ago

ElePT commented 2 months ago

Summary

The recent qiskit-aer 0.15 release has introduced deprecation warnings for BackendV1 inputs in NoiseModel.from_backend. We were using this method in the deprecated FakeBackend class (which is, by definition, V1) and this is triggering test failures. I suggest filtering the warnings in FakeBackend until the class is removed in 2.0.

Details and comments

qiskit-bot commented 2 months ago

One or more of the following people are relevant to this code:

ElePT commented 2 months ago

Changed :) This actually how I initially approached it, but then I thought it could be more practical for the removal to just have it in FakeBackend directly (I remembered the cleanup we had to do on the QiskitTestCase class not so long ago because we would forget to get rid of the filters past their "expiration date"). It should be fine though, now that we are aware of it.