\(S^x\) operator for spin and fermion systems.
\[\begin{split}S^x =
\begin{pmatrix}
0 & 1/2 \\
1/2 & 0
\end{pmatrix}\end{split}\]
- Parameters:
index – Site to act on, as a flat index or lattice coordinates; see the
module docstring for the convention.