dwave-system icon indicating copy to clipboard operation
dwave-system copied to clipboard

Report solver name in unsupported-topology error message

Open JoelPasvolsky opened this issue 5 years ago • 1 comments

Current Problem If the implicitly selected solver is not a QPU for DWaveCliqueSampler(), the current error message,

>>> sampler = DWaveCliqueSampler()
---------------------------------------------------------------------------
KeyError
KeyError: 'topology'
...
ValueError: given sampler has unknown topology format

could be more helpful, if it showed users which solver was implicitly selected.

Proposed Solution Also spit out selected solver's name.

Additional context The current error message is okay, this is just a proposed improvement.

JoelPasvolsky avatar Sep 01 '20 20:09 JoelPasvolsky

Should be closed by https://github.com/dwavesystems/dwave-system/pull/317 in the sense that it should only pick up QPUs.

arcondello avatar Sep 01 '20 20:09 arcondello