experimental code for time-optimal pulses