My research field is combinatorics. I am not very good at Algebra. So I want to ask for a given real multivariate polynomial $f(x_1,x_2,\cdots,x_n)$, is there any algebraic method to compute whether the following sum
$$\sum_{(x_1,x_2,\cdots,x_n)\in \{0,1\}^n}f(x_1,x_2,\cdots,x_n)$$
is nonzero?