New Method to Simulate Quantum Optimization Algorithm Using Classical Computer