qbraid.programs.annealing.QuboProblem

class QuboProblem(coefficients)[source]

Represents a QUBO problem, subclass of Problem that only includes quadratic coefficients.

__init__(coefficients)[source]

Methods

__init__(coefficients)

num_variables()

Return the number of variables in the problem.

Attributes

problem_type

linear

quadratic