Coder Social home page Coder Social logo

rmoyard / pennylane-ionq Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pennylaneai/pennylane-ionq

0.0 0.0 0.0 330 KB

This PennyLane plugin allows IonQ simulators/hardware to be used as PennyLane devices.

Home Page: https://pennylane-ionq.readthedocs.io

License: Apache License 2.0

Makefile 2.50% Python 97.50%

pennylane-ionq's Introduction

PennyLane-IonQ Plugin

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

The PennyLane-IonQ plugin provides the ability to use IonQ's 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.

IonQ is a ion-trap quantum computing company offering access to quantum computing devices over the cloud.

The plugin documentation can be found here.

Features

  • Provides two devices which can be used with IonQ's online API: "ionq.simulator" and "ionq.qpu". These provide access to an ideal ion-trap simulator as well as IonQ's quantum hardware, respectively.
  • The plugin provides additional support for the IonQ's Ising-type gates.
  • Supports core PennyLane operations such as qubit rotations, Hadamard, basis state preparations, etc.

Installation

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

$ python3 -m pip install pennylane-ionq

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

$ python3 setup.py install

If you currently do not have Python 3 installed, we recommend Anaconda for Python 3, a distributed version of Python packaged for scientific computation.

Software tests

To ensure that PennyLane-IonQ 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 IonQ devices can be accessed straight away in PennyLane. However, the user will need access credentials for the IonQ 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 IONQ_API_KEY must contain a valid access key for IonQ's online platform.

You can instantiate the IonQ devices for PennyLane as follows:

import pennylane as qml
dev1 = qml.device('ionq.simulator', wires=2, shots=1000)
dev2 = qml.device('ionq.qpu', wires=2, shots=1000)

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-IonQ repository, and then make a pull request containing your contribution. All contributers to PennyLane-IonQ 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 IonQ.

Contributors

PennyLane-IonQ 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-IonQ is free and open source, released under the Apache License, Version 2.0.

pennylane-ionq's People

Contributors

josh146 avatar co9olguy avatar smite avatar dabacon avatar thisac avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.