Femtosecond few-fermion dynamics and deterministic single photon gain in a semiconductor quantum dot