Quantum Computing, Qiskit, Fourier Transform, Addition.
reg[i], reg[n]) qc.h(reg[n]) Awesome! Now that we’ve defined our functions, we can go on to create the registers we need and store our numbers in them: def add(first, second, n): pie = math.pi a = QuantumRegister(n+1, "a") #Holds the first number b = QuantumRegister(n+1, "b") #Holds the second