The Sx operator is defined as: Sx=∑τ12(a†τ↑a†τ↓+a†τ↓a†τ↑). The equivalent operator in Quanty is created by:
OppSx = NewOperator("Sx", NF, IndexUp, IndexDn)