\begin{array}{cccc}
\begin{array}{c} \Qcircuit@C=1em @R=.7em{
& & \gate{A_{1, 1}~\mbox{on}~R_{1, 1}} & \qw
} \end{array} & \begin{array}{c} \Qcircuit@C=1em @R=.7em{
& & \gate{A_{2, 1}~\mbox{on}~R_{2, 1}} & \qw
} \end{array} & \cdots & \begin{array}{c} \Qcircuit@C=1em @R=.7em{
& & \gate{A_{m, 1}~\mbox{on}~R_{m, 1}} & \qw
} \end{array} \\
\begin{array}{c} \Qcircuit@C=1em @R=.7em{
& & \gate{A_{1, 2}~\mbox{on}~R_{1, 2}} & \qw
} \end{array} & \begin{array}{c} \Qcircuit@C=1em @R=.7em{
& & \gate{A_{2, 2}~\mbox{on}~R_{2, 2}} & \qw
} \end{array} & \cdots & \begin{array}{c} \Qcircuit@C=1em @R=.7em{
& & \gate{A_{m, 2}~\mbox{on}~R_{m, 2}} & \qw
} \end{array} \\
\vdots & \vdots & \ddots & \vdots \\
\begin{array}{c} \Qcircuit@C=1em @R=.7em{
& & \gate{A_{1, k}~\mbox{on}~R_{1, k}} & \qw
} \end{array} & \begin{array}{c} \Qcircuit@C=1em @R=.7em{
& & \gate{A_{2, k}~\mbox{on}~R_{2, k}} & \qw
} \end{array} & \cdots & \begin{array}{c} \Qcircuit@C=1em @R=.7em{
& & \gate{A_{m, k}~\mbox{on}~R_{m, k}} & \qw
} \end{array} \\
\end{array}