1. A magnetic logic device, comprising: a bottom electrode configured to receive a first input current and a second input current; an antimagnetic layer disposed over the bottom electrode; a bottom magnetic layer disposed over the antimagnetic layer; a nonmagnetic layer disposed over the bottom magnetic layer; a top magnetic layer disposed over the nonmagnetic layer; and a top electrode disposed over the top magnetic layer, the top electrode and the bottom electrode configured to provide an output voltage which is dependent on the first and second input currents and which follows an AND gate logic or an OR gate logic.