BQSKit / bqskit

Berkeley Quantum Synthesis Toolkit
Other
106 stars 31 forks source link

IBMProvider.load_account() AttributeError: type object 'IBMProvider' has no attribute 'load_account'. #230

Closed manu123416 closed 3 months ago

manu123416 commented 3 months ago

Hi everyone, I am trying to resolve the below deprecation warnings I am getting while using IBMQ framework.

DeprecationWarning: The qiskit.IBMQ entrypoint and the qiskit-ibmq-provider package (accessible from 'qiskit.providers.ibmq`) are deprecated and will be removed 
in a future release. Instead you should use the qiskit-ibm-provider package which is accessible from 'qiskit_ibm_provider'. You can install it with 'pip install qiskit_ibm_provider'. Just replace 'qiskit.IBMQ' with 'qiskit_ibm_provider.
IBMProvider'

My earlier code was:

from qiskit import IBMQ
IBMQ.save_account('key', overwrite=True)
IBMQ.load_account()

Now, I have changed it below:

from qiskit_ibm_provider import IBMProvider
IBMProvider.save_account('key', overwrite=True)
IBMProvider.load_account()

But now I am getting the error:

    IBMProvider.load_account()
AttributeError: type object 'IBMProvider' has no attribute 'load_account'.

It would be great if I can be helped on this.

edyounis commented 3 months ago

I think you may have posted on the wrong repository.

manu123416 commented 3 months ago

I am really sorry for posting question on wrong repository.