Is there a quantum logic gate (or any sequence of QLGs) that takes as input two Qubits and outputs one Qubit?
- If yes, could you please write it down in the simple example?
- If no, could you explain why?
PS: Sorry for stupid question
Quantum gates are reversible and hence must have a one to one correspondence between the input and output bits. Another way of thinking about reversibility is that there is a way to run the circuit backwards from the set of outputs and get back all possible inputs. This means that you have the same number of input and output bits.
However, do note that the way circuits are implemented, you will not necessarily use all the output bits. Say, you're adding two bits. Your "answer" is a single bit and the remaining output bits are irrelevant.
All of the above holds for classical reversible computation as well!