What is an ideal diode?

An ideal diode is a two terminal polarity sensitive device that has zero resistance when it is forward biased and infinite resistance when reverse biased.