The above equations are formulated for a single kQEq problem (i.e. a single molecule or system). In practice we train on multiple systems at once. This can still be achieved with a single linear algebra equation by using blocked matrices for A and R, and by concatenating the dipole vector elements of all training systems into a single vector.