SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2503.08305 · NeurIPS · 2025

ELECTRA: A Cartesian Network for 3D Charge Density Prediction with Floating Orbitals

Arghya Bhowmik, Alán Aspuru-Guzik, Jonas Elsborg, Luca Thiede, Tejs Vegge

arXiv · PDF · Open in the Atlas

Code that ran

8 of 9 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 7 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-23; 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/2503.08305.json · badge: /api/ran/2503.08305.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
Jotels/ELECTRA_2025 canonical (classifier label)
classifier basis not recorded on the link
8 ran · 1 no recorded run
FunctionStatusWhere it lives
add_scaling Ran
ran on a synthesized input
Jotels/ELECTRA_2025/models/electra_hotpp/utils.py
code served (permissive licence) · get_code("831592d0c13c678c")
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 dict. The image it ran in was not recorded. If your copy returns the same type 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 torch

torch.manual_seed(0)

# Construct batch_data dict with all required keys
batch_data = {
    'batch': torch.tensor([0, 1]),  # batch indices for 2 samples
    'idx_i': torch.tensor([0, 1]),  # indices for offset selection
    'coordinate': torch.randn(2, 4),  # 2 samples, 4 dimensions
    'scaling': torch.randn(2, 4, 4),  # 2 batch groups, 4x4 scaling matrices
}

# Add optional 'offset' key
batch_data['offset'] = torch.randn(2, 4)  # 2 samples, 4 dimensions

ARGS = {
    'batch_data': batch_data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
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
collate_fn Ran
ran, honoured the contract we drafted
Jotels/ELECTRA_2025/models/electra_hotpp/ELECTRA.py
code served (permissive licence) · get_code("f55c31d782e48ffb")
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) and returned list. The image it ran in was not recorded. If your copy returns the same type 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 torch
import torch.nn as nn

torch.manual_seed(0)

# The collate_fn function takes a batch parameter and returns it as-is
# A batch is typically a list of samples from a dataset
# Each sample can be a tuple of (input, target) or just a single item

# Create a simple batch with a few samples
sample1 = (torch.randn(4, 3), torch.tensor(0))
sample2 = (torch.randn(4, 3), torch.tensor(1))

batch = [sample1, sample2]

