dimod icon indicating copy to clipboard operation
dimod copied to clipboard

DQM.add_quadratic and .add_linear or similar

Open arcondello opened this issue 5 years ago • 0 comments

Right now, in order to add bias to an existing interaction, one needs to dqm.set_linear(v, dqm.get_linear(v) + 1) which is unwieldy. Also in the quadratic case it does two log(n) lookups rather than one.

arcondello avatar Sep 30 '20 17:09 arcondello