dimod.higherorder.polynomial.BinaryPolynomial.to_binary#

BinaryPolynomial.to_binary(copy=False)[source]#

Return a binary polynomial over {0, 1} variables.

Parameters:

copy (optional, default=False) – If True, the returned polynomial is always a copy. Otherwise, if the polynomial is binary-valued already it returns itself.

Returns:

BinaryPolynomial