a logic gate is an idealized or physical device implementing a Boolean function; that is, it performs a logical operation on one or more binary inputs and produces a single binary output.
Logic gate is a digital circuit that follows certain logical relationship between the input and output voltages. Therefore, they are generally known as logic gates because they control the flow of information.