[Solved] Trying to understand Favoring States with One True
I'm new to D-Wave and currently just started learning about it. In the docs there is this example:
We want to find a function E(a,b,c)E(a,b,c) that is at a minimum when this objective is true. We can express this as
The problem with the second expression above is that when aa, bb, and cc are all 0, we get a result of −1−1, which is a lower energy than the TRUE states. The solution is to square the original equation:
Taking a closer look at the squared expression,
we can see that because the variables are binary (0 or 1),
our objective function becomes the quadratic equation
where the energy of the function E(a,b,c)E(a,b,c) is the value of the objective function.
Now my question is if a^2=a
shouldn't the computation be:
(a+b+c−1)^2 = a^2+b^2+c^2+2ab+2ac+2bc−a−b−c+1
= a+b+c+2ab+2ac+2bc−a−b−c+1 // since a^2=a, b^2=b, c^2=c
Or am I misunderstanding something?