Physics-informed machine learning for programmable photonic circuits | Synapse