Toffoli gate(CCNOT gate)

Back

A CCNot gate is a universal reversible logic gate. It works on 3 bits, if the first two bits are one then the third bit is inverted

Keeping first two as input it can be used as an AND gate

Reference