Qiskit Aer not working

dev4 = qml.device(‘qiskit.aer’, wires=1, noise_model = noise_model)

I am trying to implement noise models in pennylane using qiskit. I get the following error:cannot import name ‘Provider’ from ‘qiskit.providers’

Hi @quantumlover ,

Thanks for your question. I think there may be an issue with the package versions you’re using or with other parts of your code.

I ran the example in the How to import noise models from Qiskit demo and it worked well with the versions below:

PennyLane version 0.41.1
qiskit version 1.2.4
qiskit aer version 0.16.0

These are the default versions that get installed with the pennylane-qiskit plugin at the moment.

In case you still have issues while using these versions I would recommend checking the demo mentioned above and trying to replicate it.

If you still need support, can you please post a minimal reproducible example? A minimal reproducible example (or minimal working example) is the simplest version of the code that reproduces the problem. It should be self-contained, including all necessary imports, data, functions, etc., so that we can copy-paste the code and reproduce the problem. However it shouldn’t contain any unnecessary data, functions, etc. (for example gates and functions that can be removed to simplify the code). If you’re not sure what this means then please make sure to check out this video.

I hope this helps!