SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2311.14670 · 2023

Differentiable and accelerated spherical harmonic and Wigner transforms

arXiv · PDF · Open in the Atlas

Code that ran

10 of 13 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 9 failures of our instrument; 3 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2311.14670.json · badge: /api/ran/2311.14670.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
astro-informatics/s2fft canonical (classifier label)
classifier basis: census
9 ran · 3 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
C01_C11_to_isotropic Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
this paper's copy was not recorded; identical code first harvested from astro-informatics/s2scat
pointer only · get_code("2201fad4e6787496")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_full Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
astro-informatics/s2fft/s2fft/recursions/risbo.py
code served (permissive licence) · get_code("a4e804d1d407a86e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (5, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Construct valid arguments for compute_full function

# L is the harmonic band-limit
L = 3

# el is the spherical harmonic degree (must satisfy 0 <= el < L)
el = 1

# beta is the argument angle (must satisfy 0 <= beta <= pi)
beta = np.pi / 4

# dl is a Wigner-d plane with shape (2*L - 1, 2*L - 1)
dl = np.zeros((2 * L - 1, 2 * L - 1), dtype=np.float64)

ARGS = {
    "dl": dl,
    "beta": beta,
    "L": L,
    "el": el
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 5) — shape (5, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_full Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
astro-informatics/s2fft/s2fft/recursions/risbo_jax.py
code served (permissive licence) · get_code("552a27b0485e72c0")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ArrayImpl, ndim 2, dtype family float, shape (9, 9) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax.numpy as jnp
import numpy as np

# Set seed for reproducibility
np.random.seed(0)

# The function signature:
# compute_full(dl: jnp.ndarray, beta: float, L: int, el: int) -> jnp.ndarray

# Analyze the function:
# - dl: A 2D array (Wigner-d plane), indexed as dl[row, col]
#   The function accesses indices like dl[el + L - 1, el + L - 1]
#   and dl[k - (el - 1) + L - 1][:, i - (el - 1) + L - 1]
#   For el=0, it accesses dl[L-1, L-1]
#   For el=1, it accesses rows/cols from L-2 to L
#   For el>1, it needs to handle indices up to el + L - 1
# - beta: A float angle argument
# - L: An int harmonic band-limit (static arg)
# - el: An int spherical harmonic degree (static arg)

# Let's set up with L=3, el=2 as test case
L = 3
el = 2

# dl should be a 2D array large enough to accommodate indexing
# Maximum index accessed: el + L - 1 = 2 + 3 - 1 = 4
# So we need at least (5, 5) array, but let's make it bigger to be safe
# The array should be (2*L - 1, 2*L - 1) based on typical Wigner-d implementations
# Looking at indexing patterns, a safe size is at least (2*L + el, 2*L + el)
dl_size = 2 * L + el + 1  # = 2*3 + 2 + 1 = 9
dl = jnp.zeros((dl_size, dl_size), dtype=jnp.float32)

# beta: any float angle, typically in [0, pi]
beta = 0.5

ARGS = {
    "dl": dl,
    "beta": beta,
    "L": L,
    "el": el,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (9, 9) — shape (9, 9) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_full_vectorised Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
astro-informatics/s2fft/s2fft/recursions/risbo.py
code served (permissive licence) · get_code("2447906fec80c98c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 3, dtype family float, shape (2, 5, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Define parameters for compute_full_vectorised
# The function computes Wigner-d matrices using Risbo recursion

# L: harmonic band-limit (int) - determines the size of the dl array
L = 3

# el: spherical harmonic degree (int) - we'll test with el=2
el = 2

# beta: arguments at which to compute Wigner-d plane (np.ndarray)
# Should be a 1D array of angles
num_angles = 2
beta = np.array([0.5, 1.5])

# dl: Wigner-d plane for el-1 and all beta (np.ndarray)
# Shape should be (num_angles, 2*L-1, 2*L-1) to accommodate all m, m' indices
# The array is indexed as dl[angle_idx, m + L - 1, m_prime + L - 1]
# where m and m' range from -(L-1) to (L-1)
dl = np.zeros((num_angles, 2*L - 1, 2*L - 1))

# For el >= 1, we need to initialize dl with values from el-1
# For el=2, we need dl to have been computed for el=1
# Let's initialize it with some non-zero values for the el=1 case
if el >= 1:
    # Initialize dl as if it were computed for el=1
    cosb = np.cos(beta)
    sinb = np.sin(beta)
    coshb = np.cos(beta / 2.0)
    sinhb = np.sin(beta / 2.0)
    sqrt2 = np.sqrt(2.0)
    
    # Populate dl for el=1 (which serves as input for el=2)
    dl[:, 0 + L - 1, 0 + L - 1] = coshb ** 2
    dl[:, 0 + L - 1, 1 + L - 1] = sinb / sqrt2
    dl[:, 0 + L - 1, 2 + L - 1] = sinhb ** 2
    dl[:, 1 + L - 1, 0 + L - 1] = -sinb / sqrt2
    dl[:, 1 + L - 1, 1 + L - 1] = cosb
    dl[:, 1 + L - 1, 2 + L - 1] = sinb / sqrt2
    dl[:, 2 + L - 1, 0 + L - 1] = sinhb ** 2
    dl[:, 2 + L - 1, 1 + L - 1] = -sinb / sqrt2
    dl[:, 2 + L - 1, 2 + L - 1] = coshb ** 2

ARGS = {
    "dl": dl,
    "beta": beta,
    "L": L,
    "el": el,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 3, dtype family float, shape (2, 5, 5) — shape (2, 5, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_quarter_slice Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
astro-informatics/s2fft/s2fft/recursions/turok.py
code served (permissive licence) · get_code("026fdb890667ab0e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (9,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Analyze the function signature and implementation
# Parameters:
# - dl: np.ndarray of shape (2L-1,) - a Wigner-d matrix slice to populate
# - beta: float - polar angle in radians
# - el: int - harmonic degree
# - L: int - harmonic band-limit
# - mm: int - harmonic order
# - positive_m_only: bool, optional

# From the code, we can see:
# - dl is indexed as dl[L - 1 + mm], dl[L - 1 - mm], etc.
# - The array needs to have size at least 2*L - 1
# - L must be > el (since lims includes L - 1 - el and L - 1 + el)
# - el, L, mm are integers with relationships between them

# Create small but valid values
L = 5  # harmonic band-limit
el = 3  # harmonic degree (must be <= L-1)
mm = 1  # harmonic order (should be reasonable relative to el)
beta = 0.5  # polar angle in radians

# Create dl array of correct size
dl_size = 2 * L - 1  # = 9
dl = np.zeros(dl_size, dtype=np.float64)

ARGS = {
    'dl': dl,
    'beta': beta,
    'el': el,
    'L': L,
    'mm': mm,
    'positive_m_only': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (9,) — shape (9,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_slice Ran
ran, honoured the contract we drafted
astro-informatics/s2fft/s2fft/recursions/turok.py
code served (permissive licence) · get_code("346716e3f7703576")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (9,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

ARGS = {
    "beta": 1.5,
    "el": 3,
    "L": 5,
    "mm": 1,
    "positive_m_only": False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (9,) — shape (9,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
init Ran
ran; our contract draft was wrong, not the code
astro-informatics/s2fft/s2fft/recursions/trapani.py
code served (permissive licence) · get_code("94b976a8c3413231")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (5, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import jax.numpy as jnp

# Create a small Wigner-d plane for testing
# The plane is indexed as dl[m + L - 1, m' + L - 1]
# For L=3, we have m, m' in range [-3, 3], so we need a (5, 5) array
# (since -3+3-1=−1 to 3+3-1=5, giving indices 0 to 4, which is 5 elements)
L = 3
dl_shape = (2 * L - 1, 2 * L - 1)  # Shape for all m, m' in [-L, L)
dl = np.zeros(dl_shape, dtype=np.float32)

ARGS = {
    'dl': dl,
    'L': L,
    'implementation': 'vectorized'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 5) — shape (5, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
init_jax Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
astro-informatics/s2fft/s2fft/recursions/trapani.py
code served (permissive licence) · get_code("673585ba8e588087")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ArrayImpl, ndim 2, dtype family float, shape (5, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax.numpy as jnp

# The function init_jax takes:
# - dl: jnp.ndarray of shape (2*L-1, 2*L-1) for indexing with m, m' in range [-L+1, L]
# - L: int, the harmonic band-limit

# From the docstring and code:
# - dl is indexed as dl[m + L - 1, m' + L - 1]
# - For L=3, we need indices from -2 to 2, so array shape is (5, 5)
# - el = 0, so we set dl[0 + L - 1, 0 + L - 1] = dl[L-1, L-1] = 1.0

L = 3
# Create a 2D array of shape (2*L-1, 2*L-1) = (5, 5)
dl = jnp.zeros((2*L - 1, 2*L - 1))

ARGS = {
    "dl": dl,
    "L": L,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family float, shape (5, 5) — shape (5, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
init_nonjax Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
astro-informatics/s2fft/s2fft/recursions/trapani.py
code served (permissive licence) · get_code("3f7d7b4c5efdc5fd")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 2, dtype family float, shape (5, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Create a numpy array for Wigner-d plane
# For L=3, we need indices from -L to L-1, so shape should be (2*L-1, 2*L-1)
# The array will be indexed as dl[m + L - 1, m' + L - 1]
L = 3
dl = np.zeros((2 * L - 1, 2 * L - 1), dtype=np.float64)

ARGS = {
    "dl": dl,
    "L": L,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 2, dtype family float, shape (5, 5) — shape (5, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
wigner_subset_to_s2 Ran
ran; our contract draft was wrong, not the code
astro-informatics/s2fft/s2fft/precompute_transforms/custom_ops.py
code served (permissive licence) · get_code("ecb6493183644480")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 5, dtype family float, shape (2, 3, 4, 7, 2) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Parameters
batch_size = 2
n_s = 3  # number of spins
L = 4    # harmonic band-limit
channels = 2

# Create flmn: [batch, n_s, L, 2L-1, channels]
flmn = np.random.randn(batch_size, n_s, L, 2*L-1, channels).astype(np.complex128)

# Create spins: [n_s]
spins = np.array([0, 1, 2], dtype=np.int32)

# Create DW tuple: (Delta, weights)
# Delta should have shape compatible with indexing in the einsum: 'lam,lan'
# From the einsum, Delta is indexed as Delta[:, :, L-1+n]
# Delta needs shape [L, 2L-1, ...] to support these indices
# Let's make Delta shape [L, 2L-1, L+2] to allow indexing up to L-1+max(n)
Delta = np.random.randn(L, 2*L-1, L+3).astype(np.complex128)
weights = np.random.randn(L, 2*L-1).astype(np.complex128)
DW = (Delta, weights)

# Create sampling string
sampling = 'mw'

ARGS = {
    'flmn': flmn,
    'spins': spins,
    'DW': DW,
    'L': L,
    'sampling': sampling
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 5, dtype family float, shape (2, 3, 4, 7, 2) — shape (2, 3, 4, 7, 2) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
compute_full Not yet run
unverified (harvested, no recorded run)
astro-informatics/s2fft/s2fft/recursions/turok.py
code served (permissive licence) · get_code("1ba1cd2ff98f34dc")
How it ran

no invocation recorded.

so3_to_wigner_subset Not yet run
unverified (harvested, no recorded run)
astro-informatics/s2fft/s2fft/precompute_transforms/custom_ops.py
code served (permissive licence) · get_code("15e9838df19f7d05")
How it ran

no invocation recorded.

wigner_subset_to_s2_jax Not yet run
unverified (harvested, no recorded run)
astro-informatics/s2fft/s2fft/precompute_transforms/custom_ops.py
code served (permissive licence) · get_code("9a351188dfafb704")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 12 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
C01_C11_to_isotropic 1 other paper
1 dated earlier
2204.10177 (2022-04)
Scale Dependencies and Self-Similar Models with Wavelet Scattering Spectra

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Many areas of science and engineering encounter data defined on spherical manifolds. Modelling and analysis of spherical data often necessitates spherical harmonic transforms, at high degrees, and increasingly requires efficient computation of gradients for machine learning or other differentiable programming tasks. We develop novel algorithmic structures for accelerated and differentiable computation of generalised Fourier transforms on the sphere $\mathbb{S}^2$ and rotation group $\text{SO}(3)$, i.e. spherical harmonic and Wigner transforms, respectively. We present a recursive algorithm for the calculation of Wigner $d$-functions that is both stable to high harmonic degrees and extremely parallelisable. By tightly coupling this with separable spherical transforms, we obtain algorithms that exhibit an extremely parallelisable structure that is well-suited for the high throughput computing of modern hardware accelerators (e.g. GPUs). We also develop a hybrid automatic and manual differentiation approach so that gradients can be computed efficiently. Our algorithms are implemented within the JAX differentiable programming framework in the S2FFT software code. Numerous samplings of the sphere are supported, including equiangular and HEALPix sampling. Computational errors are at the order of machine precision for spherical samplings that admit a sampling theorem. When benchmarked against alternative C codes we observe up to a 400-fold acceleration. Furthermore, when distributing over multiple GPUs we achieve very close to optimal linear scaling with increasing number of GPUs due to the highly parallelised and balanced nature of our algorithms. Provided access to sufficiently many GPUs our transforms thus exhibit an unprecedented effective linear time complexity.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2311.14670")
get_code_for_paper("2311.14670")
have("2311.14670")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2311.14670.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2311.14670.svg)](https://syntology.ai/paper/2311.14670)

Connect an agent — have() is free.