How can I use circuitikz (or similar library for small code) to generate logic circuit diagrams with full variable life.
x ---[and1]--- z
y ---[and1]--- z
So f(x,y)=z
An image of the kind of thing I'd like to generate:

How can I use circuitikz (or similar library for small code) to generate logic circuit diagrams with full variable life.
x ---[and1]--- z
y ---[and1]--- z
So f(x,y)=z
An image of the kind of thing I'd like to generate:
