Quantum logic gates based on coherent electron transport in quantum wires