1. A nanoscale crossbar that implements a logic gate, the nanoscale crossbar comprising: a nanowire crossbar with two or more layers of approximately parallel nanowires; and a number of configurable, tunneling resistor junctions that each interconnects a nanowire in a first layer of approximately parallel nanowires with a nanowire in a second layer of approximately parallel nanowires.