A simulator for square 2D quantum systems with infinite potential barriers