performed plus-minus state purity calculations