Traditional electronics relies on the flow of electric charge carriers (electrons) in a semiconductor. Spintronics, however, utilizes the spin state of electrons (either up or down) to store information. Magnetic materials and quantum mechanics play crucial roles in enabling these functionalities. The primary components in spintronic devices are magnetic layers and spin valves, which can manipulate and detect the spin state of electrons.