English
Languages
English
Shortcuts



Optimization converters (qiskit_optimization.converters)

This is a set of converters having convert functionality to go between different representations of a given QuadraticProgram and to interpret a given result for the problem, based on the original problem before conversion, to return an appropriate OptimizationResult.

Base class for converters

QuadraticProgramConverter

An abstract class for converters of quadratic programs in Qiskit’s optimization module.

Converters

InequalityToEquality

Convert inequality constraints into equality constraints by introducing slack variables.

IntegerToBinary

Convert a QuadraticProgram into new one by encoding integer with binary variables.

LinearEqualityToPenalty

Convert a problem with only equality constraints to unconstrained with penalty terms.

LinearInequalityToPenalty

Convert linear inequality constraints to penalty terms of the objective function.

MaximizeToMinimize

Convert a maximization problem to a minimization problem only if it is a maximization problem, otherwise problem’s sense is unchanged.

MinimizeToMaximize

Convert a minimization problem to a maximization problem only if it is a minimization problem, otherwise problem’s sense is unchanged.

QuadraticProgramToQubo

Convert a given optimization problem to a new problem that is a QUBO.