Classical-Quantum Correspondence and Functional Relations for Painleve Equations