Qiskit / red-queen

Quantum software benchmarking tool
Apache License 2.0
18 stars 15 forks source link

Fix deprecated FakeMontreal import path #16

Closed mtreinish closed 2 years ago

mtreinish commented 2 years ago

In qiskit-terra 0.21.0 the qiskit.test.mock path was deprecated and the code was migrated to live in qiskit.providers.fake_provider. However, while the old path still exists it works by re-exporting the new path from the old path. Pylint is able to realize this and is throwing an error about the FakeMontreal name not being found in the qiskit.test.mock module. To fix this lint failure this commit just updates the import to use the new path to avoid this issue. We would have to make this change anyway after the deprecation cycle is finished and qiskit.test.mock is removed.