All-electrically controlled spintronics in altermagnetic heterostructures | Synapse