Quantum Computing, Quantum, Quantum Physics, Quantum Mechanics, Quantum Computer.
state |5~⟩ seen at the end of previous section, run the QFT in reverse, and verify the output is the state |5⟩ as expected. Firstly, let’s use Qiskit to easily reverse our QFT operation: def inverse_qft(circuit, n): """Does the inverse QFT on the first n qubits in circuit""" # First we create a QFT