SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2502.01171 · 2025

Efficient and Scalable Density Functional Theory Hamiltonian Prediction through Adaptive Sparsity

arXiv · PDF · Open in the Atlas

Code that ran

15 of 20 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; 0 honoured the contract we drafted, 2 violated it and 12 have no contract verdict; 1 failure of our instrument; 5 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/2502.01171.json · badge: /api/ran/2502.01171.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
microsoft/sphnet canonical (classifier label)
classifier basis: plan_row
15 ran · 5 no recorded run
FunctionStatusWhere it lives
ShiftedSoftPlus Ran
ran; our contract draft was wrong, not the code
microsoft/sphnet/src/models/SPHNet.py
pointer only (licence: MIT); the stored copy get_code serves, from divelab/AIRS, is pointer only (licence: GPL-3.0) · get_code("5769828f592d2d69")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from divelab/AIRS, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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.

build_final_matrix Ran
ran on a synthesized input
microsoft/sphnet/src/training/module.py
code served (permissive licence) · get_code("d97f8248b100adc8")
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 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)

# Define a stand-in class for batch_data
class BatchData:
    def __init__(self, molecule_size, atomic_numbers, diag_hamiltonian, non_diag_hamiltonian):
        self.molecule_size = molecule_size
        self.atomic_numbers = atomic_numbers
        self.diag_hamiltonian = diag_hamiltonian
        self.non_diag_hamiltonian = non_diag_hamiltonian

# Define a stand-in for basis
class Basis:
    pass

# Define stand-in for get_conv_variable_lin return value
class ConvVariable:
    def __init__(self):
        self.max_block_size = 4

# Define stand-in for block2matrix function
def block2matrix(Z, diag, non_diag, mask_lin, max_block_size, sym=True):
    # Return a dummy tensor representing the rebuilt Fock matrix
    return torch.randn(len(Z) * 4, len(Z) * 4)

# Mock get_conv_variable_lin
def get_conv_variable_lin(basis):
    conv = ConvVariable()
    mask_lin = torch.tensor([1, 1, 1, 1], dtype=torch.float32)
    return conv, None, mask_lin, None

# Patch the function's dependencies in the module namespace
import sys
current_module = sys.modules[__name__]
current_module.get_conv_variable_lin = get_conv_variable_lin
current_module.block2matrix = block2matrix

# Create batch_data with two molecules: one with 2 atoms, one with 3 atoms
molecule_size = torch.tensor([[2], [3]], dtype=torch.long)
# Total atoms: 2 + 3 = 5
atomic_numbers = torch.tensor([6, 8, 7, 6, 8], dtype=torch.long)
# Diagonal: one per atom
diag_hamiltonian = torch.randn(5, 4)
# Non-diag for sym=True: molecule1 has 2*(2-1)//2=1, molecule2 has 3*(3-1)//2=3, total=4
non_diag_hamiltonian = torch.randn(4, 4)

batch_data = BatchData(
    molecule_size=molecule_size,
    atomic_numbers=atomic_numbers,
    diag_hamiltonian=diag_hamiltonian,
    non_diag_hamiltonian=non_diag_hamiltonian
)

basis = Basis()

ARGS = {
    "batch_data": batch_data,
    "basis": basis,
    "sym": True
}
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 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
cord2xyz Ran
ran on a synthesized input
microsoft/sphnet/src/dataset/preprocess_data.py
code served (permissive licence) · get_code("1278e4149e644fa7")
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 str. 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 numpy as np

torch.manual_seed(0)

# atom_types: list of element symbols (strings)
# atom_cords: list of coordinate tuples/lists (3D coordinates)

atom_types = ['C', 'H', 'O', 'N']
atom_cords = [
    [0.0, 0.0, 0.0],
    [1.0, 1.0, 1.0],
    [2.0, 2.0, 2.0],
    [3.0, 3.0, 3.0]
]

