Artificial intelligence and machine learning workloads are changing all aspects of the compute infrastructure—from data centers and cloud hyperscalers to high-performance computers (HPC).1 Data centers are being enhanced with specialized HPC-like hardware to handle machine learning workloads. Hyperscale cloud infrastructure is enhanced with rack-scale and distributed solutions. Optical switching solutions have been proposed to improve the utilization of the computer resources as well as reducing latency and energy consumption.2–6 Silicon photonic switches are particularly attractive for such applications, and several research groups have developed silicon photonics switches based on cascaded Mach–Zehnder interferometers.7–14 However, their optical losses increase rapidly with port count, limiting the scalability of these switches.