Quantum Simulation Of Bosonic System And Application Of Machine Learning