If we have 2 vectors $v_1,v_2$ which have been rotated into $v'_1,v'_2$ by the following operations:
$v'_1 = e^{θ\hat{n}/2}v_1e^{-θ\hat{n}/2}$
$v'_2 = e^{θ\hat{n}/2}v_2e^{-θ\hat{n}/2}$
Where $\hat{n}$ is a unit vector representing the axis of rotation, and $θ$ is a scalar representing the rotation angle.
If we knew $v_1,v_2,v'_1,v'_2$ how would we solve for either the rotor $e^{θ\hat{n}/2}$ or equivalently it's axis/angle $\hat{n},θ$?
$v_1,v_2$ can be assumed to be linearly independent and of course everything here is interpreted as a quaternion.
There's a straightforward formula when $\theta \ne \pi$. First get a third vector with the cross product: $$ v_3 = v_1\times v_2,\quad v_3' = v_1'\times v_2'. $$ Now we need to form the reciprocal basis of the prime basis. Let $$ V' = v_1'\wedge v_2'\wedge v_3',\quad |V'| = |v_1'\cdot(v_2'\times v_3')|. $$ Then $$ v^{\prime 1} = v_2'\wedge v_3'\,(V')^{-1} = \frac{v_2'\times v_3'}{|V'|}, $$$$ v^{\prime 2} = -v_1'\wedge v_3'\,(V')^{-1} = \frac{v_3'\times v_1'}{|V'|},, $$$$ v^{\prime 3} = v_1'\wedge v_2'\,(V')^{-1} = \frac{v_1'\times v_2'}{|V'|}. $$ The rotor $R$ we want is then $$ R \propto 1 + \sum_iv^{\prime i}v_i. $$
If $v_i$ and $v'_i$ are expressed as column vectors, then we can express all of this with neat matrix computations. Let $V = (v_1, v_2, v_3)$ and $W = (v_1', v_2', v_3')$ be the matrices with those columns. The reciprocal basis matrix is the inverse transpose $W^{-T}$; calculate the matrix of inner products $\Gamma = W^{-1}V$. Then $$ R \propto 1+\sum_iv^{\prime i}v_i = 1 + \mathrm{Tr}(\Gamma) + \sum_{i<j}(\Gamma_{ij}-\Gamma_{ji})e_ie_j $$ where $e_i$ is the standard basis.
Proof of formula:
We have $$ v'_i = Rv_i\widetilde R,\quad v^{\prime i} = Rv^i\widetilde R. $$ Now we astutely notice that $$ \sum_iv^{\prime i}v_i = \sum_iRv^i\widetilde Rv_i = R\dot\nabla\widetilde R\dot x. $$ In 3D our rotor is a sum $R = s + B$ of a scalar and a bivector; standard geometric calculus identities give us $$ \sum_iv^{\prime i}v_i = R(3s + (3-4)\widetilde B) = R(3s - \widetilde R + s) = 4sR - 1. $$ When $s \ne 0$ it follows that $$ R \propto 1 + \sum_iv^{\prime i}v_i. $$
The same idea will work in any number of dimensions so long as $R$ is a rotation in a single plane, yielding $$ R \propto 4-n + \sum_iv^{\prime i}v_i, $$ but not all rotors are of this form: consider that in 4D $$ e^{e_1e_2 + e_3e_4} = e^{e_1e_2}e^{e_3e_4} $$ has a pseudoscalar component. I don't know if there is a general formula; for 4D and so long as $\langle R\rangle_0 \ne 0$ I was able to work out $$ R \propto 4\sum_iv^{\prime i}v_i + \sum_{i,j}v^{\prime i}v^{\prime j}v_iv_j $$ using a method similar to the 3D case.
$s=0$ in 3D
When $s=0$, i.e. when the above rotor has no scalar part and is a bivector $B$, the above method fails. However, recovering $B$ is still straightforward.
The matrix $\Gamma' = WV^{-1}$ is precisely the representation of our rotation in the standard basis. Expressed in the $v'_i$ basis this is $$ W^{-1}\Gamma'W = V^{-1}W = \Gamma^{-1}. $$ So find the eigenvectors of $u^+, u^-_1, u^-_2$ of $\Gamma$ corresponding to eigenvalues $1, -1, -1$ respectively. Then $B$ is proportional to the dual of $u^+$ via a pseudoscalar $I$ or is the wedge of $u^-_1$ and $u^-_2$ (after going back to the standard basis using $W$): $$ B\propto [Wu^+]I \quad\text{or}\quad B\propto [Wu^-_1]\wedge [Wu^-_2]. $$ Also notice the following for any eigenvector $u$ of $\Gamma$: $$ \lambda u = \Gamma u \iff \lambda Wu = Vu \iff (V - \lambda W)u = 0 $$ So it suffices to determine the nullspace of $V - W$ to get $u^+$ or the nullspace of $V+W$ to get $u^-_1, u^-_2$.