I'm working on exercise 4.29 of Nielsen and Chuang:
Find a circuit containing O(n^2) Toffoli, CNOT, and single qubit gates which implements a $C^n(X)$ gate (for n >3), using no work qubits.
As part of solving this exercise, I'm trying to figure out if the task of making a NOT-controlled-by-N-bits is possible classically (i.e. without using single qubit gates, except the NOT gate).
This is trivial to do if you have work bits initialized to 0 available, but I haven't been able to figure out how to do it without work bits. I'm also not sure how to approach an impossibility proof.
The main thing I've figured out is that, if I could make $Increment$ and $Decrement$ gates, then I could do it like this:
____ ____
--| |--| |--- --•--
--| |--| |--- --•--
--| +1 |--| -1 |--- == --•--
--| |--| |--- --•--
--| |--|____|--- --•--
--|____|----------- --X--
But I also can't figure out how to make those gates, at least not without the many-controlled-not gate I'm trying to make.
Is this even possible (the limited-to-classical case, not the exercise)?