Giter Club home page Giter Club logo

satgrover's Introduction

Solving Boolean SAT Problem using Grover's Algorithm

Problem

Frank wants to throw a dinner party to celebrate Alice and Bob’s engagement. He is also considering inviting their mutual friends Charles, Dave and Eve. However, he is aware that Charles will come to the party only if Dave comes without Eve. Frank wants to know what possible combinations of invitations he can write for his friends Alice, Bob, Charles, Dave and Eve.

Help Frank calculate all the possible combinations using Grover’s algorithm.

Solution Roadmap

  • We first reformulate the problem into a boolean algebraic expression, this will make it simpler to construct an oracle. We also assign each person a qubit.
  • We then create an oracle based on the boolean expression. Luckily in our case we can create a phase oracle wothout the use of any ancilla and just the 5 qubits assigned to each person.
  • We the create the standard reflector used in Grover's Algorithm.
  • We create a sequential circuit of oracle and reflectors. The number of iterations are calculated using the complexity of the Grover's Algorithm and run the respective number of times.
  • We run the algorithm on the qasm simulator and obtain logically correct results with considerably decent accuracy.

satgrover's People

Contributors

eigen-arnav avatar

Stargazers

 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.