I'm following this notebook written using amazon-braket, and there's a statement I don't understand
... To reiterate, the following output is expected: $$\left|\mathrm{GHZ}\right> = \frac{1}{\sqrt{2}}\left(\left|0,0,0\right> + \left|1,1,1\right>\right) = \left[\frac{1}{\sqrt{2}},0,0,0,0,0,0,\frac{1}{\sqrt{2}}\right], $$ for which $\color{red}{\left<ZZZ\right>=0}$ and $\left<111|\mathrm{GHZ}\right>=\frac{1}{\sqrt{2}}$.
The highlighted expression is the one I'm having troubles with. Isn't that expectation value $1/2$ instead?
\begin{eqnarray} \left<\mathrm{GHZ}|ZZZ|\mathrm{GHZ}\right> &=& \frac{1}{2}\left( \left<000|ZZZ|000\right> + \left<000|ZZZ|111\right> + \left<111|ZZZ|000\right> + \left<111|ZZZ|111\right> \right) \\ &=& \frac{1}{2}\left(0 + 0 + 0 + 1 \right) \\ &=& \frac{1}{2} \end{eqnarray}
Thanks!