Qubit gate operating on multiple paths