Talking about how exact size of QFT is achieved, both paper 1 and paper 2 skipped the implementation of gate $U$ that can do:
$$U|\alpha, \beta⟩ \mapsto exp\left(\frac{i2\pi}{N} \alpha\beta\right)|\alpha, \beta⟩$$
for arbitrary $N$ and arbitrary $\alpha,\beta \in \left\{0,..., 2^n-1\right\}$ (they believe this gate is easy).
Here is how I implement it:
I use the fact that $\text{CONTROL}-P(\theta)|a, b⟩\mapsto e^{i\theta a b}|a, b⟩$ , where $P(\theta)=\begin{pmatrix} 1 & 0 \\ 0 & e^{i\theta} \end{pmatrix}$ and $a,b\in \left\{0, 1\right\}$. Then,
$$ \begin{align} exp&\left(\frac{i2\pi}{N} \alpha\beta\right)|\alpha, \beta⟩ \\ &=exp\left(\frac{i2\pi}{N} \sum_{i,j} 2^{i+j} \alpha_i \beta_j\right)|\alpha_0...\alpha_{n-1} , \beta_0...\beta_{n-1}⟩ \\ &=\bigotimes_{i, j} exp\left(\frac{i2\pi}{N}2^{i+j}\alpha_i \beta_j\right)|\alpha_i, \beta_j⟩ \\ &=\bigotimes_{i, j} \text{CONTROL}-P(\phi_{ij})|\alpha_i, \beta_j⟩, \text{ where } \phi_{ij}=\frac{2\pi}{N}2^{i+j}. \end{align} $$
Therefore, I apply $\text{CONTROL}-P(\theta)$ to $|\alpha_i, \beta_j⟩$ $\forall$ $i,j\in\left\{0,..., n-1\right\}$ and hence complete implementation of gate $U$.
Is this implementaion about $U$ correct?
Or more specficially, how do we achieve the operation $|x, \Phi_0⟩\mapsto|x, \Phi_x⟩$? Here $$ |\Phi_n⟩=\text{QFT} |n⟩=\frac{1}{\sqrt{N}}\sum_{k=0}^{N-1}exp(\frac{i2\pi}{N}nk)|k⟩ $$