Parallelizing Complex Matrix Multiplication: The 3M Solution
Abstract
We consider the problem of computing the product of two matrices with complex entries, a kernel used in quantum chemistry, electromagnetic simulation, quantum circuit simulation, and FFT-based methods. Standard practice already restructures the local computation using the classical \emph{3M} (Gauss/Karatsuba) identity, computing the product from three real matrix multiplications instead of four, dropping arithmetic by $25\%$ unconditionally but leaving communication unchanged. We show that whether 3M is worth doing at all, and whether it is additionally worth restructuring communication to get more of it by computing the three products \emph{in parallel} on disjoint processor groups, are independent questions, and we answer each in closed form under a standard $α$-$β$-$γ$ communication model. Under this model, for 2D layouts, in the large-$P$ limit, parallelizing the split reduces bandwidth by $13.4\%$ and latency by $1-1/\sqrt3\approx42.3\%$, the latter independent of the underlying algorithm's arithmetic exponent; neither reduction is achieved for 3D. For Strassen's algorithm the arithmetic picture reverses: restructuring locally is $7.1\%$ \emph{worse}, not better. We further generalize to Toom-Cook-$k$, giving a closed-form condition, increasing in $k$, under which higher-order splits rescue 3D layouts entirely: for instance, $k=3$ already makes 3D favorable for classical matrix multiplication, where the ordinary $k=2$ split never does.