IBM Cloud Docs
Why am I getting an import error when I run a Qiskit command?

Why am I getting an import error when I run a Qiskit command?

You're having trouble running Qiskit commands, for example, from a notebook.

The new IBM Quantum Platform interface has been released in early access mode. It is recommended that you start using that interface to work with IBM Quantum services. Because it is built on IBM Cloud, migration is straightforward. See the migration guide for details.

You run a Qiskit command but get an error message, starting with an import error. For example: ImportError: cannot import name 'SymbolicPulse' from 'qiskit.pulse.library'....

This can happen when Qiskit or Qiskit Runtime is down-level.

Update Qiskit and Qiskit Runtime by running these commands, then try the command again:

# Installs the latest version of the Qiskit meta-package.
pip install qiskit -U
# Installs the latest version of the Qiskit Runtime package.
pip install qiskit-ibm-runtime -U