What would be the simplest way to construct a block encoding circuit $U_A$ for a $2^n\times 2^n$ matrix $A$ proportional to $\operatorname{diag}(0,1,2,\ldots,2^n-1)$?
A couple of options I can imagine:
- Use quantum adder $|x, y\rangle\mapsto|x, y+x\rangle$. Requires a number of ancillas equal to $n$.
- Somehow first prepare a diagonal matrix $\operatorname{e}^{iA}$ (probably won't require ancillas) and then calculate its logarithm using QSP.
Due to a very particular form of $A$ I'm hoping that some efficient block encoding may exist, with a number of ancillas logarithmic in $n$ or even constant.