Abstract
Universal quantum gates are the core elements in quantum information processing. We design two schemes to realize more general (SWAP) and controlled--(swap) gates (for integer ) by directing flying single photons to solid--state quantum dots. The parameter is easily controlled by adjusting two quarter--wave plates and one half--wave plate. Additional computational qubits are not required to construct the two gates. Evaluations of the gates indicate that our proposals are feasible with current experimental technology.