qiskit.optimization.problems.LinearExpression.to_array¶ LinearExpression.to_array()[source]¶ Returns the coefficients of the linear expression as array. Return type ndarray Returns An array with the coefficients corresponding to the linear expression.