Quantum computing based on semiconductor nanowires