An inverse problem from condensed matter physics