Skip to content

A demonstration of the transformation that a QUBO model undergoes as it travels to and from D-Wave's QPU.

License

Notifications You must be signed in to change notification settings

8x1053/QUBO-lifecycle

 
 

Repository files navigation

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.

About

A demonstration of the transformation that a QUBO model undergoes as it travels to and from D-Wave's QPU.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 97.2%
  • Python 2.8%