can someone tell me how to write the code that allows me to connect mosfets like the one in the figure using circuitikz?[![enter image description here](https://i.stack.imgur.com/pcpWy.png)](https://i.stack.imgur.com/pcpWy.png)

I have managed how to place the transistors but I have problems in connecting them with horizontal and vertical wires.

```
\begin{circuitikz}
  \ctikzset{transistors/thickness=4}
  \ctikzset{tripoles/mos style=arrows}
  \ctikzset{transistors/arrow pos=end}
  \draw (0,-2) node[pmos,nocircle]{};
  \draw (2,-2) node[pmos,nocircle,xscale=-1]{}; 
  \draw (2,-4) node[nmos,xscale=-1]{};
  \draw (1,-6) node[nmos]{} (1,-7) node[ground]{};
\end{circuitikz}

```