English

Counting anticommuting Pauli pairs in linear time

Quantum Physics 2026-05-13 v1

Abstract

Many quantum computing workflows manipulate long lists of Pauli strings. A basic classical subroutine involves taking mm Pauli strings on nn qubits, each of weight bounded by a constant, to determine if they are pairwise commuting, identify any counterexamples, or calculate the exact number of anticommuting unordered pairs. The standard general-purpose route represents Pauli strings in binary symplectic form and checks pairs in O(m2)O(m^2) time. Here, we provide an O(m)O(m) algorithm for the bounded locality regime. It maintains counts of all labeled subpatterns of previously inserted strings and answers each new string query by a subset zeta identity. Our algorithm is particularly useful for processing large collections of Pauli strings within the bounded locality regime.

Cite

@article{arxiv.2605.11016,
  title  = {Counting anticommuting Pauli pairs in linear time},
  author = {Hyunho Cha and Jungwoo Lee},
  journal= {arXiv preprint arXiv:2605.11016},
  year   = {2026}
}

Comments

9 pages

R2 v1 2026-07-22T07:05:28.041Z