In an ideal diode circuit, the feedback “cancels” the op-amp forward voltage drop, so that we have something like:
The circuit uses an op-amp and looks like this:
For example, if we have and . In order for the op-amp to make , we need after the diode to be . So, the output of the op-amp has to be in order to account for the forward voltage.