Foundations of quantum technologies: generation and control of photonic- and spin-states