<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def principal_axis_system(self):
 """ Returns a electric field gradient tensor aligned to the principle axis system so that only the 3 diagnol components are non-zero """

        return ElectricFieldGradient(np.diag(np.sort(np.linalg.eigvals(self))))