Accelerating the computation of quantum brachistochrone