dwavesystems / dwavesystems/dimod

DQM.add_quadratic and .add_linear or similar

Open
#724 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
143
Forks
91
Avg merge
1h 24m
Merged PRs (30d)
3

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.