Convert a given optimization problem to a new problem that is a QUBO.
>>> from qiskit_optimization.problems import QuadraticProgram >>> from qiskit_optimization.converters import QuadraticProgramToQubo >>> problem = QuadraticProgram() >>> # define a problem >>> conv = QuadraticProgramToQubo() >>> problem2 = conv.convert(problem)
float]) – Penalty factor to scale equality constraints that are added to objective. If None is passed, a penalty factor will be automatically calculated on every conversion.
Returns the penalty factor used in conversion.
Convert a problem with linear constraints into new one with a QUBO form.
Checks whether a given problem can be solved with this optimizer.
Convert a result of a converted problem into that of the original problem.
Checks whether a given problem can be solved with the optimizer implementing this method.