powered by
This function performs Quantum Fourier Transform for a given state |y> from the computational basis to the Fourier basis.
|y>
QFT(y)
an integer
A vector representing the Quantum Fourier transformation of the state |y> from the computational basis to the Fourier basis.
https://arxiv.org/pdf/quant-ph/0506219.pdf https://books.google.co.in/books?id=66TgFp2YqrAC&pg=PA25&redir_esc=y https://en.wikipedia.org/wiki/Quantum_Fourier_transform
# NOT RUN { init() QFT(5) # }
Run the code above in your browser using DataLab