Local complementation of a graph state (source code)

= Local complementation of a graph state

Local complementation at a vertex $v$ toggles every edge between neighbors of $v$. It is implemented on graph states, up to global phase, by the local Clifford operator
$$
e^{-i\pi X_v/4}\prod_{u\in N(v)}e^{i\pi Z_u/4}.
$$