dwavesystems / dwave-system

An API for easily incorporating the D-Wave system as a sampler, either directly or through Leap's cloud-based hybrid samplers
https://docs.ocean.dwavesys.com/
Apache License 2.0
87 stars 62 forks source link

Variable Labels do not get returned in sampleset #454

Closed scerto closed 2 years ago

scerto commented 2 years ago

Description When a sampleset is returned from the Hybrid BQM model, sometimes the variable labels are not present in the sampleset, only the variable indexes are returned. It happens inconsistently on large models.

To Reproduce Can provide code via email.

Expected behavior Variable labels are returned

Environment:

arcondello commented 2 years ago

Hi @scerto, can you provide a minimal reproducible example?

For large BQMs, we strip the labels and then restore them so perhaps the bug in present in that code, but I am not able to reproduce.

scerto commented 2 years ago

DWave_LabelError.zip

Hi Alexander, attached is the model and input data used when I encountered this error. This was also shared with Tanvi. When i changed the penalty coefficients for constraints to higher numbers sometimes the labels would not be returned, while other times they would. I think if you play around with changing those parameters you should encounter the bug, although it appears inconsistently.

arcondello commented 2 years ago

Thanks! Will look

mcfarljm commented 2 years ago

Hi @scerto , can you share the version of dimod and dwave-system that you are using? I have not yet been able to reproduce this using the code/data that you shared, with dimod 0.11.0 and dwave-system 1.14.0. I ran the code about 10 times, and each time the sampleset did contain the original variable labels.

scerto commented 2 years ago

@mcfarljm Hi John, I have the same versions for dimod and dwave-system. I haven't seen the error show up again. I think we can close this and i'll reopen it if/when I have a consistent and reproducible result. Thank you!