Lattice QCD simulation of the Berry curvature