Quantum Computing, Qiskit, Fourier Transform, Addition.
Apply one Hadamard gate to the nth qubit of the quantum register reg, and then apply repeated phase rotations with parameters being pi divided by increasing powers of two. """ qc.h(reg[n]) for i in range(0, n): qc.cu1(pie/float(2**(i+1)), reg[n-(i+1)], reg[n]) The term phase rotation is simply