Printed On‐Chip Perovskite Heterostructure Arrays for Optical Switchable Logic Gates | Synapse