TeX source:
|i + 1 \text{ mod } 4\rangle