class IsingToQuadraticProgram(linear=False)[source]
linear (bool) – If linear is True, $$x^2$$ is treated as a linear term since $$x^2 = x$$ for $$x \in \{0,1\}$$. Else, $$x^2$$ is treat as a quadratic term. The default value is False.
 IsingToQuadraticProgram.encode(qubit_op[, …]) Convert a qubit operator and a shift value into a quadratic program