Giter Club home page Giter Club logo

Quantum random walks

Based on the following reference papers about quantum random walk, this notebook implements the calculation and animation of classic and quantum random walk of different graphs and various coin operators:

apart from examples from the these papers the jupyter notebook also features some other variations of quantum random walk to explore as well as additional anylsis to understand the dynamics

all content flows into the jupyter notebook "Quantum random walks demo", all calculations are in util functions so that this notebook just contains demo and analysis, animations are partly saved as gif and embedded in notebook

all calculations are done in plain numpy, using einstein sum for the 3-dimensional matrix multiplications of quantum random walk, where a transition is done in each dimension of the coin space

disclaimer: the notebook does not serve as intro to quantum random walks, since no background information from the papers is repeated here, so the papers above are recommended to be read along with the notebook. Also is the terminology here rather sloppy and not an accurate description of the underlying tensor spaces

animations are done with plotly as well as matplot, latter based on this post. A util function is provided to do similar calls as for plotly animation for the matplot animation, with pandas df input. matplot animation has disadvantage that it writes gif, which is not conveniently embedded/refreshed in jupyter. Plotly has disadvantage that line graph is buggy exect if spline interpolation is used, here i use the bar plot instead.

Content of Quantum random walks demo notebook:

  1. Classical random walk on the circle
  2. Quantum Random walk on circle
  3. Hypercube graph: Classical & Quantum random walk
  4. Quantum walk search algorithm

palinkasaljoscha's Projects

logic_minimization icon logic_minimization

extension of quine-mccluskey minimization of logical expressions from boolean to multivalued

rshash_outliers icon rshash_outliers

python (numpy) implementation of the outlier detection algorithm rs-hash by Sathe and Aggarwal

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.