Consider a binary-input additive white Gaussian noise channel.
Let $\mathbf{x}_0 = (\sqrt{Es},\sqrt{E_s},⋯,\sqrt{E_s})$ and $\mathbf{x}_1 = (-\sqrt{E_s},-\sqrt{E_s},⋯,-\sqrt{E_s})$, be two codewords of length $d$. Suppose $\mathbf{x}_0$ is transmitted and the received vector is given by $\mathbf{y} = \mathbf{x}_0 + \mathbf{n}$, where the noise vector $\mathbf{n}$ is an i.i.d. Gaussian random vector with mean zero and variance $\frac{N_0}{2}$ . Suppose that maximum-likelihood decoding is employed. The pairwise error probability $P_d$ is the probability that the decoder chooses the incorrect codeword $\mathbf{x}_1$ as the decision instead of the originally transmitted $\mathbf{x}_0$. Show that $P_d=Q(\sqrt{\frac{2dE_s}{N_0}})$, where $Q(x) = (\frac{1}{\sqrt{2 \pi}})\int ^{\infty}_{x}e^{-\frac{t^2}{2}}dt$
I know how to calculate the error probability for bpsk in the other type,but not codewords type,does anyone know how to calculate the probability for codeword type?