This disclosure describes an example device that includes a first contact line, a second contact line, a spin-orbital coupling channel, and a magnet. The spin-orbital coupling channel is coupled to, and is positioned between, the first contact line and second contact line. The magnet is coupled to the spin-orbital coupling channel and positioned between the first contact line and the second contact line. A resistance of the magnet and spin-orbital coupling channel is a unidirectional magnetoresistance.