partial traces