Quantum Computing, Qiskit, Fourier Transform, Addition.
matrix for a 4 qubit state, you will find that this gate sequence is equivalent. We can encode this behavior by first applying a Hadamard gate, then applying repeated controlled-U gates with argument decreasing by a factor of half with each iteration: def createInputState(qc, reg, n, pie): """