- #1
rpthomps
- 182
- 19
- TL;DR Summary
- 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.
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.