Approximation of electron density of a small molecule
You are looking for density functional theory. The theory is somewhat involved and you may be interested in A Chemist's Guide to Density Functional Theory or similar text book. A full description of the variety of ways to compute the (ground state) electron density is beyond the scope of an answer and better suited to a textbook.

The general gist is to optimize the energy with respect to the electron density numerically.