Installation

This plugin requires Python version 3.9 and above, as well as PennyLane and Qiskit. Installation of this plugin, as well as all dependencies, can be done using pip:

pip install "qiskit<0.46"
pip install pennylane-qiskit

If you prefer to use Qiskit 1.0, you can omit the first line above and instead consult the Qiskit installation guide, which includes details on how to migrate to 1.0 if you already have Qiskit installed. Note that only conversion to PennyLane is supported with Qiskit 1.0; support for devices with 1.0 be available in a later release of the plugin.

To test that the PennyLane-Qiskit plugin is working correctly you can run

make test

in the source folder. Tests restricted to a specific provider can be run by executing make test-basicaer, make test-aer, and make test-ibmq.

Note

Tests on the IBMQ device can only be run if a ibmqx_token for the IBM Q experience is configured in the PennyLane configuration file, if the token is exported in your environment under the name IBMQX_TOKEN, or if you have previously saved your account credentials using the new IBMProvider

If this is the case, running make test also executes tests on the ibmq device. By default tests on the ibmq device run with ibmq_qasm_simulator backend and those done by the basicaer and aer device are run with the qasm_simulator backend. At the time of writing this means that the test are “free”. Please verify that this is also the case for your account.