The Exercise 6.4.1 from Kaye et al. is as follows
Prove that $$\bigg({|0\rangle +(-1)^{x_1}|1\rangle \over\sqrt{2}}\bigg)\cdot\bigg({|0\rangle +(-1)^{x_2}|1\rangle \over\sqrt{2}}\bigg)\cdots\bigg({|0\rangle +(-1)^{x_n}|1\rangle \over\sqrt{2}}\bigg)$$ $$ ={1\over\sqrt{2^n}}\sum_{z_1z_2...z_n\in\{0,1\}^n} (-1)^{x_1z_1+x_2z_2+...+x_nz_n}|z_1\rangle|z_2\rangle...|z_n \rangle\tag{1}$$
Can anyone help me understand the math to solve the problem above? I am not sure how to achieve the final state that the problem is asking for. So far, I have done the following:
$$\bigg({|0\rangle +(-1)^{x_1}|1\rangle \over\sqrt{2}}\bigg)\cdot\bigg({|0\rangle +(-1)^{x_2}|1\rangle \over\sqrt{2}}\bigg)\cdots\bigg({|0\rangle +(-1)^{x_n}|1\rangle \over\sqrt{2}}\bigg) $$ $$ ={1\over\sqrt{2^n}}({|0\rangle +(-1)^{x_1}|1\rangle})\cdot({|0\rangle +(-1)^{x_2}|1\rangle})\cdots({|0\rangle +(-1)^{x_n}|1\rangle})\tag{2} $$ From here, I am aware that this needs to turn into a summation such that:
$$={1\over\sqrt{2^n}}\sum_{z_1z_2...z_n\in\{0,1\}^n} \cdots\cdots\cdots\tag{3} $$
However, I am not sure what actually goes inside the summation.