The Computational Cost of Biquaternion Arithmetic (simplified)
----> Full version of this article
Claim. Multiplying two general biquaternions — elements of $\mathbb{B}=\mathbb{C}\otimes_{\mathbb{R}}\mathbb{H}$ with four complex coefficients, hence eight real parameters — costs sixty-four real multiplications in the naive component-wise scheme and twenty-four under the bilinear identity that the source's library implements, and the reduction is not a programming trick but an identity of the same family as Gauss's three-multiplication rule for complex numbers.
The Load-Bearing Ideas
1. What is being counted
An element is $\tilde Q=Q_t e_t+Q_x\vec e_x+Q_y\vec e_y+Q_z\vec e_z$ with $Q_{\imath}=q_{\imath}+iq'_{\imath}\in\mathbb{C}$ (so $q_{\imath}$ and $q'_{\imath}$ are the eight real parameters), the basis satisfying $e_t=1$, $\vec e_{\imath}^{2}=-e_t$, $\vec e_x\vec e_y=-\vec e_y\vec e_x=\vec e_z$, and $i$ central. The count is of real multiplications, additions being free. Two levels are named: a coefficient product multiplies a coefficient of one factor by a coefficient of the other; a real product multiplies two real numbers. A complex multiplication costs four real multiplications naively and three under Gauss's rule, so the naive biquaternion count is four times its coefficient count, while the reduced count exploits both the algebra and the complex arithmetic. Both reductions are exact — no approximation, no special case.
The extreme cases are fixed by the algebra's slices: an element of the real-quaternion subspace $\mathbb{B}_{H}$ has all four coefficients real, an element of the antiquaternion subspace $\mathbb{B}_{iH}$ has all four purely imaginary, and these are the two cheapest cases — the ones corresponding to the time-reversal symmetric and antisymmetric matrix structures of the source.
2. The naive count: sixty-four
Writing each factor as scalar plus vector, $\tilde Q_1=S_1+\vec V_1$ and $\tilde Q_2=S_2+\vec V_2$ (complex scalar $S$, complex vector $\vec V$),
$$ \tilde Q_1\tilde Q_2=\bigl(S_1S_2-\vec V_1\cdot\vec V_2\bigr)+\bigl(S_1\vec V_2+S_2\vec V_1+\vec V_1\times\vec V_2\bigr), $$
with the plus on the cross term in the corpus's convention (the source reverses the vector-unit order and carries the opposite sign, a relabelling that changes no count). The coefficient products are $1$ for $S_1S_2$, $3$ for $\vec V_1\cdot\vec V_2$, $3$ for $S_1\vec V_2$, $3$ for $S_2\vec V_1$ and $6$ for $\vec V_1\times\vec V_2$: sixteen complex multiplications, that is sixty-four real multiplications. On either slice the same scheme costs $4\times4=16$ real multiplications.
3. The bilinear product: sixty-four to twenty-four
The reduction writes the four coefficients of the product as fixed linear combinations of eight intermediate products: four "corner" products of individual components and four Hadamard products of the coefficient vectors with the rows of the order-four Sylvester sign matrix. With $\tilde Q_1=M_0e_t+\dots+M_3\vec e_z$, $\tilde Q_2=N_0e_t+\dots+N_3\vec e_z$ and
$$ H_1=(M_0+M_1+M_2+M_3)(N_0+N_1+N_2+N_3), $$ $$ H_2=(M_0+M_1-M_2-M_3)(N_0+N_1-N_2-N_3), $$ $$ H_3=(M_0-M_1+M_2-M_3)(N_0-N_1+N_2-N_3), $$ $$ H_4=(M_0-M_1-M_2+M_3)(N_0-N_1-N_2+N_3), $$
and $P_{00}=M_0N_0$, $P_{32}=M_3N_2$, $P_{13}=M_1N_3$, $P_{21}=M_2N_1$, the product's coefficients satisfy
$$ 4Q_t=8P_{00}-(H_1+H_2+H_3+H_4), $$ $$ 4Q_x=(H_1+H_2-H_3-H_4)-8P_{32}, $$ $$ 4Q_y=(H_1-H_2+H_3-H_4)-8P_{13}, $$ $$ 4Q_z=(H_1-H_2-H_3+H_4)-8P_{21}. $$
The Hadamard combinations supply each coefficient with the sign pattern of one Sylvester row, and the four corner products cancel the diagonal contributions those combinations carry along; the factors of two and four are the price of that cancellation, and they are scalings, which the count treats as free.
Eight intermediate products are eight complex multiplications, so the bilinear scheme costs $8\times4=32$ real multiplications against sixty-four. Gauss's rule,
$$ (M_R+iM_I)(N_R+iN_I)=(T_1-T_2)+i(T_3-T_1-T_2),\qquad T_1=M_RN_R,\ T_2=M_IN_I,\ T_3=(M_R+M_I)(N_R+N_I), $$
evaluates each in three real multiplications instead of four, so the total is $8\times3=24$. The source reports that no further reduction is possible for the algebra as a whole: twenty-four is the multiplication rank of the biquaternion product, as three is the rank of the complex product. On the slices the scheme already terminates at the coefficient level — the coefficients are real or purely imaginary, so the eight products stand alone — giving eight real multiplications against the naive sixteen. The reduction is a factor of two on each slice and of $64/24\approx2.7$ on the full algebra.
4. Matrix-valued biquaternions cost the same
Nothing in the scheme uses commutativity of the coefficients, so it applies unchanged when each coefficient becomes an $n\times m$ complex matrix, an element of $\mathbb{B}^{n\times m}$: the product rule keeps its scalar-vector shape with the dot and cross products taken entrywise in the order of matrix multiplication, and the eight intermediate products are evaluated with a single real matrix-multiplication kernel.
| Case | Naive | Bilinear | Bilinear with Gauss |
|---|---|---|---|
| general matrix-valued biquaternion | $64$ | $32$ | $\mathbf{24}$ |
| real-quaternion matrix | $16$ | $\mathbf{8}$ | $\mathbf{8}$ |
| antiquaternion matrix | $16$ | $\mathbf{8}$ | $\mathbf{8}$ |
So a fully populated product costs twenty-four real matrix-matrix multiplications instead of sixty-four, at $24/64$ of the multiplication work; the asymptotic order is untouched, since a matrix product remains $O(n^{3})$ and only the constant has been reduced. On memory, an $n\times n$ matrix-valued biquaternion holds four complex matrices, $8n^{2}$ real numbers, and its $2n\times2n$ complex image holds $8n^{2}$ as well: the two representations are the same size, and under a 32-bit integer workspace limit the array form reaches roughly twice the dimension of the complex form before the limit binds.
5. The complex image, its blocks, and the eigenvalue problem
The object a machine consumes is the image $M=\sum_{\imath}\mathsf{M}_2(e_{\imath})\otimes Q_{\imath}$, a $2n\times2m$ complex matrix with $\mathsf{M}_2(e_t)=I_2$ and $\mathsf{M}_2(\vec e_{\imath})=-i\sigma_{\imath}$ (with $\sigma_{\imath}$ the Pauli matrices and $\otimes$ the Kronecker product, taken with $\mathsf{M}_2$ first). The image is a homomorphism for the entrywise product, and its dagger is the array dagger. Its inner blocks carry the slice structure: a real-quaternion array has the time-reversal symmetric form
$$ M_{+}=\begin{pmatrix} A & B \\ -B^{*} & A^{*}\end{pmatrix},\qquad A=Q_t-iQ_z,\quad B=-iQ_x-Q_y, $$
and an antiquaternion array the time-reversal antisymmetric form
$$ M_{-}=\begin{pmatrix} G & H \\ H^{*} & -G^{*}\end{pmatrix},\qquad G=Q_t-iQ_z,\quad H=-iQ_x-Q_y. $$
No eigensolver for biquaternion matrices exists in LAPACK or its GPU counterparts, so a Hermitian biquaternion array is mapped to its Hermitian complex image — the mapping costs no information — and the economy comes from the blocks: a block-diagonal image separates into two diagonalisations of half the dimension, and a block anti-diagonal image is turned block diagonal by the $*$-unitary matrix
$$ U_{\alpha}=\frac{1}{\sqrt2}\begin{pmatrix} I & I \\ \alpha I & -\alpha I\end{pmatrix},\qquad \lvert\alpha\rvert=1, $$
which works exactly when $\alpha^{*}B=\alpha A$, the blocks then being $\alpha A$ and $-\alpha A$. The root is fixed by the relation between the two blocks: $B=-A$ gives $\alpha=\pm i$ (the case of $\vec e_y$ alone), $B=A$ gives $\alpha=\pm1$ ($\vec e_x$ alone), and $\vec e_z$ alone is already block diagonal. When the blocks are not simply related, a complex matrix $G=VU^{\dagger}$ built from the singular value decomposition $A=U\Sigma V^{\dagger}$ of the upper block restores the condition $AG=(AG)^{*}$.
The Cost in the Framework's Terms
The two splits of the algebra do not align, and the arithmetic makes the misalignment concrete: the split the algorithm respects is the complex-conjugation one, $\mathbb{B}=\mathbb{B}_{H}\oplus\mathbb{B}_{iH}$, not the sector split $\mathbb{B}=\mathbb{B}_{\Phi}\oplus\mathbb{B}_{\Psi}$, which cuts across it — an element of $\mathbb{B}_{\Phi}$ uses one parameter of the antiquaternion half and three of the real-quaternion half, so a sector-restricted problem is not automatically the cheap one. Where the arithmetic and the physics meet most directly is the trace: the corpus's $2\,\mathrm{Sc}(\tilde Q_1\tilde Q_2^{*})$, on which the Born rule is written, is the same number as the machine's trace on the complex image, so the probability read off the arithmetic is the probability the algebra defines. The cost organises itself along the source's symmetry classes: a time-reversal symmetric problem is real-quaternion and a time-reversal antisymmetric one purely imaginary-quaternion — exactly the eight-multiplication regimes — and a problem with both is the twenty-four-multiplication case.
The Benchmarks
These are the source's own measurements, on a single NVIDIA H200 system with runs on A100 and GH200 in its appendix, at matrix dimension $N=44000$ with all components active:
| Comparison | Pure CPU | Hybrid CPU/GPU |
|---|---|---|
| biquaternion, bilinear vs complex | $\approx1.2\times$ | $\approx2.7\times$ |
| real quaternion, bilinear vs complex | $\approx3.5\times$ | $\approx7.3\times$ |
The real-quaternion case gains more because its naive count is already sixteen and its bilinear count eight, so less of the advantage is spent on complex arithmetic. For the Hermitian eigenvalue problem at $N=43000$, the complete CPU/GPU workflow — including the biquaternion-to-complex mapping and the host-device transfers — is reported as approximately $12$ times faster than the CPU oneAPI MKL route and $61$ times faster than the NVHPC OpenBLAS route.
| $N$ | Total (s) | Eigensolver (s) | Transfers (s) |
|---|---|---|---|
| $8000$ | $2.733$ | $1.077$ | $1.248$ |
| $16000$ | $11.867$ | $6.263$ | $4.948$ |
| $24000$ | $31.237$ | $19.015$ | $11.128$ |
| $32000$ | $64.678$ | $43.288$ | $19.651$ |
| $40000$ | $114.937$ | $81.708$ | $30.654$ |
| $43000$ | $139.173$ | $100.884$ | $35.426$ |
Host-device transfer is about $46\%$ of the total at $N=8000$, falling to about $26\%$ at $N=43000$ as the cubic eigensolver overtakes it. The backend workspace outgrows a signed 32-bit index at $N\approx32760$ on the CPU route and $N\approx23170$ on the GPU route, where the library switches to the 64-bit interface; and the array form reaches a larger dimension than the complex image before the limit binds, reported as a doubling from about $46000$ to about $92000$.
What Is Not Claimed
- Biquaternions are not claimed cheap in general: the advantage is measured against the naive component-wise algorithm and the isomorphic complex one, and a problem using one half of the algebra is cheaper than one using both.
- This is not a physical result: a multiplication count for an algebra cannot support or refute any claim about which algebra describes the world.
- The asymptotic cost is unchanged: the scheme reduces the constant of an $O(n^{3})$ product and does nothing to the exponent, and the GPU gains come largely from parallelism rather than from the count.
- Twenty-four is the optimal count for the full algebra as the source reports it, not optimality for every problem — fewer active components admit smaller counts by omission of terms.
- The benchmarks are the source's, reported for their shape and order of magnitude, not reproduced here, and they belong to particular hardware, libraries and compiler stacks.
- The corpus's mathematical account is unchanged: this article adds a cost to objects the representation, ideal, spectral and norm articles define.
Five-Sentence Summary
- A general biquaternion product costs sixteen complex, or sixty-four real, multiplications naively, and sixteen real multiplications on either of the two complex-conjugation slices.
- The bilinear scheme evaluates four coefficients from eight intermediate products — four Hadamard and four corner products — costing thirty-two real multiplications, and Gauss's rule brings that to twenty-four, the multiplication rank of the algebra.
- The same scheme applies unchanged to matrix-valued biquaternions because it never uses commutativity, so a fully populated product costs twenty-four real matrix products instead of sixty-four, with the asymptotic order unchanged and the memory equal to that of the complex image.
- The image's block structure — time-reversal symmetric for real-quaternion arrays, antisymmetric for antiquaternion ones — lets a Hermitian problem reduce to two of half the dimension or be rotated block diagonal by $U_{\alpha}$.
- The source's benchmarks (about $1.2\times$ on CPU and $2.7\times$ on hybrid CPU/GPU for the full algebra, $3.5\times$ and $7.3\times$ for the real-quaternion case, $12\times$ and $61\times$ for the eigensolver workflows) are its own measurements, and the count is a fact about arithmetic, not about the world.
One-Sentence Version
A biquaternion product that naively needs sixty-four real multiplications needs twenty-four under a bilinear identity combined with Gauss's rule — a factor of $64/24\approx2.7$ that survives unchanged at matrix level, because the identity never uses commutativity — and the reduction organises itself along the algebra's complex-conjugation slices rather than along its material and informational sectors.
What This Simplification Omits
- The detailed derivation of the source's own numbering of the eight products ($P_1,\dots,P_8$) and the verification that both forms reproduce the direct product.
- The full discussion of the image's homomorphism properties, the realification article's correspondence, and the completion of the $*$-unitary reduction by the singular-value decomposition.
- Part of the framework reading (the conformal and sector interpretation of the counts) and the Summary of Notation and Further Reading.
All counts and benchmark numbers are kept: $64$, $32$, $24$, $16$, $8$, $64/24\approx2.7$, $1.2\times$, $2.7\times$, $3.5\times$, $7.3\times$, $12\times$, $61\times$, $N=44000$ and $N=43000$, the six-row timing table, $46\%$ to $26\%$, $32760$, $23170$, and $46000$ to $92000$.