GithubHelp home page GithubHelp logo

mingdunlan / continous-variable-quantum-mnist-classifiers Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sophchoe/continous-variable-quantum-mnist-classifiers

0.0 0.0 0.0 1.37 MB

Classical and quantum hybrid circuit for classifying MNIST

Jupyter Notebook 100.00%

continous-variable-quantum-mnist-classifiers's Introduction

Continous Variable Quantum MNIST Classifiers

Classical and quantum hybrid circuits for classifying MNIST

This family of MNIST classifiers are classicial-quantum hybrid circuits using Keras and Pennylane. The quantum circuit is composed of a data encoding circuit and quantum neural network circuit as proposed in "Continuous variable quantum neural networks". https://arxiv.org/pdf/1806.06871v1.pdf The Pennylane-Tensorflow plug-in feature converts the quantum circuit into a Keras layer, and the whole network is treated as a Keras network, to which Keras' built in loss function and optimizer can be applied for parameter updates. Categorical crossentropy or Mean Squeared Error is used for loss function and Stochastic Gradient Descent is used for optimizer.

The architecture of the networks is shown below.

The main components of the hybrid network are a classicial feed-forward network, a data encoding circuit, and a quantum neural network circuit. By employing different numbers of qumodes and cutoff dimension, the network produces output vectors of desired size. They are interpreted as one-hot encoded labels which are then compared against the true labels.

The training loss and accuracy results are:

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.