Graph state (source code)

= Graph state
{wiki}

For an undirected graph $G=(V,E)$, the graph state is
$$
|G\rangle=\prod_{(i,j)\in E}CZ_{ij}|+\rangle^{\otimes|V|}.
$$