The basic circuit implementing such a feature is shown on the right, where R L {\displaystyle R_{\text{L}}} can be any load. When the input voltage is negative, there is a negative voltage on the diode, so it works like an open circuit, no current flows through the load, and the output voltage is zero. When the input is positive, it is amplified by the operational amplifier, which switches the diode on.