A Python simulation of pulse formation in a mode-locked V-cavity VECSEL (vertical-external-cavity surface-emitting laser). Two gain passes per round trip model the V-cavity. The gain and SESAM ...