Assume nonsymmetric, tridiagonal matrices $A, B \in \mathbb{R}^{n\times n}$ (where $n$ is in the order of 1000) and $A, B, AB$ are diagonalizable and have positive eigenvalues.
How do you efficiently compute the matrix-vector product of $$\vec{y}:=\sqrt{A B} \; \vec{x}$$ for a given $\vec{x}\in \mathbb{R}^n$ ?