Booster evaluation¶
The four-valent booster carries the Lorentzian part of the vertex amplitude.
The implementation evaluates it through reduced SL(2,C) coupling coefficients
and a spectral integral, following Eq. (52) of
Speziale's Boosting Wigner's nj-symbols.
The reduced coefficient is denoted \(\chi\) in Speziale's Eq. (44), and plays
the role of Anderson's \(X\) after accounting for their different conventions.
The internal implementation uses the corresponding \(\kappa\) coefficient and
a rescaled quantity called Z.
For each booster, the four legs are paired as \((1,2)\) and \((3,4)\). A virtual SL(2,C) representation \((\rho,k)\) couples each pair. The spectral formulation combines coefficients evaluated at the boundary spins with coefficients at the extended spins, sums over admissible \(k\), and integrates over \(\rho\in\mathbb R\). Phase and dimension factors connect these coefficients to the SU(2) intertwiner normalization used in the vertex.
Direct evaluation of the closed form repeatedly forms large, cancelling complex terms. Instead, the library computes a minimal coefficient and propagates it through the Lorentz-group recurrence relations of Anderson, Rączka, Rashid, and Winternitz, Recursion and Symmetry Relations for the Clebsch–Gordan Coefficients of the Homogeneous Lorentz Group. Their Eqs. (19) give three ways to advance a coupled spin, Eqs. (25) cover the exceptional diagonals, and Eqs. (29)–(32) connect minimal boundary coefficients. The following formulas describe their adaptation as used by the implementation, rather than identifying the paper's \(X\) directly with the stored numerical values.
From the reduced coefficient to the stored quantity¶
At fixed representations \((\rho_1,k_1)\), \((\rho_2,k_2)\), and \((\rho,k)\), write the varying SU(2) spins as \((J_1,J_2,J)\). On this page all spins in equations are ordinary integer or half-integer spins; the code represents them by doubled integers. In a booster, the external labels are \(k_1=j_1\), \(k_2=j_2\), while the varying spins reach the virtual labels \(J_1=\ell_1\), \(J_2=\ell_2\).
The SU(2) Clebsch–Gordan factor removes all magnetic dependence:
For fixed representation labels, Speziale's Eq. (44) has the form
Here \(d_s=2s+1\). Writing \(K=k_1+k_2+k\) and \(P=\rho_1+\rho_2+\rho\), the representation-dependent factor is
where \(x\) is Speziale's representation-dependent phase. Thus \(\mathcal N\) is constant as the three SU(2) spins vary. Anderson's canonical basis has a different phase convention. Its continuous parameter also obeys \(\rho_{\mathrm A}=2\rho\): the radicand in that paper is \(J^2+\rho_{\mathrm A}^2/4\). These changes must be made before transferring a recurrence to \(\kappa\).
The algebraic rule for such a change is simple. If a recurrence reads \(X(u)=\sum_v a_{uv}X(v)\) and \(X(u)=g(u)\kappa(u)\), the transformed coefficient is \(a_{uv}g(v)/g(u)\). Spin-dependent phases and dimensions therefore change the recurrence coefficients; a normalization constant at fixed representations cancels.
The implementation additionally distributes the spectral denominator among the coefficients. Define
The actual table is
Thus z_to_k_factor removes the signed dimension factor and returns
\(\widetilde\kappa\), not an unscaled \(\kappa\). There are two coefficients for
each pair in the booster integrand, one at boundary spins and one at virtual
spins. Their two factors \(\mathcal D_{12}^{-1/2}\) supply that pair's complete
spectral denominator. The second pair supplies \(\mathcal D_{34}^{-1}\) in the
same way.
Minimal coefficients and logarithmic scaling¶
The minimal \(\kappa\) coefficient consists of a complex Gamma prefactor and a finite magnetic sum. In schematic form,
where
\(P\) collects the factors independent of \(n\), and \(F_n\) contains factorial and Gamma ratios. This is the minimal configuration of Eq. (48) in the working derivation listed in the references. The admissible magnetic range is
The seed construction is implemented by kappaMinVec in
src/boosters/B4_function.hpp. Its magnetic row comes from the normalized
Luscombe–Luban 3j recurrence, implemented in
src/wigner/ThreeJRecurrence.hpp. This SU(2) recurrence prepares one factor
inside the seed; it is distinct from the Anderson SL(2,C) recurrence that
propagates the completed seed across \((J_1,J_2,J)\). The magnetic rows depend
only on discrete labels, so the booster builder reuses them across the
quadrature nodes of the current computation.
The remaining magnetic terms advance by the ratio
This is the ratio for \(F_n\); the 3j weights \(w_n\) multiply its successive values. Advancing by a ratio avoids a new set of Gamma evaluations for every magnetic label.
The seed evaluator separates magnitude from phase throughout:
- Triangle and magnetic-range checks eliminate forbidden seeds.
- Log-factorials and complex log-Gamma values form the prefactor and the first magnetic term.
- The first term is scaled to unit magnitude. During the sum, the current term and partial sum are rescaled together when their largest magnitude leaves the interval \([10^{-100},10^{100}]\); the removed scale is accumulated logarithmically.
- The final magnitude and phase are reconstructed after summation.
The log-Gamma implementation in src/wigner/ln_gamma.hpp uses a nine-term
Lanczos approximation, reflection, and explicit phase handling. The seed
absorbs the supplied spectral normalization through
\(\exp(-\texttt{logDen}/2)\), where
\(\texttt{logDen}=\log\mathcal D_{12}\). With
\(h=\pi|\rho_1+\rho_2+\rho|/2\), the denominator is evaluated through
\(\mathcal D_{12}=2\cosh^2h\) for even \(k_1+k_2+k\) and
\(\mathcal D_{12}=2\sinh^2h\) for odd \(k_1+k_2+k\). Logarithmic evaluation
avoids forming an overflowing hyperbolic cosine.
All discrete labels remain doubled integers through the seed interface, 3j lookup, and admissibility checks. Physical half-integer values are formed only inside floating-point expressions. In particular, a phase with doubled exponent \(Dq\) is evaluated as
so odd doubled labels retain their complex phase exactly.
The seeded domain and its boundaries¶
At fixed representation labels, the physical domain is
For the EPRL booster, only \(0\le k\le k_1+k_2\) is needed: the same \(k\) occurs in a coefficient at the minimal external spins \((j_1,j_2)\), and cannot exceed their coupled boundary intertwiner. This restriction matters. The Anderson paper treats more general representation triples, including \(k>k_1+k_2\); the production booster does not need to seed that additional case.
The initial cell is
provided it lies within the requested domain and has the admissible parity. The code distinguishes three cases:
| Representation labels | Initial coupled spin | Additional minimal boundary |
|---|---|---|
| \(\lvert k_1-k_2\rvert\le k\le k_1+k_2\) | \(J_0=k\) | The initial cell suffices. |
| \(k_1>k_2+k\) | \(J_0=k_1-k_2\) | Increase \(J_2\) while decreasing \(J\), with \(J_1=k_1\). |
| \(k_2>k_1+k\) | \(J_0=k_2-k_1\) | Increase \(J_1\) while decreasing \(J\), with \(J_2=k_2\). |
In the second case, the minimal boundary is the segment
All its cells have the same \(J_1+J_2+J=2k_1\), so a recurrence that only raises this sum cannot generate the segment from its endpoint. A dedicated one-step relation does so. Define the real generator factors
At their lower representation bound the corresponding \(Q\) and \(r\) vanish; \(r(0)\) is set to zero. For a boundary cell \((k_1,v,w)\) with \(v+w=k_1\), the implemented update is
This is the boundary propagation associated with Anderson's Eqs. (29)–(30), after the normalization changes above. The code uses the forward form when \(k\le k_2\) and an algebraically equivalent inverse form when \(k_2<k\). Exchanging the two external representation labels gives the third case in the table. Cells outside the planned maxima are skipped.
The three general recurrence branches¶
For an interior cell, the code uses one of three homogeneous relations, each with at most four predecessors. They correspond to Anderson's Eqs. (19b), (19c), and (19a), respectively. The equations below are for the stored \(Z\), with the code's \(\rho\) convention and all spin-dependent rescalings already included.
Raising the first spin¶
Write the target as \((p+1,v,w)\). The first branch is
where
The first predecessor has a purely imaginary coefficient; the other three coefficients are real. This is why a real-valued booster can still require complex recurrence tables. The signs are part of the \(Z\) convention. Dropping the factor \(i\), or transplanting the paper's coefficients without its phase conversion, would define a different recurrence.
Raising the second spin¶
The second branch has the predecessor pattern
Its coefficients follow from the first branch by exchanging the labels of external representations 1 and 2 and the corresponding SU(2) axes, and reversing the sign of the imaginary coefficient. More explicitly, apply the first-branch formulas with \((p,v)=(q,u)\) and \((k_1,\rho_1;k_2,\rho_2)\mapsto(k_2,\rho_2;k_1,\rho_1)\). Keep \(L_1,\beta_1,\eta_1,\delta_1\) so obtained, but replace \(i\alpha_1\) with \(-i\alpha_1\). The second-step predecessor is now \(Z(u,q-1,w)\), while the cross-axis predecessor is \(Z(u-1,q,w)\). This specifies the entire second branch without assuming a symmetry of the input spins or spectral labels.
Raising the coupled spin¶
For a target \((u,v,t+1)\), the third branch is
with
Only \(Q(t+1)\), \(Q(t)\), and the term proportional to \(\rho\) vary over the quadrature nodes. The remaining factors depend on discrete geometry and the fixed external representations.
Choosing a valid branch¶
The compiler visits \(J_1\), then \(J_2\), then \(J\) in increasing order, with unit steps in ordinary-spin notation. It prefers the first branch when \(J_1>k_1\) and its left-hand geometric radicand is positive. Otherwise it tries the second branch with \(J_2>k_2\), and finally the third with \(J>k\). Each selected relation reads cells already available in that ordering. Initial, minimal-boundary, and exceptional-diagonal cells are marked as protected and are not overwritten by this general traversal.
The displayed coefficients apply when their associated predecessor is physical. They must not be evaluated literally at every formal boundary. For example, when \(p-1<k_1\), the term involving \(Z(p-1,v,w)\) is absent; one must not first evaluate a singular \(\eta_1\) and then multiply it by zero. Likewise, factors such as \(k_1\rho_1/p\) are assigned their boundary value zero when \(p=k_1=0\). The implementation handles these cases with branch and range guards, and keeps zero-filled lower halos for invalid predecessor addresses.
Exceptional diagonals¶
The three general branches all fail when one SU(2) spin is zero and the other two coincide: the triangle is admissible, but lowering any single axis destroys it. Anderson's Eqs. (25a)–(25c) instead advance the two equal spins together. The executor prepares these diagonals before replaying the general recurrence.
For \(k=0\), let \(z_s=Z(s,s,0)\), starting at \(s_0=\max(k_1,k_2)\). The implemented three-term diagonal relation is
At the first cell \(s=s_0\), the predecessor is absent and \(\mathcal P_s\) is set to zero before evaluation. At \(s=0\), the final fraction in \(\mathcal H_s\) is also set to zero. In particular, a first half-integer cell \(s=1/2\) must not trigger the apparent singular denominator in \(\mathcal P_s\).
The other two dedicated relations fill \(Z(0,s,s)\) when \(k_1=0\) and \(Z(s,0,s)\) when \(k_2=0\), using the corresponding forms of Anderson's Eqs. (25b) and (25c). Their first predecessors are omitted in the same way. The boundary and diagonal evaluators also guard divisions by small coefficients. These guards are numerical safeguards, not estimates of the error in the resulting recurrence table.
Compiling and replaying the recurrence¶
The recurrence separates naturally into a discrete traversal and arithmetic
at the quadrature nodes. PureGeomCacheZ records triangle-dependent square
roots and branch choices. KappaTapeZ::compile then includes the fixed
external \((\rho_1,k_1)\) and \((\rho_2,k_2)\) factors and emits the ordered
operations needed for one virtual \(k\). Consecutive operations of the same
branch are grouped into chunks, while their dependency order is preserved.
After division by \(L_1\) or its second-branch counterpart, an update has the form
For the third branch, the stored constants instead give
where \(J\) is the target coupled spin. The tape stores \(a,b,c,d,e\) and addresses; it does not store a separately expanded instruction stream for each quadrature node. Per-node lookup arrays supply \(Q(J)\), \(1/Q(J)\), and \(Q(J-1)/Q(J)\) over the required spin range.
KappaFastZ_ExecuteTapeTile evaluates the minimal seed at each node,
propagates the minimal boundaries and special diagonals, then replays this
tape for a tile of 4, 8, or 16 spectral nodes. Each cell stores contiguous
real lanes followed by contiguous imaginary lanes. For example,
\(i\alpha Z_1\) contributes \(-\alpha\operatorname{Im}Z_1\) to the real part
and \(\alpha\operatorname{Re}Z_1\) to the imaginary part. This simple real
arithmetic can be vectorized across nodes without repeating geometry
choices inside the lane loop. The paired tables for legs \((1,2)\) and
\((3,4)\) subsequently provide the booster integrand.
This strategy avoids reevaluating a cancelling closed-form sum at every virtual spin. It does not establish unconditional numerical stability for all spins, spectral parameters, or cutoffs. Seed cancellation, recurrence roundoff, underflow, and the quadrature approximation remain distinct limitations; the recurrence does not carry a certified error bound.
Mapping the spectral integral¶
The integration variable here is the spectral parameter \(\rho\), rather than the rapidity in the original group-integral definition. The implementation uses
For the four physical boundary spins of this booster,
Channels are grouped by their maximum virtual representation label \(k_{\max}\). For boundary and extended intertwiners \((a,b)\) in ordinary-spin units, this maximum is \(\min(a,b)\). The integration center is shared by the group:
The first simplicity prescription is the default. The same chosen prescription determines the four external \(\rho_j\) values. The integration center depends on the group's \(k_{\max}\), while the current \(k\) still enters the spectral measure.
The implementation sums nonnegative virtual labels with the admissible parity. With \(w_q\) denoting the transformed-interval quadrature weights, each node contributes the combined weight
The remaining booster phases and dimension factors are applied when the recurrence tables are combined.
A composite 128-node rule¶
src/boosters/B4Quadrature.hpp stores the positive half of a 64-point
Gauss–Legendre rule. Reflection reconstructs the full rule, which is then
mapped independently onto \([-1,0]\) and \([0,1]\). Thus the production quadrature
has 64 nodes on each half interval, 128 nodes in total:
where \((u_q,v_q)\) is the 64-point rule on \([-1,1]\). The nodes avoid the endpoints of the spectral map. This is a fixed composite rule, with no adaptive refinement or estimated quadrature error. The shell cutoff, quadrature approximation, and floating-point evaluation are separate sources of numerical error; the computation supplies no certified combined error bound.
Producing only the required booster entries¶
The preceding 6j support analysis specifies which shell combinations and intertwiner channels can contribute to the vertex. Booster construction carries those supports forward. It additionally applies local triangle, parity, and exact exchange-symmetry checks when constructing its output tasks.
The harvesting stage reads the required cells from both recurrence tables, combines boundary and extended coefficients, restores phase and dimension factors, and accumulates their quadrature contributions into the output tensor. Intermediate recurrence cells may still be needed to reach those outputs, even when the cells themselves are never harvested.
For example, harvesting \(Z(J_1,J_2,J)\) through the first general branch can require \(Z(J_1-1,J_2,J)\) and \(Z(J_1-2,J_2,J)\) even if neither corresponds to a requested booster output. Each predecessor may in turn require earlier cells. A reduced recurrence domain must therefore contain the complete dependency chain of every harvested entry. Pruning the booster task list does not justify setting arbitrary internal \(Z\) cells to zero.
The current tape compiler traverses the admissible cells within the planned spin maxima; it does not construct a minimal dependency graph separately for each harvested output. The useful reductions occur at complementary levels: supports eliminate unused output channels and tasks, physical minima and maxima bound recurrence storage, and triangle conditions avoid nonphysical recurrence updates.
For coherent amplitudes, the producer also sums the boundary-intertwiner index against its complex coherent coefficients during harvesting. It therefore emits the smaller complex booster tensors used by the coherent contraction. Fixed-intertwiner and full-tensor calculations retain their respective real booster outputs.
The production booster builders execute on the host using OpenMP and vectorization. Their tensors feed the CPU or GPU contraction stage; GPU execution still includes this host preparation phase. The division of work and memory lifetimes are described in execution.