Dynamically Reconfigurable XNOR/IMP Logic Based on Dual-Mechanism Operation in an Electrically Tunable Two-Dimensional Heterojunction | Synapse