I'm trying to implement old code on qiskit whose imports start with from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit from qiskit import BasicAer, execute from qiskit.tools.visualization import plot_histogram from qiskit.tools.monitor import job_monitor from qiskit.providers.ibmq import least_busy import cmath the error comes from the 2nd line ImportError: cannot import name 'BasicAer' from 'qiskit' (/usr/local/lib/python3.10/dist-packages/qiskit/init.py) I think the problem comes from an old version of qiskit but when I try an old version I have a problem with self "cannot import name 'Self' from 'typing_extensions'." Someone would have any idea ? ty I don't have the exact qiskit version of the code I'm trying to implement but the code dates from August 2019 Continue reading...