The trace of a matrix is the sum of its diagonal elements.
Properties: Tr(AB)=Tr(BA)
Note that Tr(ABC)!=Tr(CBA)