XOR gate in quantum computing