Quantum information processing in optical lattices and magnetic microtraps