Not Your Usual FFT: QFT
→FFT via Classical Quantum-Circuit Simulation
The paper introduces QFT→FFT, a family of FFT libraries that compute the discrete Fourier transform by simulating a quantum Fourier transform (QFT) circuit on classical quantum-computer simulators. Input arrays are mapped directly to state amplitudes with explicit normalization, making QFT a drop-in replacement for FFT. A backend-agnostic planner generates fused-gate schedules and memory layout adapters to increase arithmetic intensity. Implemented on Google's qsim with OpenMP, AVX, and CUDA backends, the AVX version matches multithreaded FFTW on an AMD EPYC Zen2 (64 threads), while the CUDA backend on an NVIDIA A100 achieves over 4× lower time at larger sizes. An approximate QFT truncates small-angle rotations beyond a cutoff $k$, reducing circuit depth and runtime while preserving accuracy.