One token's q: C = 12 channels in H = 4 heads of d = 3q (4, 3)
slot 0slot 1slot 2head 0012head 1345head 2678head 391011
Each cell is a channel number.
Inside q, channels 0 to d−1 belong to head 0, channels d to 2d−1 to head 1, and so on. Channel c goes to head c // d, slot c % d.
So splitting into heads means cutting each position's C channels into H pieces of d. Nothing more.