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
Physics Stack Exchange is a question and answer site for active researchers, academics and students of physics. It only takes a minute to sign up.Sign up to join this community
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!