Coder Social home page Coder Social logo

xanaduai / constrained-quantum-learning Goto Github PK

View Code? Open in Web Editor NEW
21.0 7.0 9.0 16 KB

This repository contains the source code used to produce the results presented in the paper "Near-deterministic production of universal quantum photonic gates enhanced by machine learning".

Home Page: https://arxiv.org/abs/1809.04680

License: Apache License 2.0

Python 100.00%
quantum quantum-computing photonics quantum-optics machine-learning optimization quantum-machine-learning

constrained-quantum-learning's Introduction

Constrained quantum learning

Using machine learning to train a Gaussian quantum circuit with PNRs to produce cubic phase resource states with high fidelity and probability.

This repository contains the source code used to produce the results presented in "Near-deterministic production of universal quantum photonic gates enhanced by machine learning" arXiv:1809.04680.

Contents

The following two scripts perform a constrained variational quantum circuit optimization, using both a global search (basin hopping) and a local search (BFGS optimization) to maximize the fidelity (and probability of generating) the cubic phase resource state in the last mode.

  • two_mode.py: a Python script to generate the results of the two-mode gadget architecture presented in the paper. Here, a two mode squeezed displaced state is incident on a beamsplitter, with the first mode measured by a photon-number resolving detector.

  • three_mode.py: a Python script to generate the results of the three-mode gadget architecture presented in the paper. Here, a three mode squeezed displaced state is incident on an interferometer consisting of three beamsplitters, with the first and second modes measured by photon-number resolving detectors.

Requirements

To construct and optimize the constrained variational quantum circuits, these scripts use the Fock backend of Strawberry Fields. In addition, SciPy is required for use of the global Basin Hopping optimization method, as well as the local BFGS optimization method.

Authors

Krishna Kumar Sabapathy, Haoyu Qi, Josh Izaac, and Christian Weedbrook.

If you are doing any research using this source code and Strawberry Fields, please cite the following two papers:

Krishna Kumar Sabapathy, Haoyu Qi, Josh Izaac, and Christian Weedbrook. Near-deterministic production of universal quantum photonic gates enhanced by machine learning. arXiv, 2018. arXiv:1809.04680

Nathan Killoran, Josh Izaac, Nicolás Quesada, Ville Bergholm, Matthew Amy, and Christian Weedbrook. Strawberry Fields: A Software Platform for Photonic Quantum Computing. arXiv, 2018. Quantum, 3, 129 (2019).

License

This source code is free and open source, released under the Apache License, Version 2.0.

constrained-quantum-learning's People

Contributors

co9olguy avatar josh146 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  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.