typo in dwavebinarycsp.factories.csp.circuits.multiplication_circuit example?
Hi,
in this document,
"It fixes the multiplacands as a=5,b=6 (101 and 110) and uses a simulated annealing sampler to find the product, p=30 (111100)."
I think this should be . a=5, b=3 (101 and 011) and uses a simulated annealing sampler to find the product, p=15( 001111) ?
because from program a0=1 a1=0 a2=1, b0=1,b1=1,b2=0 and result p0=1,p1=1,p2=1,p3=1,p4=0,p5=0
Comments
Hello Ziv,
Thank you for pointing this out!! The formatting of binary inputs and outputs in this example is indeed confusing. I believe you are also correct that the values of a, b, and p should be 3, 5, and 15 respectively.
I have passed the comments on to our documentation team to update this and other examples for readability.
Please sign in to leave a comment.