Installation

This plugin requires Python >= 3.11, as well as PennyLane and Qiskit. Installation of this plugin, as well as all dependencies, can be done using pip:

python -m pip install pennylane-qiskit

To test that the PennyLane-Qiskit plugin is working correctly you can install the development requirements with,

python -m pip install -r requirements-dev.txt

With this, you can run the tests with,

make test

in the source folder.

Warning

When installing the Pennylane-Qiskit plugin, we recommend starting with a clean environment. This is especially pertinent when upgrading from a pre-1.0 version of Qiskit, as described in Qiskit’s migration guide.

Development

If you wish to develop the PennyLane-Qiskit plugin, please first install the developer requirements with

python -m pip install -r requirements-dev.txt

and install the pre-commit hooks with

pre-commit install

This will set up pre-commit hooks to automatically format and lint your code before each commit.