ARGS = {
    "batch": batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list — a list output has no array shape of its own; none is stated
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_pairwise_distances Ran
ran on a synthesized input
Jotels/ELECTRA_2025/models/electra_hotpp/model/miao.py
code served (permissive licence) · get_code("7709a70ba89c3325")
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 tuple. The image it ran in was not recorded. If your copy returns the same type 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 torch

torch.manual_seed(0)

# positions: shape (N, 3) - atomic positions
positions = torch.randn(4, 3)

# cell: 3x3 cell matrix
cell = torch.tensor([
    [5.0, 0.0, 0.0],
    [0.0, 6.0, 0.0],
    [0.0, 0.0, 7.0]
], dtype=torch.float32)

# pbc: 3-element vector indicating periodic boundary conditions
pbc = torch.tensor([True, True, True])

ARGS = {
    "positions": positions,
    "cell": cell,
    "pbc": pbc,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
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
expand_to Ran
ran on a synthesized input
Jotels/ELECTRA_2025/models/electra_hotpp/utils.py
code served (permissive licence) · get_code("1f5212ae50a8dffb")
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 Tensor, ndim 4, dtype family float, shape (2, 4, 1, 1) 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 torch

torch.manual_seed(0)

# Create a small tensor to expand
t = torch.randn(2, 4)

# Target dimension (expand from 2D to 4D)
n_dim = 4

# Dimension at which to insert new axes (default -1 means append at end)
dim = -1

ARGS = {
    "t": t,
    "n_dim": n_dim,
    "dim": dim,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 4, 1, 1) — shape (2, 4, 1, 1) 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
minimum_image Ran
ran on a synthesized input
Jotels/ELECTRA_2025/models/electra_hotpp/ELECTRA.py
code served (permissive licence) · get_code("e97b464287f8ebf2")
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 Tensor, ndim 2, dtype family float, shape (2, 3) 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 torch

torch.manual_seed(0)

# Create displacement vectors: shape (N, 3) where N=2
displacements = torch.randn(2, 3, dtype=torch.float32)

# Create a 3x3 cell matrix (lattice vectors as rows)
# Make it invertible by starting with a random matrix and ensuring it's full rank
cell = torch.randn(3, 3, dtype=torch.float32)
# Ensure the cell matrix is invertible by using QR decomposition
cell, _ = torch.linalg.qr(cell)

ARGS = {
    "displacements": displacements,
    "cell": cell,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
minimum_image_vector Ran
ran on a synthesized input
Jotels/ELECTRA_2025/models/electra_hotpp/model/miao.py
code served (permissive licence) · get_code("bfc3b1d4bf7ca344")
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 Tensor, ndim 2, dtype family float, shape (2, 3) 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 torch

torch.manual_seed(0)

# displacement: shape (..., 3) - represents displacement vector(s)
# Let's create a displacement tensor with shape (2, 3) - batch of 2 displacement vectors
displacement = torch.randn(2, 3)

# cell: 3x3 cell matrix representing the simulation box
# Must be invertible, so we'll create a well-conditioned matrix
cell = torch.tensor([
    [5.0, 0.5, 0.0],
    [0.0, 6.0, 0.3],
    [0.0, 0.0, 7.0]
], dtype=torch.float32)

ARGS = {
    "displacement": displacement,
    "cell": cell,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
multi_outer_product Ran
ran on a synthesized input
Jotels/ELECTRA_2025/models/electra_hotpp/utils.py
code served (permissive licence) · get_code("4808d09815f66d0d")
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 Tensor, ndim 4, dtype family float, shape (2, 4, 4, 4) 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 torch

torch.manual_seed(0)

# Test case 1: simple vector
v1 = torch.randn(4)
n1 = 2

# Test case 2: batch of vectors
v2 = torch.randn(2, 4)
n2 = 3

# Test case 3: edge case with n=0
v3 = torch.randn(3, 5)
n3 = 0

# Use the first test case for ARGS
ARGS = {
    "v": v2,
    "n": n2,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (2, 4, 4, 4) — shape (2, 4, 4, 4) 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
wrap_to_cell Ran
ran on a synthesized input
Jotels/ELECTRA_2025/models/electra_hotpp/ELECTRA.py
code served (permissive licence) · get_code("498f2364b7c8ec0e")
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 Tensor, ndim 2, dtype family float, shape (2, 3) 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 torch

torch.manual_seed(0)

# Create positions: N=2 atoms, 3 spatial dimensions
positions = torch.randn(2, 3, dtype=torch.float32)

# Create cell: 3x3 matrix with lattice vectors as rows
cell = torch.tensor([
    [5.0, 0.0, 0.0],
    [0.0, 5.0, 0.0],
    [0.0, 0.0, 5.0]
], dtype=torch.float32)

ARGS = {
    "positions": positions,
    "cell": cell
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) 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
compile_with_dynamic_shapes Not yet run
unverified (harvested, no recorded run)
Jotels/ELECTRA_2025/models/electra_hotpp/layer/equivalent.py
code served (permissive licence) · get_code("4411e6f9461a97db")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 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, 1 later) and 8 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
collate_fn 6 other papers
4 dated earlier, 2 later
2107.00860 (2021-07)
Rapid Neural Architecture Search by Learning to Generate Graphs from Datasets
2304.03284 (2023-04)
SegGPT: Segmenting Everything In Context
2304.12306 (2023-04)
Segment Anything in Medical Images
and 3 more not named here

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

We present the Electronic Tensor Reconstruction Algorithm (ELECTRA) -an equivariant model for predicting electronic charge densities using floating orbitals. Floating orbitals are a long-standing concept in the quantum chemistry community that promises more compact and accurate representations by placing orbitals freely in space, as opposed to centering all orbitals at the position of atoms. Finding the ideal placement of these orbitals requires extensive domain knowledge, though, which thus far has prevented widespread adoption. We solve this in a data-driven manner by training a Cartesian tensor network to predict the orbital positions along with orbital coefficients. This is made possible through a symmetry-breaking mechanism that is used to learn position displacements with lower symmetry than the input molecule while preserving the rotation equivariance of the charge density itself. Inspired by recent successes of Gaussian Splatting in representing densities in space, we are using Gaussian orbitals and predicting their weights and covariance matrices. Our method achieves a state-of-the-art balance between computational efficiency and predictive accuracy on established benchmarks. Furthermore, ELECTRA is able to lower the compute time required to arrive at converged DFT solutions -initializing calculations using our predicted densities yields an average 50.72 % reduction in self-consistent field (SCF) iterations on unseen molecules.

For agents

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

get_harvested_code_for_paper("2503.08305")
get_code_for_paper("2503.08305")
have("2503.08305")

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

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

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

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

Connect an agent — have() is free.