Giter VIP home page Giter VIP logo

quantum-grover-algorithms's Introduction

Quantum Grover Algorithms

Following you will be able to see and understand different find algorithms in unsorted sets. The examples did it below have been done with datasets of two and three qubits. The search space will be the next in function of the qubits number, given n the space will be formula:

n space decimal
2 4 [0,1,2,3]
3 8 [0,1,2,3,4,5,6,7]

In these examples, we will go changing the oracle to identify the correct solution. The Grover function only will change in order to n.

Table of Contents

TBD

How to calculate the Grover function

Given n the Grover function will be:

formula

P will be a matrix (1/N) with dimension NxN being N:

formula

For example, with n=2, N will be 4, then:

formula

Then the Grover matrix will be:

formula

Algorithms with n=2

The Grover function will be...

Given x, find x in the set

In this example the value to search is 2

Link to the circuit

Given x, find x-1 in the set

formula

Being x equal to 1 the result to search will be 0.

Link to the circuit

Note: to x equal to 0, the result will be 3

Given x, find x+1 in the set

TBD

Algorithms with n=3

Given x, find x in the set

TBD

Given x, find x/2 in the set

formula

Being x equal to 10 the result to search will be 5.

Link to the circuit

Given x, find x*2 in the set

formula

Being x equal to 3 the result to search will be 6.

Link to the circuit

quantum-grover-algorithms's People

Contributors

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