Quadratic program translators (qiskit_optimization.translators)#

Translators between QuadraticProgram and other optimization models or other objects.

Translators#

from_docplex_mp

Translate a docplex.mp model into a quadratic program.

to_docplex_mp

Returns a docplex.mp model corresponding to a quadratic program.

from_gurobipy

Translate a gurobipy model into a quadratic program.

to_gurobipy

Returns a gurobipy model corresponding to a quadratic program.

from_ising

Create a quadratic program from a qubit operator and a shift value.

to_ising

Return the Ising Hamiltonian of this problem.