ARGS = {
    'atom_types': atom_types,
    'atom_cords': atom_cords
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
get_conv_variable Ran
ran on a synthesized input
microsoft/sphnet/src/dataset/buildblock.py
code served (permissive licence) · get_code("58233f9b096ca17f")
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.

from argparse import Namespace
import numpy as np

ARGS = {
    'basis': 'def2-tzvp'
}
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 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
get_conv_variable Ran
ran on a synthesized input
microsoft/sphnet/src/models/utils.py
code served (permissive licence) · get_code("75119888206474b9")
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, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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
from argparse import Namespace

CONVENTION_DICT = {'def2-tzvp': Namespace(atom_to_orbitals_map={1: 'sssp', 6: 'ssssspppddf', 7: 'ssssspppddf', 8: 'ssssspppddf', 9: 'ssssspppddf', 15: 'ssssspppppddf', 16: 'ssssspppppddf', 17: 'ssssspppppddf'}, str2idx={'s': 0, 'p': 0 + 5 * 1, 'd': 0 + 5 * 1 + 5 * 3, 'f': 0 + 5 * 1 + 5 * 3 + 2 * 5}, max_block_size=37, orbital_idx_map={'s': np.array([0]), 'p': np.array([2, 0, 1]), 'd': np.array([0, 1, 2, 3, 4]), 'f': np.array([0, 1, 2, 3, 4, 5, 6])}), 'def2-svp': Namespace(atom_to_orbitals_map={1: 'ssp', 6: 'sssppd', 7: 'sssppd', 8: 'sssppd', 9: 'sssppd'}, str2idx={'s': 0, 'p': 0 + 3 * 1, 'd': 0 + 3 * 1 + 2 * 3}, max_block_size=14, orbital_idx_map={'s': np.array([0]), 'p': np.array([2, 0, 1]), 'd': np.array([0, 1, 2, 3, 4])})}

ARGS = {
    'basis': 'def2-tzvp'
}
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 tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
get_data_default_config Ran
ran on a synthesized input
microsoft/sphnet/src/dataset/dataset_unified.py
code served (permissive licence) · get_code("f6aa534d5b2492cb")
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 numpy as np

ARGS = {
    'data_name': 'buckyball_catcher'
}
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 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
get_full_energy Ran
ran on a synthesized input
microsoft/sphnet/src/dataset/dataset_unified.py
code served (permissive licence) · get_code("d1b7d44337b3674a")
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 float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 test data
data_name = 'buckyball_catcher'
energy = np.float32(100.5)
atomic_numbers = np.array([6, 6, 8, 8, 6, 1], dtype=np.int32)

# Create ARGS dictionary with all parameters for get_full_energy
ARGS = {
    'data_name': data_name,
    'energy': energy,
    'atomic_numbers': atomic_numbers
}
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 float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
get_full_graph Ran
ran on a synthesized input
microsoft/sphnet/src/models/utils.py
code served (permissive licence) · get_code("ffcbda56a037c52a")
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 int, shape (2, 8) 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)

# Construct batch_data dictionary with required 'molecule_size' key
batch_data = {
    'molecule_size': torch.tensor([3, 2], dtype=torch.long)  # Two molecules: one with 3 atoms, one with 2 atoms
}

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 Tensor, ndim 2, dtype family int, shape (2, 8) — shape (2, 8) 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
get_latest_ckpt Ran
ran on a synthesized input
microsoft/sphnet/src/training/logger.py
code served (permissive licence) · get_code("bcde491072e308f4")
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 str. 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 os
import tempfile
import shutil

# Create a temporary directory for testing
temp_dir = tempfile.mkdtemp()

# Create some dummy checkpoint files with different creation times
# to ensure we can find the latest one
ckpt_file_1 = os.path.join(temp_dir, 'checkpoint_1.ckpt')
ckpt_file_2 = os.path.join(temp_dir, 'checkpoint_2.ckpt')
ckpt_file_3 = os.path.join(temp_dir, 'checkpoint_3.ckpt')

