I Developing Quantum Expressions using QUBO

Click For Summary
The discussion focuses on developing a QUBO expression to find two combinations of three numbers from the set {1, 2, 3, 4, 5} that sum to 8 using Quantum Annealing. The proposed QUBO expression is designed to minimize the difference from the target sum and includes a penalty for exceeding three selected numbers. The expression is structured as: minimize (x1 + 2x2 + 3x3 + 4x4 + 5x5 - 8)^2 + (x1 + x2 + x3 - 3)^2 + (x1x2 + x2x3 + x1x3). The solution to this expression indicates that selecting the numbers {1, 2, 3} meets the criteria. This approach exemplifies how QUBO can be utilized for combinatorial optimization problems.
rpthomps
Messages
182
Reaction score
19
TL;DR
I want to build an expression to solve the two ways to sum to the value of 8 using a set of five numbers 1 , 2, 3, 4, 5 and the criteria is only three numbers can be chosen.
Hi there, I would like some help developing a QUBO expression where a Quantum Annealing approach would find the two ways of summing the 5 numbers {1 2 3 4 5) to 8 by selecting 3 of the numbers. I am basing this off of a dwave.sys video example I found on their site.

My initial kick at the can, looks likes this:

(x1+2x2+3x3+4x4+5x5-8)2+(x1+x2+x3-3)2

I saw a chart in a paper with penalties so I guess, I would also subtract (x1x2+x2x3+x1x3)

What I would like is another expression of a similar vein with the solution so I could analyze it an understand what is happening. Any thoughts/help would be appreciated.
 
Physics news on Phys.org
Here is a QUBO expression that will find the two ways of summing the 5 numbers {1, 2, 3, 4, 5) to 8 by selecting 3 of the numbers: QUBO: minimize (x1 + 2x2 + 3x3 + 4x4 + 5x5 - 8)^2 + (x1 + x2 + x3 - 3)^2 + (x1x2 + x2x3 + x1x3)where x1, x2, x3, x4, x5 are binary variables (0 or 1). The first two terms in the QUBO expression are the objective function. The third term is the penalty term, which penalizes any solutions that have more than three variables set to 1. The solution to this QUBO expression is x1 = 1, x2 = 1, x3 = 1, x4 = 0, x5 = 0. This corresponds to {1,2,3} as the three numbers that sum to 8.
 
For the quantum state ##|l,m\rangle= |2,0\rangle## the z-component of angular momentum is zero and ##|L^2|=6 \hbar^2##. According to uncertainty it is impossible to determine the values of ##L_x, L_y, L_z## simultaneously. However, we know that ##L_x## and ## L_y##, like ##L_z##, get the values ##(-2,-1,0,1,2) \hbar##. In other words, for the state ##|2,0\rangle## we have ##\vec{L}=(L_x, L_y,0)## with ##L_x## and ## L_y## one of the values ##(-2,-1,0,1,2) \hbar##. But none of these...

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
Replies
7
Views
2K
  • · Replies 0 ·
Replies
0
Views
1K
  • · Replies 0 ·
Replies
0
Views
897
Replies
3
Views
1K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K