A graph tells a thousand words - in this one, I present a summary of my past 10 years of research, trying to exploit the new AI technologies to improve the way we do research in fundamental science. The poster is not about one specific research idea or output, as commonly happens. The idea of studying codesign is in demonstrating that one cannot optimize a piece of hardware in isolation, without accounting for the information extraction procedures that the hardware enables. We produced an important publication (now submitted to Report of Progress in Physics), and are now exploring many demonstrations of co-design of scientific experiments. There are several distinct elements of novelty in its concept: photons are used for computation, and their time series becomes the central vector of information extraction.