Improved lattice operators: Case of the topological charge density