arXiv:2610.24074cs.MSOct 2026

Manuscript Offprint

arXiv:2610.24074

QRecoupling.jl: numerical and exact computation of classical and quantum recoupling coefficients

Seth K. Asante

Seth K. Asante ∗^{*}

Department of Mathematics and Statistics, University of New Brunswick

Fredericton, NB E3B 5A3, Canada

Abstract. QRecoupling.jl is a Julia package for numerical, exact and symbolic evaluation of classical and quantum recoupling coefficients and generic finite sums of quantum factorials, with one interface across the classical limit, principal unitary levels and real or complex deformation. A compact factorial rule and its cyclotomic exponents expose factor cancellation, polynomial structure and level support. The package covers quantum Clebsch–Gordan coefficients, 3j and 6j symbols and user-defined sums. Its adaptive numerical evaluation is combined with exact decisions for sums that cancel to zero. Classical 3j and 6j symbols are evaluated at a speed comparable to that of WIGXJPF, which is based on prime factorization tables, at the smallest spins, and about 6 and 10 times faster at spin cutoff 500. Under real, root-of-unity and complex deformation, the largest relative error measured against independent high-precision references is 3.5×10−143.5 \times 10^{-14} for spins up to 400. Fusion matrices with 401 channels are computed about 100 times faster than by loops over their entries.

Keywords: quantum recoupling, Wigner symbols, quantum groups, exact arithmetic, Julia

Program summary

Program title: QRecoupling.jl, version 0.5.1.

Licensing provisions: MIT.

Programming language: Julia (1.10 or later).

External routines/libraries: Nemo.jl, LRUCache.jl.

Nature of problem: Direct evaluation of recoupling coefficients and related finite sums of factorial products can overflow or lose accuracy through cancellation. Roots of unity change the admissible labels and contributing terms, while numerical, exact and symbolic calculations require different arithmetic for the same coefficient.

Solution method: A compact factorial rule supports classical values, unitary levels, real or complex deformation, and deferred symbolic expressions. Numerical kernels use scaling, compensated arithmetic and adaptive precision; three-term recurrences share work across recoupling families and fusion matrices. Exact values use integer arithmetic at q = 1 and real cyclotomic coordinates with explicit radicals at a level. Nonzero modular residues rule out zero, while unresolved candidates receive exact confirmation within the numerical evaluator and the zero-query interface.

Restrictions: Labels are integer or half-integer spins, and level values follow the level's fusion rules. Weighted coupling coefficients support numerical targets and exact classical output. Their exact-level and symbolic output is not yet available.

References (39)