Fig. 1: Programmability of the photovoltaic effect in WS2 nanotube.

a Upper: transmission electron microscopy image of a multiwall WS2 nanotube, scale bar: 10 nm. Middle: scanning electron microscopy image (colored) of the WS2 nanotube device, scale bar: 2 μm. Lower: schematic of the WS2 nanotube device. b Log scale I–V curves with 633 nm laser spot focused at the middle of the channel with the power of 0 W, 0.1 mW, 1 mW, and 2 mW. Insert: Schematic diagram of the photoresponse measurement. c Programmable photovoltaic effect in WS2 nanotube with prior voltage bias of 0 V (initial), −3 V, −4 V, −5 V, −5 V (reversed), 3 V, 4 V, and 5 V, respectively, the black arrow indicates the test order. d Ferroelectric-like hysteresis loop of the photovoltaic effect through voltage sweep. e Ferroelectric-like hysteresis loop of the photovoltaic effect through current sweep. f Nonvolatility of the programmed photocurrent.