The energy momentum tensor for lattice gauge theories