Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.optimization.converters.QuadraticProgramConverter

class QuadraticProgramConverter

GitHub

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

__init__

__init__()

Initialize self. See help(type(self)) for accurate signature.


Methods

__init__()Initialize self.
convert(problem)Convert a QuadraticProgram into another form and keep the information required to interpret the result.
decode(result)DEPRECATED Decode a result into another form using the information of conversion.
encode(problem)DEPRECATED Encode a QuadraticProgram into another form and keep the information required to decode the result.
interpret(result)Interpret a result into another form using the information of conversion

convert

abstract convert(problem)

Convert a QuadraticProgram into another form and keep the information required to interpret the result.

Return type

QuadraticProgram

decode

decode(result)

DEPRECATED Decode a result into another form using the information of conversion.

Return type

OptimizationResult

encode

encode(problem)

DEPRECATED Encode a QuadraticProgram into another form and keep the information required to decode the result.

Return type

QuadraticProgram

interpret

abstract interpret(result)

Interpret a result into another form using the information of conversion

Return type

OptimizationResult

Was this page helpful?
Report a bug or request content on GitHub.