Giter VIP home page Giter VIP logo

qml-jax's Introduction

qml-jax

Tests with PennyLane and JAX.

Description of files

  • jaxopt_run.py: simple sine-function learning of a VQC with pennylane, jax.jit and jaxopt.GradientDescent. The .run() method is called on the optimizer.
  • jaxopt_optimization_loop.py: same as jaxopt.py, but breaks down the optmization loop, rather than calling the run() method on the optimizer object.
  • optax_full_set.py: same as jaxopt_optimization_loop.py, but uses optax.adam as optimizer and updates with the full dataset.
  • optax_batch.py: same as optax_full_set.py but stochastic: uses a data iterator to batch X and y.
  • optax_classification.py: classification of the iris dataset with optax. Optimization part is the same as optax_batch.py, but the data now is preprocessed and converted from NumPy to JAX.
  • optax_kta.py: optimizes the kernel alignment of a quantum kernel wrt the (binary) iris dataset.

qml-jax's People

Contributors

debrevitatevitae avatar

Stargazers

Sérgio de Vasconcelos Filho avatar

Watchers

 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.