Skip to main content

PennyLane plugin to access the Alpine Quantum Technologies cloud service.

Project description

GitHub Workflow Status (branch) Codecov coverage CodeFactor Grade Read the Docs PyPI PyPI - Python Version

The PennyLane-AQT plugin provides the ability to use Alpine Quantum Technologies’ ion-trap quantum computing backends with PennyLane.

PennyLane provides open-source tools for quantum machine learning, quantum computing, quantum chemistry, and hybrid quantum-classical computing.

Alpine Quantum Technologies is an ion-trap quantum computing company offering access to quantum computing devices over the cloud.

The plugin documentation can be found here: PennyLane-AQT.

Features

  • Provides two devices which can be used with AQT’s online API: "aqt.sim" and "aqt.noisy_sim". These provide access to an ideal ion-trap simulator and a noisy ion-trap simulator, respectively.

  • The plugin provides additional support for the AQT’s custom rotation and Mølmer-Sørenson-type gates.

  • Supports core PennyLane operations such as qubit rotations, Hadamard, basis state preparations, etc.

Installation

PennyLane-AQT requires Python >= 3.10. If you currently do not have Python 3 installed, we recommend Anaconda for Python 3, a distributed version of Python packaged for scientific computation. If you are using Python 3.12, ensure setuptools is up to date prior to installation:

$ python3 -m pip install --upgrade setuptools

PennyLane-AQT only requires PennyLane for use, no additional external frameworks are needed. The plugin can be installed via pip:

$ python3 -m pip install pennylane-aqt

Alternatively, you can install PennyLane-AQT from the source code by navigating to the top directory and running

$ python3 setup.py install

Software tests

To ensure that PennyLane-AQT is working correctly after installation, the test suite can be run by navigating to the source code folder and running

$ make test

Documentation

To build the HTML documentation, go to the top-level directory and run

$ make docs

The documentation can then be found in the doc/_build/html/ directory.

Getting started

Once PennyLane is installed, the provided AQT devices can be accessed straight away in PennyLane. However, the user will need access credentials for the AQT platform in order to use these remote devices. These credentials should be provided to PennyLane via a configuration file or environment variable. Specifically, the variable AQT_TOKEN must contain a valid access key for AQT’s online platform.

You can instantiate the AQT devices for PennyLane as follows:

import pennylane as qml
dev1 = qml.device('aqt.sim', wires=2)
dev2 = qml.device('aqt.noisy_sim', wires=2)

These devices can then be used just like other devices for the definition and evaluation of quantum circuits within PennyLane. For more details and ideas, see the PennyLane website and refer to the PennyLane documentation.

Contributing

We welcome contributions—simply fork the PennyLane-AQT repository, and then make a pull request containing your contribution. All contributers to PennyLane-AQT will be listed as contributors 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 and AQT.

Contributors

PennyLane-AQT is the work of many contributors.

If you are doing research using PennyLane, please cite our papers:

Ville Bergholm, Josh Izaac, Maria Schuld, Christian Gogolin, M. Sohaib Alam, Shahnawaz Ahmed, Juan Miguel Arrazola, Carsten Blank, Alain Delgado, Soran Jahangiri, Keri McKiernan, Johannes Jakob Meyer, Zeyue Niu, Antal Száva, Nathan Killoran. PennyLane: Automatic differentiation of hybrid quantum-classical computations. 2018. arXiv:1811.04968

Maria Schuld, Ville Bergholm, Christian Gogolin, Josh Izaac, and Nathan Killoran. Evaluating analytic gradients on quantum hardware. 2018. Phys. Rev. A 99, 032331

Support

If you are having issues, please let us know by posting the issue on our GitHub issue tracker.

License

PennyLane-AQT is free and open source, released under the Apache License, Version 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

PennyLane_AQT-0.39.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file PennyLane_AQT-0.39.0-py3-none-any.whl.

File metadata

File hashes

Hashes for PennyLane_AQT-0.39.0-py3-none-any.whl
Algorithm Hash digest
SHA256 00deec77f0760a9c75bbad5d8e2ce4ba9c2108ff28702e126c3af85f8ac802ac
MD5 4f14845423f15c5c05686b7db07243b5
BLAKE2b-256 d1280412dd94bff9f5f3038bdfe247a05c211698a4d31a4417c777c6f5bc95f7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page