Nanotechnology switches operate based on the principles of quantum mechanics and nanoscale physics. They can be built using various materials, including carbon nanotubes, graphene, and molecular transistors. These switches can toggle between 'on' and 'off' states by manipulating the electrical properties of the materials at the nanoscale, such as changing the position of a single molecule or altering the configuration of a carbon nanotube.