Quantum information processing for ions via linear optics