Quantum Computing, Quantum Computer, Qiskit, Quantum Physics, Python.
We want in this exercise is a way of putting a matrix [1 0]^T in the circuit and getting back the matrix [0 1]^T. From a purely mathematical perspective what we want is another matrix X which when multiplied by |0⟩ gives as a result |1⟩. Or in other words |1⟩=X|0⟩. Which matrix is that? The answer