Putting a spin on logic gates

Computer electronics are shrinking to small-enough sizes that the electrical currents underlying their functions can no longer be used for logic computations in the ways of their larger-scale ancestors. A traditional semiconductor-based logic gate called a majority gate, for instance, outputs current to match either the ‘0’ or ‘1’ state that comprise at least two of its three input currents. But how do you build a logic gate for devices too small for classical physics?