Open QuantumResearchbyhimanshu opened 8 months ago
Thanks for getting in touch! Qiskit recently released version 1.0, and with it came a lot of changes and removals. Upcoming releases of the plugin will be compatible with the new release of Qiskit, but the 0.34 release predates it, and is not. When you pip install qiskit
directly, it installs the most recent version of Qiskit.
Once you have Qiskit 1.0 installed in an environment, trying to downgrade can create issues. The best course of action currently in this case is to create a fresh environment, and then pip install pennylane-qiskit
directly (without first installing PennyLane and Qiskit). This will install the relevant version Qiskit for using the device.
If you are using PennyLane via a cloud based service, just restart the kernel and pip install the plugin, no need to worry about environments.
Expected behavior
import pennylane as qml dev = qml.device('qiskit.aer', wires=2)
it should create a qiskit aer device
Actual behavior
cannot import name 'extensions' from 'qiskit' (/usr/local/lib/python3.10/dist-packages/qiskit/init.py)
Additional information
No response
Source code
Tracebacks
No response
System information
Existing GitHub issues