Giter Site home page Giter Site logo

pwegrzyn / pennylane-extra Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 1.27 MB

Plugin to the Quantum Machine Learning library PennyLane adding MEM

License: Apache License 2.0

Makefile 13.36% Python 86.64%
quantum machine-learning gradient measurement-error

pennylane-extra's Introduction

https://travis-ci.com/pwegrzyn/pennylane-extra.svg?branch=master

PennyLane Extra

The PennyLane Extra plugin adds some new features to PennyLane. The documentation is still under development.

PennyLane is a machine learning library for optimization and automatic differentiation of hybrid quantum-classical computations.

Features

  • Measurement error mitigation on Qiskit devices

Installation

PennyLane Extra requires both PennyLane and Qiskit. It can be installed via pip:

$ git clone https://github.com/pwegrzyn/pennylane-extra
$ cd pennylane-extra
$ python -m pip install .

Currently only the 0.9.0-dev versions of PennyLane and PennyLane-qiskit are supported. They are specified as dependencies to this package.

Note: The documentation is currently is WiP.

Please refer to the plugin documentation as well as to the PennyLane documentation for further reference.

Getting started

Once PennyLane Extra is installed, you can start using it's featrues right away.

import pennylane as qml
import pennylane_extra as qmle

dev = qml.device("default.qubit", wires=1)

@qml.qnode(dev)
def circuit(params):
    qml.RX(params[0], wires=0)
    qml.RY(params[1], wires=0)
    return qml.expval(qml.PauliZ(0))

with qmle.qiskit_measurement_error_mitigation():
    print(circuit(np.array([0, 0]))

For more details, see the plugin usage guide and refer to the PennyLane documentation.

Contributing

We welcome contributions - simply fork the PennyLane Extra repository, and then make a pull request containing your contribution. All contributers to PennyLane-Extra 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-Extra.

Authors

The plugin is created by G. Frejek and P. Wegrzyn. The original excellent PennyLane framework was started at Xanadu Quantum Technologies Inc.

Ville Bergholm, Josh Izaac, Maria Schuld, Christian Gogolin, and 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 Extra is free and open source, released under the Apache License, Version 2.0.

pennylane-extra's People

Contributors

gfrejek avatar pwegrzyn avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

qkitchen

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.