  Braiding of Majorana zero modes provides a promising platform for quantum
information processing, which is topologically protected against errors.
Strictly speaking, however, the scheme relies on infinite braiding times as it
utilizes the adiabatic limit. Here we show how to minimize nonadiabatic errors
for finite braiding times by finding an optimal protocol for the Majorana
movement. Interestingly, these protocols are characterized by sharp transitions
between Majorana motion at maximal and minimal velocities. We find that these
so-called bang-bang protocols can minimize the nonadiabatic transitions of the
system by orders of magnitude in comparison with naive protocols.
