For finite matrices this property indicates that the two density matrices have the same eigenvalues.