Skip to content

Allow single-variable BQM/QMs to be treated as variable labels #996

Open
@arcondello

Description

@arcondello

A frequent source of confusion in 0.10 is the distinction between x and 'x' in

>>> x = Binary('x')

The former is a dimod.BinaryQuadraticModel object, the latter is a string label of a variable. This leads to confusing behavior like #921.

Would likely require #966 and #923.

The biggest challenge will be hunting down all of the locations that take a variable label and updating them. Though updating dimod.Variables would be an obvious place to start.

A good first step would be to raise a better error in some of the most common places it happens.

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