# Create the files
open(ckpt_file_1, 'w').close()
open(ckpt_file_2, 'w').close()
open(ckpt_file_3, 'w').close()

# The function uses glob.glob and os.path.join to find .ckpt files
# It uses os.path.getctime to get the creation time
# It uses max() to find the latest file
# So we need to pass a valid directory path

ARGS = {
    'log_dir': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
make_splits Ran
ran on a synthesized input
microsoft/sphnet/src/training/utils.py
code served (permissive licence) · get_code("052bce73e40dc1cb")
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 numpy as np
import torch
from tempfile import NamedTemporaryFile
import os

torch.manual_seed(0)
np.random.seed(0)

# Create a temporary file for splits if needed
temp_splits_file = NamedTemporaryFile(delete=False, suffix='.npz')
temp_splits_file.close()

# Pre-populate the splits file with valid data
idx_train_data = np.array([0, 1, 2, 3, 4], dtype=np.int32)
idx_val_data = np.array([5, 6], dtype=np.int32)
idx_test_data = np.array([7, 8], dtype=np.int32)
np.savez(temp_splits_file.name, idx_train=idx_train_data, idx_val=idx_val_data, idx_test=idx_test_data)

ARGS = {
    'dataset_len': 100,
    'train_num': 0.6,
    'val_num': 0.2,
    'test_num': 0.2,
    'seed': 42,
    'filename': None,
    'splits': None,
    'order': None,
}

# Cleanup
try:
    os.remove(temp_splits_file.name)
except:
    pass
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pytorch_lightning, 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
prod Ran
ran, violated the contract we drafted
microsoft/sphnet/src/models/SPHNet.py
pointer only (licence: MIT); the stored copy get_code serves, from divelab/AIRS, is pointer only (licence: GPL-3.0) · get_code("b0aeca26969b9a56")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from divelab/AIRS, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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.

remap_values Ran
ran on a synthesized input
microsoft/sphnet/src/dataset/utils.py
code served (permissive licence) · get_code("c9a1fde32b7fb6b5")
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 int, 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)

# Analyze the function:
# - remapping is indexed with [0] and [1], so it's a sequence with 2 elements
# - remapping[0] is passed to torch.bucketize, which expects a 1D tensor of boundaries
# - remapping[1] is indexed by the result of bucketize, so it's a 1D tensor of values
# - x is raveled and passed to bucketize, then reshaped back
# - bucketize returns indices into remapping[1]

# Create remapping boundaries and values
boundaries = torch.tensor([1.0, 3.0, 5.0, 7.0])  # 4 boundaries
values = torch.tensor([10, 20, 30, 40, 50])  # 5 values (n_boundaries + 1)
remapping = (boundaries, values)

# Create input tensor x (2x3 shape for distinctness)
x = torch.tensor([[0.5, 2.0, 4.0], [6.0, 8.0, 1.5]])

ARGS = {
    "remapping": remapping,
    "x": x
}
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 int, 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
shard_discretizations Ran
ran on a synthesized input
microsoft/sphnet/src/dataset/utils.py
code served (permissive licence) · get_code("4df52af7a74eb62b")
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 list, ndim 1, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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

ARGS = {
    "all_indexes": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
    "num_shards": 3,
    "shard_idx": 1,
}
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 list, ndim 1, dtype family int — a list output has no array shape of its own; none is stated
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
softplus_inverse Ran
ran, violated the contract we drafted
microsoft/sphnet/src/models/SPHNet.py
pointer only (licence: MIT); the stored copy get_code serves, from divelab/AIRS, is pointer only (licence: GPL-3.0) · get_code("bc43b93c22207f08")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from divelab/AIRS, and GPL-3.0, as GitHub detects it on that repository, is not in the permissive set Syntology serves inline. 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.

train_val_test_split Ran
ran on a synthesized input
microsoft/sphnet/src/training/utils.py
code served (permissive licence) · get_code("451a8000566c7c43")
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 numpy as np

