Experimental function estimation from quantum phase measurements