Photonic integrated circuits (PICs) have been a research hotspot in recent years. Programmable PICs that the advantages of versatility and reconfigurability can realize multiple functions through common structure especially popular. Leveraging on-chip couplers phase shifters, general-purpose waveguide meshes connected different topologies be manipulated at run-time support variety applications....