3 ms·
XOR has 2 inputs and 1 output so cannot be reversible. CNOT is the closest reversible gate
by Aardwolf 8y ago
XOR has 2 inputs and 1 output so cannot be reversible. CNOT is the closest reversible gate
- im3w1l 8y agoTo elaborate: CNOT outputs the pair (A xor B, B). By also outputting B, it becomes reversible.