1 D simulation for Quantum Mechanical problems