Recent upgrades of synchrotron light source facilities towards ultra-low electron beam emittances allow increased photon beam brightness and coherence. New techniques for online modeling and control, taking advantage of modern Machine Learning approaches are required to fully utilize these new photon capabilities. We present recently developed reduced models for x-ray propagation that may enable an array of fast optimization methods for beamline alignment and reconfiguration. In particular, we have extended the analysis of the partially coherent Gaussian Schell model to include physical apertures and expressed it in terms of a Wigner function such that only second moment and centroid propagation is required. We have implemented this formalism within the SHADOW ray tracing code, providing fast, convenient transfer matrix computation down an x-ray beamline and subsequent moment propagation, including beam size, divergence and coherence properties. For the fully coherent case, we are developing tools for efficient Linear Canonical Transforms. On the optimization front, we have used Bayesian Optimization with Gaussian Processes and performed proof of principle automated alignment experiments on the Tender Energy Spectroscopy (TES) beamline at NSLS-II. These software tools are being integrated into the Sirepo web-based simulation framework as well as combined with the Bluesky control software suite in a dedicated package called Sirepo-Bluesky. We present an outlook on the progress we have made thus far, along with a future vision for this work.
|