invertspin

◼ invertspin[expr] inverts the spin of the operator expression expr. The spin index must be the last index of each operator appearing in expr.

◼ See also: spinxyz.

Further examples

Load sneg and declare c to be a fermionic operator

<< sneg`sneg`;
snegfermionoperators[c];

Verify the definition

invertspin @ c[CR, UP] == c[CR, DO]
invertspin @ c[AN, UP] == c[AN, DO]
invertspin @ (c[CR, UP]·c[CR, DO]) == 
      c[CR, DO]·c[CR, UP]
invertspin @ (c[AN, UP]·c[AN, DO]) == 
      c[AN, DO]·c[AN, UP]