Using PTensor in StateTensor