Giter VIP home page Giter VIP logo

qubo-lifecycle's Introduction

QUBO-lifecycle

Demonstrates what happens when you send a QUBO to the D-Wave QPU

Overview

This program takes a 3-variable QUBO function and demonstrates what goes on "behind the scenes" as it runs on the QPU. We see:

  1. The original QUBO.
  2. The equivalent Ising form.
  3. The Ising form embedded onto the QPU architecture using four qubits.
  4. A scaled version of the embedded Ising form that is the final QMI.

At this point, the problem is run on the D-Wave QPU. When a solution is returned, we see:

  1. The QMI solution (embedded Ising solution).
  2. The unembedded Ising solution, with any chain breaks resolved.
  3. The equivalent unembedded QUBO solution.

Note that we use the default chain strength value in this program (value of 1).

Exercise

First, run the program as is. Hit return (enter) to continue to the next output as the program runs.

Second, consider the following 3-boxes problem.

Problem:

Pick the pair of boxes with the smallest sum.

3-boxes problem

As a QUBO, this is written:

3-boxes QUBO

Write down your new QUBO, with the Lagrange parameter set to 24.

Third, do the algebra, and write down your new QUBO.

Fourth, in the program for this unit, replace the values on lines 24-29, with the values from your new QUBO.

Fifth, run the program.

Sixth, check through the results, and make sure that you understand them, compared to what you found in the first step.

License

Released under the Apache License 2.0. See LICENSE file.

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.