Quantum Magnetic and Electronic Heterojunctions for Ultrasensitive Magnetic Sensing and Novel Electrical Rectification