English

Prefix Sums via Kronecker Products

Quantum Physics 2025-12-24 v2 Data Structures and Algorithms

Abstract

In this work, we revisit prefix sums through the lens of linear algebra. We describe an identity that decomposes triangular all-ones matrices as a sum of two Kronecker products, and apply it to design recursive prefix sum algorithms and circuits. Notably, the proposed family of circuits is the first one that achieves the following three properties simultaneously: (i) zero-deficiency, (ii) constant fan-out per-level, and (iii) depth that is asymptotically strictly smaller than 2log(n)2\log(n) for input length nn. As an application, we show how to use these circuits to design quantum adders with 1.893log(n)+O(1)1.893\log(n)+O(1) Toffoli depth, O(n)O(n) Toffoli gates, and O(n)O(n) additional qubits, improving the Toffoli depth and/or Toffoli size of existing constructions.

Cite

@article{arxiv.2512.16309,
  title  = {Prefix Sums via Kronecker Products},
  author = {Aleksandros Sobczyk and Anastasios Zouzias},
  journal= {arXiv preprint arXiv:2512.16309},
  year   = {2025}
}
R2 v1 2026-07-01T08:30:55.113Z