  Glitches are sudden spin-up events that interrupt the gradual spin-down of
rotating neutron stars. They are believed to arise from the rapid unpinning of
vortices in the neutron star inner crust. The analogy between the inner crust
of neutron stars and dipolar supersolids allows to investigate glitches.
Employing such analogy, we numerically analyze the vortex trapping mechanism
and how the matter density distribution influences glitches. These results pave
the way for the quantum simulation of celestial bodies in laboratories.
