In traditional semiconductor devices, a gate is a terminal that controls the flow of electrons between the source and the drain. At the nanoscale, gate control mechanisms become more complex due to quantum mechanical effects. The gate voltage can modulate the electrical conductivity of a nanomaterial, such as a carbon nanotube or a nanowire, by altering the energy levels of electrons within the material.