Suppose there is a superposition state $|{{\Phi }^{+}}\rangle =\sum\limits_{i=0}^{15}{U({{\theta }_{i}})|i\rangle }$, I want to get $\langle i|U{{({{\theta }_{i}})}^{\dagger }}U({{\theta }_{m}})|m\rangle ,i\ne m,i,m\in [0,15]$. The swap test or Hadamard test is aimed at between two superposition states. Is it suitable for local inner product of superposition states? How can I explain my needs in terms of quantum circuits?