PennyLane plugin for ProjectQ
The PennyLane-ProjectQ plugin integrates the ProjectQ quantum computing library with PennyLane’s quantum machine learning capabilities.
PennyLane is a cross-platform Python library for quantum machine learning, automatic differentiation, and optimization of hybrid quantum-classical computations.
ProjectQ is an open-source compilation framework capable of targeting various types of hardware and a high-performance quantum computer simulator with emulation capabilities, and various compiler plug-ins.
This PennyLane plugin allows to use both the software and hardware backends of ProjectQ as devices for PennyLane.
The documentation can be found at https://pennylane-pq.readthedocs.io.
- Provides three devices to be used with PennyLane: projectq.simulator, projectq.ibm, and projectq.classical. These provide access to the respective ProjectQ backends.
- Supports a wide range of PennyLane operations and observables across the devices.
- Combine ProjectQ high performance simulator and hardware backend support with PennyLane’s automatic differentiation and optimization.
This plugin requires Python version 3.5 and above, as well as PennyLane and ProjectQ. Installation of this plugin, as well as all dependencies, can be done using pip:
$ python -m pip install pennylane_pq
To test that the PennyLane ProjectQ plugin is working correctly you can run
$ make test
in the source folder. Tests restricted to a specific device can be run by executing
make test-ibm, or
Tests on the ibm device
can only be run if a
password for the
IBM Q experience are configured
in the PennyLane configuration file.
If this is the case, running
make test also executes tests on the
By default tests on the
ibm device run with
hardware=False. At the time of writing this
means that the test are “free”. Please verify that this is also the case for your account.
How to cite
If you are doing research using PennyLane, please cite our whitepaper:
Ville Bergholm, Josh Izaac, Maria Schuld, Christian Gogolin, and Nathan Killoran. PennyLane. arXiv, 2018. arXiv:1811.04968
We welcome contributions - simply fork the repository of this plugin, and then make a pull request containing your contribution. All contributers to this plugin will be listed as authors on the releases.
We also encourage bug reports, suggestions for new features and enhancements, and even links to cool projects or applications built on PennyLane.
- Source Code: https://github.com/PennyLaneAI/pennylane-pq
- Issue Tracker: https://github.com/PennyLaneAI/pennylane-pq/issues
- PennyLane Forum: https://discuss.pennylane.ai
If you are having issues, please let us know by posting the issue on our Github issue tracker, or by asking a question in the forum.
The PennyLane ProjectQ plugin is free and open source, released under the Apache License, Version 2.0.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size PennyLane_PQ-0.14.0-py3-none-any.whl (19.3 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
Hashes for PennyLane_PQ-0.14.0-py3-none-any.whl