Dynamics of qudit gates and effects of spectator modes on optimal control pulses | Synapse