Monolithic lithium niobate photonic chip for efficient terahertz-optic modulation and terahertz generation | Synapse