-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug - for a large number of points #18
Comments
Hi @haoqian-hao , probably the BQM that is made by |
Hi @arcondello, when I was using my dataset (the fraction that is laying on 0-1), it is not working correctly, it will assign the data point to all clusters (one of the results shows "0.15625,0_b': 1, '0.15625,0_g': 1, '0.15625,0_r': 1" ), it seems like the constraints in csp that penalise the coordinate can only be in one colour group is not strong enough, are there some ways to solve this? e.g., add chain_strength to the hybrid solver or add a coefficient or a penalty strength? I appreciate any help you can provide. |
Which hybrid solver are you using? And are you still using |
@arcondello, I used LeapHybridSampler and got the lowest energy from the result followed by,
Yes, I am using |
Hi @haoqian-hao, you can adjust the classical gap for the penalty models with You might also try using our constrained quadratic model hybrid solver. |
Hi @arcondello, thank you for helping me for this long time.
from my understanding, the qubits require for solving Clustering are |
Hi @haoqian-hao, although the QPU has ~2000 working qubits, they are not all connected to eachother. Therefore, solving problems with higher connectivity requires something called embedding. See D-Wave QPU Architecture: Topologies for a discussion of what this means for solving problems. Also worth noting that the hybrid solvers do not have these limits. |
Hello. I have been playing around with this sample. Once I go above 18 tuples I get the following error. Not sure what this means. The sampler, sampleset and best_sampler have not been changed from what is in the example, Thanks in advance.ValueError Traceback (most recent call last) File ~\OneDrive - SAS\Quantum\DWave\Notebooks\clustering-master\clustering_SAS.py:89, in cluster_points(scattered_points, filename, problem_inspector) File ~.conda\envs\DWave\lib\site-packages\dimod\binary\binary_quadratic_model.py:888, in BinaryQuadraticModel.add_interaction(self, *args, **kwargs) File ~.conda\envs\DWave\lib\site-packages\dimod\binary\cybqm\cybqm_template.pyx.pxi:249, in dimod.binary.cybqm.cybqm_float64.cyBQM_template.add_quadratic() ValueError: '51.0,38.0_r' cannot have an interaction with itself |
All fixed. Worked with Dwave today and looks like since I using integers, there was another pair with the same values which through the error. Once I added decimal places I got past this error. |
I tried running this with 20 points on D'wave, but it gave me an error:
ValueError: no embedding found
is this because
dwavebinarycsp
can not solve a large dataset?The text was updated successfully, but these errors were encountered: