<P> In electronics, 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 . Depending on the context, the term may refer to an ideal logic gate, one that has for instance zero rise time and unlimited fan - out, or it may refer to a non-ideal physical device (see Ideal and real op - amps for comparison). </P> <P> Logic gates are primarily implemented using diodes or transistors acting as electronic switches, but can also be constructed using vacuum tubes, electromagnetic relays (relay logic), fluidic logic, pneumatic logic, optics, molecules, or even mechanical elements . With amplification, logic gates can be cascaded in the same way that Boolean functions can be composed, allowing the construction of a physical model of all of Boolean logic, and therefore, all of the algorithms and mathematics that can be described with Boolean logic . </P>

How logic gates are controlled by boolean logic
find me the text answering this question