Optically Engineered Quantum States in Ultrafast and Ultracold Systems