Suppose I have two quantum registers described respectively by the quantum states $| \psi_1 \rangle = \sum_i \alpha_i |i \rangle$ and $|\psi_2 \rangle = |0\rangle$. I would like to implement a CNOT gate where the target is $|\psi_2\rangle$ and the control is the basis state $| i \rangle$of $|\psi_1\rangle$ with the higher $|\alpha_i|^2$.
Is there some primitive I can use?