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
90 stars 64 forks source link

Expose submitted problem ID from `LeapHybridNLSampler` #528

Open randomir opened 3 months ago

randomir commented 3 months ago

Problem ID is available in SampleSet.info for other solver/samplers, but not in the LeapHybridNLSampler.SampleResult named tuple.

One option is to expand the SampleResult tuple with a third field, info, but that breaks backward compatibility.

Another option is to generalize the timing field, but that again breaks compatibility if the field is renamed.

So the only "safe" option is to tuck problem_id in the timing dict, but that's too ugly.