openfermion.heaviside

Heaviside function Theta(x - bias)

returns 1 if x >= bias else 0

:param x: floating point number as input to heavisde :param bias: shift on the heaviside function :return: 1 or 0 int