Given two CI states I and J, B Î Ĵσp gives the difference of the binary MO occupations, p, for each spin σ. This matrix consists of 0 (no change), 1 (1 new occupation), xor -1 (1 less occupation). To get the difference-of-occupations for each spin we take the absolute-value for each element and sum (over MOs):