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

dwave-training/QUBO-lifecycle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open in GitHub Codespaces

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 entries of your Q matrix, 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