QuadraticProgram.to_ising

QuadraticProgram.to_ising()[ソース]

Return the Ising Hamiltonian of this problem.

Variables are mapped to qubits in the same order, i.e., i-th variable is mapped to i-th qubit. See https://github.com/Qiskit/qiskit-terra/issues/1148 for details.

戻り値:

The qubit operator for the problem offset: The constant value in the Ising Hamiltonian.

戻り値の型:

qubit_op

例外: