I am now reading about the complex scaling method for solving resonance states. As far as I understand, the procedure goes like this:
Let us take the 1d potential $V(x) = A e^{-x^2} x^2 $ as an example. Here $A > 0 $ .
The full single-particle Hamiltonian is
$$ H = - \frac{\partial^2}{\partial x^2} + A e^{-x^2} x^2 . $$
The equation for the resonance state is
$$ \left(- \frac{\partial^2}{\partial x^2} + A e^{-x^2} x^2 \right ) \psi(x) = E_{complex} \psi(x) . $$
Suppose that the function $\psi(x)$ can be analytically continued into the complex plane. We there can consider the variable $x$ as a complex variable. Now consider the equation on the line $ x = \rho e^{i\theta }$. Here $\rho, \theta \in \mathbb{R}$. The equation for the function $f(\rho) \equiv \psi(\rho e^{i \theta})$ is then
$$ \left(- \frac{1}{e^{2i\theta }} \frac{\partial^2}{\partial \rho^2} + A e^{-\rho^2 e^{2i \theta}} \rho^2 e^{2i \theta} \right ) f(\rho) = E_{complex} f(\rho) . $$
The point is that now $f(\rho)$ might be normalizable and we can use conventional method to diagonalize the new Hamiltonian on the left hand side.
The problem is that this procedure essentially relies on the fact that the potential here is an analytical one. What if we have the simple square well potential? Apparently, many potentials can support resonance states but cannot be analytically continued into the complex plane.