I am currently getting started with pennylane, and would like to know more about the different devices. As of now I am working on a platform which does not allow me to install any new package or modify them. I can only use the ones already pre-installed. More precisely, the PennyLane 0.25.1 and PennyLane-Lightning 0.26.1 Python packages are the ones available and the ones I am using.
Here are my questions:
- What devices are available when using those package versions specifically? Unfortunately, when I run the following code snippet, I get an error
/opt/miniconda3/bin/python: No module named pip, which I cannot solve because I cannot install new packages on the platform I am working on.
import pennylane as qml print(qml.about())
- Although the PennyLane-Lightning package is available, when I try to use the lightning.qubit device, I get the following error:
DeviceError: The lightning.qubit plugin requires PennyLane versions >=0.26, however PennyLane version 0.25.1 is installed.. Am I importing pennylane incorrectly or do I need PennyLane >=0.26 to use the lightning.qubit device, even if I have Pennylane-Lightning installed?
import pennylane as qml dev = qml.device("lightning.qubit", wires=2)
- There are many discussion threads here asking which device is best in general or for some specific use. However, I could not find any documentation where all this is described in a single place. How should I decide which device to use for my program/problem? In case I need to be more specific, what device is best suited for QAOA and why?
Thank you very much in advance.