Skip to content

Sampler.sample_qubo should explicitly call out that non-unique interactions are added #493

Open
@arcondello

Description

@arcondello

Application
In Ocean, Q = {('a', 'b'): -1, ('b', 'a'): 1} is equivalent to Q = {('a', 'b'): 0}. In the BQM-as-polynomial formulation this is (hopefully) clear.

However, for those users who are used to thinking of QUBOs as matrices, a common point of confusion is whether the matrix should be upper-triangular or symmetric, and whether the biases are added, ignored or treated separately.

Proposed Solution
In the docstring for the BQM, we call out the addition explicitly. We should also add this to the docstring for Sampler.sample_qubo.

Additional Context
There may be other places in the documentation that we should call this out. @vgoliber

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionQuestion or general discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions