SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.16848 · 2023

Accurate Computation of Quantum Excited States with Neural Networks

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; 0 honoured the contract we drafted, 1 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/2308.16848.json · badge: /api/ran/2308.16848.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
deepmind/ferminet canonical (classifier label)
classifier basis: census
10 ran · 3 no recorded run
FunctionStatusWhere it lives
array_partitions Ran
ran, violated the contract we drafted
deepmind/ferminet/ferminet/network_blocks.py
code served (permissive licence) · get_code("97c3665c930b6f96")
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 itertools
from typing import Sequence

torch_imported = False
try:
    import torch
    torch_imported = True
except ImportError:
    pass

# Construct arguments for array_partitions
# The function takes sizes: Sequence[int] and returns split indices
# sizes: a sequence of integers representing partition sizes

ARGS = {
    "sizes": [5, 3, 2, 4]
}
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
construct_input_features Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
deepmind/ferminet/ferminet/networks.py
code served (permissive licence) · get_code("52bd9f9d96843732")
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 jax.numpy as jnp
import numpy as np

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

# Create small test data
# pos: electron positions, shape (nelectrons*ndim,)
# We'll have 2 electrons in 3D space, so shape is (6,)
nelectrons = 2
ndim = 3
pos = jnp.array([0.1, 0.2, 0.3, 0.4, 0.5, 0.6], dtype=jnp.float32)

# atoms: atom positions, shape (natoms, ndim)
# We'll have 3 atoms in 3D space
natoms = 3
atoms = jnp.array([
    [1.0, 1.1, 1.2],
    [2.0, 2.1, 2.2],
    [3.0, 3.1, 3.2]
], dtype=jnp.float32)

ARGS = {
    "pos": pos,
    "atoms": atoms,
    "ndim": ndim
}
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 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
find_last_checkpoint Ran
ran; our contract draft was wrong, not the code
deepmind/ferminet/ferminet/checkpoint.py
code served (permissive licence) · get_code("b88b850a648708b5")
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 numpy as np
from pathlib import Path

# Create a temporary directory with mock checkpoint files
temp_dir = tempfile.mkdtemp()

# Create some valid checkpoint files with numpy arrays
valid_ckpt_1 = os.path.join(temp_dir, 'qmcjax_ckpt_001.npy')
np.save(valid_ckpt_1, np.array([1.0, 2.0, 3.0]))

valid_ckpt_2 = os.path.join(temp_dir, 'qmcjax_ckpt_002.npy')
np.save(valid_ckpt_2, np.array([[1, 2], [3, 4]]))

# Create an invalid checkpoint file (corrupted)
invalid_ckpt = os.path.join(temp_dir, 'qmcjax_ckpt_000.npy')
with open(invalid_ckpt, 'wb') as f:
    f.write(b'corrupted data')

ARGS = {
    'ckpt_path': temp_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
absl, numpy — 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_restore_path Ran
ran; our contract draft was wrong, not the code
deepmind/ferminet/ferminet/checkpoint.py
code served (permissive licence) · get_code("794cfef9d5b56073")
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 os

torch.manual_seed(0)

ARGS = {
    "restore_path": "/path/to/checkpoints"
}
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 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
init_linear_layer Ran
ran; our contract draft was wrong, not the code
deepmind/ferminet/ferminet/network_blocks.py
code served (permissive licence) · get_code("a631411fa0cffd73")
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 jax
import jax.numpy as jnp
import chex

# Create a PRNG key for JAX
key = jax.random.PRNGKey(0)

# Define arguments for init_linear_layer
ARGS = {
    'key': key,
    'in_dim': 4,
    'out_dim': 3,
    'include_bias': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
chex, jax — 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
make_bottleneck_envelope Ran
ran; our contract draft was wrong, not the code
deepmind/ferminet/ferminet/envelopes.py
code served (permissive licence) · get_code("8454b4d50c376fc0")
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 Envelope. 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 jax.numpy as jnp

ARGS = {
    "nenv": 16,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
attr, jax, typing_extensions — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Envelope — a Envelope output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Envelope 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_ferminet_features Ran
ran; our contract draft was wrong, not the code
deepmind/ferminet/ferminet/networks.py
code served (permissive licence) · get_code("b72dbed37bb2913d")
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 FeatureLayer. 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 jax.numpy as jnp

ARGS = {
    'natoms': 3,
    'nspins': None,
    'ndim': 3,
    'rescale_inputs': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
attr, jax, typing_extensions — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type FeatureLayer — a FeatureLayer output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a FeatureLayer 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
mh_accept Ran
ran; our contract draft was wrong, not the code
deepmind/ferminet/ferminet/mcmc.py
code served (permissive licence) · get_code("5b82752069f75eae")
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 jax
import jax.numpy as jnp

# Set seed for reproducibility
jax.config.update('jax_default_prng_impl', 'threefry2x32')

# Initialize PRNGKey
key = jax.random.PRNGKey(0)

# Create small sample tensors
batch_size = 2
state_dim = 4

# x1: current state, shape (batch_size, state_dim)
x1 = jnp.array([
    [0.1, 0.2, 0.3, 0.4],
    [0.5, 0.6, 0.7, 0.8]
], dtype=jnp.float32)

# x2: proposed state, shape (batch_size, state_dim)
x2 = jnp.array([
    [0.15, 0.25, 0.35, 0.45],
    [0.55, 0.65, 0.75, 0.85]
], dtype=jnp.float32)

# lp_1: log probability of current state, shape (batch_size,)
lp_1 = jnp.array([-1.5, -2.3], dtype=jnp.float32)

# lp_2: log probability of proposed state, shape (batch_size,)
lp_2 = jnp.array([-1.2, -2.1], dtype=jnp.float32)

# ratio: log acceptance ratio, shape (batch_size,)
ratio = lp_2 - lp_1

# key: JAX random key
key = jax.random.PRNGKey(42)

# num_accepts: counter for accepted proposals
num_accepts = jnp.array(0, dtype=jnp.int32)

ARGS = {
    'x1': x1,
    'x2': x2,
    'lp_1': lp_1,
    'lp_2': lp_2,
    'ratio': ratio,
    'key': key,
    'num_accepts': num_accepts
}
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 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
potential_electron_electron Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
deepmind/ferminet/ferminet/hamiltonian.py
code served (permissive licence) · get_code("f1a436b81fa47a8e")
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 0, dtype family float, shape () 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

# Create a small electron-electron distance matrix
# Shape: (nelectrons, nelectrons, :) where nelectrons=3
# r_ee[i,j,0] contains the distance between electrons i and j
nelectrons = 3
r_ee = np.array([
    [[0.0, 1.5, 2.1],
     [1.5, 0.0, 1.8],
     [2.1, 1.8, 0.0]],
])

# Remove the batch dimension to match expected shape (nelectrons, nelectrons, :)
r_ee = r_ee[0]

# Convert to jax array and ensure proper shape
r_ee = jnp.array(r_ee)
r_ee = jnp.expand_dims(r_ee, axis=-1)  # Shape: (3, 3, 1)

ARGS = {
    "r_ee": r_ee
}
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 0, dtype family float, shape () — shape () 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
split_into_blocks Ran
ran; our contract draft was wrong, not the code
deepmind/ferminet/ferminet/network_blocks.py
code served (permissive licence) · get_code("a31c2e25a4352628")
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 jax.numpy as jnp

# Create a simple block array to split
# Let's make a 6x6 array that will be split into blocks
# with block_dims = (2, 4) meaning first block is 2x2, second is 2x4, etc.
block_arr = jnp.arange(36).reshape(6, 6)

# Define block dimensions for splitting
# This will create blocks: (2,2), (2,4), (4,2), (4,4)
block_dims = (2, 4)

ARGS = {
    "block_arr": block_arr,
    "block_dims": block_dims,
}
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 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
create_save_path Not yet run
unverified (harvested, no recorded run)
deepmind/ferminet/ferminet/checkpoint.py
code served (permissive licence) · get_code("26aea2ca7ae3dead")
How it ran

no invocation recorded.

get_jastrow Not yet run
unverified (harvested, no recorded run)
deepmind/ferminet/ferminet/jastrows.py
code served (permissive licence) · get_code("d0b16a70f62c68ec")
How it ran

no invocation recorded.

resolve Not yet run
unverified (harvested, no recorded run)
deepmind/ferminet/ferminet/base_config.py
code served (permissive licence) · get_code("060f33a70a7aec99")
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, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 11 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
find_last_checkpoint 1 other paper
1 dated earlier
2203.15472 (2022-03)
Ab initio calculation of real solids via neural network ansatz
get_restore_path 1 other paper
1 dated earlier
2203.15472 (2022-03)
Ab initio calculation of real solids via neural network ansatz

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 a variational Monte Carlo algorithm for estimating the lowest excited states of a quantum system which is a natural generalization of the estimation of ground states. The method has no free parameters and requires no explicit orthogonalization of the different states, instead transforming the problem of finding excited states of a given system into that of finding the ground state of an expanded system. Expected values of arbitrary observables can be calculated, including off-diagonal expectations between different states such as the transition dipole moment. Although the method is entirely general, it works particularly well in conjunction with recent work on using neural networks as variational Ansätze for many-electron systems, and we show that by combining this method with the FermiNet and Psiformer Ansätze we can accurately recover vertical excitation energies and oscillator strengths on a range of molecules. Our method is the first deep learning approach to achieve accurate vertical excitation energies, including challenging double excitations, on benzene-scale molecules. Beyond the chemistry examples here, we expect this technique will be of great interest for applications to atomic, nuclear and condensed matter physics.

For agents

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

get_harvested_code_for_paper("2308.16848")
get_code_for_paper("2308.16848")
have("2308.16848")

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

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

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

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

Connect an agent — have() is free.