The xz component of $Q$ is defined as: \begin{equation} Q_{xz} = 3xz/r^2. \end{equation} The equivalent operator in Quanty is created by:
OppQxz = NewOperator("Qxz", NF, IndexUp, IndexDn)
The operator could also be defined by:
Akm={{2,-1,sqrt(1.5) },{2, 1,-sqrt(1.5) }} OppQxz=NewOperator("CF",NF,indexup,indexdn,Akm)