“…However, to solve complex tasks in a timely manner, ANNs require massive amounts of resources, both regarding computing speed and energy consumption. In recent decades, optical neural networks (ONNs) have garnered tremendous interest, because of their advantages of low power consumption and ultrahigh computing bandwidth, which are unrivaled by their electronic counterparts 18 – 33 . Several implementations of ONNs have been proposed, including a coherent approach based on an integrated Mach‒Zehnder interferometer (MZI) mesh 18 , 24 , 25 , 31 , wavelength division multiplexing (WDM) processing with microring modulators, and programmable routing enabled by a phase-change material (PCM) 20 .…”