Ok, I have this circuit, and I'm trying to devise a way to create an 8x8 matrix for any given combination of target qubit and controlled qubit.
(I is the identity matrix, and X is the CNOT operator)
I want it to also include the qubit that passes through untouched because I'm trying to...