Where there are K first and second ports, and K is a power of 2, the matrix consists of (log2K) rows each of K/2 hybrids, and ((log2K)???1) rows of K/4 phase shifters disposed between the hybrids, each hybrid being connected to two in the following row, the spacing between the two to which a hybrid is connected increasing as a power of two in each successive row.