ARGS = {
    'dset_len': 100,
    'train_size': 0.7,
    'val_size': 0.2,
    'test_size': 0.1,
    'seed': 42,
    'order': None,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pytorch_lightning — 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
block2matrix Not yet run
unverified (harvested, no recorded run)
microsoft/sphnet/src/models/utils.py
code served (permissive licence) · get_code("846dae21f20829cb")
How it ran

no invocation recorded.

mapping_function Not yet run
unverified (harvested, no recorded run)
microsoft/sphnet/src/dataset/utils.py
code served (permissive licence) · get_code("805354f3186fade3")
How it ran

no invocation recorded.

matrix_transform Not yet run
unverified (harvested, no recorded run)
microsoft/sphnet/src/dataset/buildblock.py
code served (permissive licence) · get_code("62e4c54071ae820c")
How it ran

no invocation recorded.

matrix_transform Not yet run
unverified (harvested, no recorded run)
microsoft/sphnet/src/dataset/preprocess_data.py
code served (permissive licence) · get_code("92f44b5803ec7e98")
How it ran

no invocation recorded.

split2blocks Not yet run
unverified (harvested, no recorded run)
microsoft/sphnet/src/dataset/buildblock.py
code served (permissive licence) · get_code("f8af04941ffd219d")
How it ran

no invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 1 later) and 17 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
prod 4 other papers
3 dated earlier, 1 later
2306.04922 (2023-06)
Efficient and Equivariant Graph Networks for Predicting Quantum Hamiltonian
2306.09549 (2023-06)
QH9: A Quantum Hamiltonian Prediction Benchmark for QM9 Molecules
2406.03794 (2024-06)
Infusing Self-Consistency into Density Functional Theory Hamiltonian Prediction via Deep Equilibrium Models
and 1 more not named here
ShiftedSoftPlus 3 other papers
3 dated earlier
2306.04922 (2023-06)
Efficient and Equivariant Graph Networks for Predicting Quantum Hamiltonian
2306.09549 (2023-06)
QH9: A Quantum Hamiltonian Prediction Benchmark for QM9 Molecules
2406.03794 (2024-06)
Infusing Self-Consistency into Density Functional Theory Hamiltonian Prediction via Deep Equilibrium Models
softplus_inverse 3 other papers
3 dated earlier
2306.04922 (2023-06)
Efficient and Equivariant Graph Networks for Predicting Quantum Hamiltonian
2306.09549 (2023-06)
QH9: A Quantum Hamiltonian Prediction Benchmark for QM9 Molecules
2406.03794 (2024-06)
Infusing Self-Consistency into Density Functional Theory Hamiltonian Prediction via Deep Equilibrium Models

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

Hamiltonian matrix prediction is pivotal in computational chemistry, serving as the foundation for determining a wide range of molecular properties. While SE(3) equivariant graph neural networks have achieved remarkable success in this domain, their substantial computational cost--driven by high-order tensor product (TP) operations--restricts their scalability to large molecular systems with extensive basis sets. To address this challenge, we introduce SPHNet, an efficient and scalable equivariant network, that incorporates adaptive SParsity into Hamiltonian prediction. SPHNet employs two innovative sparse gates to selectively constrain non-critical interaction combinations, significantly reducing tensor product computations while maintaining accuracy. To optimize the sparse representation, we develop a Three-phase Sparsity Scheduler, ensuring stable convergence and achieving high performance at sparsity rates of up to 70%. Extensive evaluations on QH9 and PubchemQH datasets demonstrate that SPHNet achieves state-of-the-art accuracy while providing up to a 7x speedup over existing models. Beyond Hamiltonian prediction, the proposed sparsification techniques also hold significant potential for improving the efficiency and scalability of other SE(3) equivariant networks, further broadening their applicability and impact. Our code can be found at https://github.com/microsoft/SPHNet.

For agents

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

get_harvested_code_for_paper("2502.01171")
get_code_for_paper("2502.01171")
have("2502.01171")

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

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

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

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

Connect an agent — have() is free.