Precise programmable quantum simulations with optical lattices