dwave.system.warnings.WarningHandler.energy_scale#

WarningHandler.energy_scale(bqm)[source]#

Issue a warning if the energy scale is too wide.

Issues a warning if some biases are \(10^3\) times stronger than others.

Parameters:

bqm (BinaryQuadraticModel, tuple) – A binary quadratic model or a tuple of either the form (Q), where Q is a QUBO-dictionary, or the form (h, J), where h and J are Ising problem dictionaries.