dimod
dimod copied to clipboard
DQM.add_quadratic and .add_linear or similar
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.