SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1008.3477 · 2010

The density-matrix renormalization group in the age of matrix product states

arXiv · PDF · Open in the Atlas

Code that ran

18 of 22 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 17 have no contract verdict; 0 failures of our instrument; 4 no recorded run), measured 2026-11-22; 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/1008.3477.json · badge: /api/ran/1008.3477.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
jhauschild/lecture_comp_methods community (classifier label)
classifier basis not recorded on the link
15 ran · 3 no recorded run
cmendl/pytenet community (classifier label)
classifier basis not recorded on the link
3 ran · 1 no recorded run
FunctionStatusWhere it lives
common_qnumbers Ran
ran on a synthesized input
cmendl/pytenet/src/pytenet/block_sparse_util.py
code served (permissive licence) · get_code("2988f736c825b1af")
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
import numpy as np

torch.manual_seed(0)

# qnums0 and qnums1 should be lists of integers (quantum numbers)
qnums0 = [1, 2, 3, 2, 4, 1]
qnums1 = [2, 3, 5, 3, 2]

ARGS = {
    "qnums0": qnums0,
    "qnums1": qnums1,
}
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 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
energy Ran
ran on a synthesized input
jhauschild/lecture_comp_methods/1_monte_carlo/generate_data.py
code served (permissive licence) · get_code("72a436c67cae9821")
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 float, 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 numpy as np

# Construct valid arguments for the energy function
# The function expects:
# - spins: array-like of spin values (indexable)
# - bonds: 2D array where each row contains [i, j] indices into spins

# Create a small spin configuration (e.g., 4 spins)
spins = np.array([1.0, -1.0, 1.0, -1.0], dtype=np.float64)

# Create bond pairs connecting different spins
# Each row is [spin_index_1, spin_index_2]
bonds = np.array([
    [0, 1],
    [1, 2],
    [2, 3],
], dtype=np.int64)

ARGS = {
    'spins': spins,
    'bonds': bonds,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, 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
energy Ran
ran on a synthesized input
jhauschild/lecture_comp_methods/1_monte_carlo/metropolis.py
code served (permissive licence) · get_code("983f98c3a962d195")
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 float, 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 numpy as np

# Create a small 2D spin system (4x4 grid)
# The function uses modulo arithmetic for periodic boundary conditions
L = 4
system = np.random.choice([-1, 1], size=(L, L)).astype(np.float64)

# Pick valid indices within the system
i = 1
j = 2

ARGS = {
    "system": system,
    "i": i,
    "j": j,
    "L": L
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, 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
exp_value_inf_mps Ran
ran on a synthesized input
jhauschild/lecture_comp_methods/3_tensor_networks/e_tps.py
code served (permissive licence) · get_code("ed528537d3c90172")
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 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

class SimpleMPS:
    """Minimal MPS class with Bs attribute containing tensor list."""
    def __init__(self, bs_list):
        self.Bs = bs_list

# Create small tensors for MPS
# MPS tensors typically have shape (left_bond, phys, right_bond)
# We'll create 2 tensors in each MPS

# Top MPS tensors
mps_top_b0 = np.random.randn(2, 3, 4)  # (left_bond=2, phys=3, right_bond=4)
mps_top_b1 = np.random.randn(4, 3, 2)  # (left_bond=4, phys=3, right_bond=2)
mps_top = SimpleMPS([mps_top_b0, mps_top_b1])

# Bottom MPS tensors
mps_bottom_b0 = np.random.randn(2, 3, 4)
mps_bottom_b1 = np.random.randn(4, 3, 2)
mps_bottom = SimpleMPS([mps_bottom_b0, mps_bottom_b1])

# Z0 operator: acts on physical indices, shape (phys_top, phys_bottom, phys_top, phys_bottom)
# Looking at usage: tensordot(C_t, Z0, axes=([1, 2], [2, 3]))
# This means Z0 has shape (..., ..., phys_t, phys_b) where phys_t=3, phys_b=3
# So Z0 should be (something, something, 3, 3)
# Standard local operator on two physical indices
Z0 = np.random.randn(3, 3, 3, 3)  # (phys_t, phys_b, phys_t, phys_b)

# Zobs: list of observable operators, same shape as Z0
Zobs = [
    np.random.randn(3, 3, 3, 3),
    np.random.randn(3, 3, 3, 3),
]

# N_boundary: number of boundary applications (integer)
N_boundary = 2

ARGS = {
    "mps_top": mps_top,
    "mps_bottom": mps_bottom,
    "Z0": Z0,
    "Zobs": Zobs,
    "N_boundary": N_boundary,
}
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 list, ndim 1, dtype family float — 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
finite_gs_energy Ran
ran on a synthesized input
jhauschild/lecture_comp_methods/3_tensor_networks/tfi_exact.py
code served (permissive licence) · get_code("267bbea0f0da5d20")
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

# The function finite_gs_energy takes three parameters:
# L: number of sites (integer)
# J: coupling constant (float)
# g: magnetic field strength (float)

ARGS = {
    'L': 6,
    'J': 1.0,
    'g': 0.5,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
gen_sx_list Ran
ran on a synthesized input
jhauschild/lecture_comp_methods/3_tensor_networks/lanczos.py
code served (permissive licence) · get_code("f93e353876243688")
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 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 scipy import sparse

Id = sparse.csr_matrix(np.eye(2))

Sx = sparse.csr_matrix([[0.0, 1.0], [1.0, 0.0]])

def singesite_to_full(op, i, L):
    op_list = [Id] * L
    op_list[i] = op
    full = op_list[0]
    for op_i in op_list[1:]:
        full = sparse.kron(full, op_i, format='csr')
    return full

def gen_sx_list(L):
    return [singesite_to_full(Sx, i, L) for i in range(L)]

ARGS = {
    "L": 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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 float — 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
gen_sz_list Ran
ran on a synthesized input
jhauschild/lecture_comp_methods/3_tensor_networks/lanczos.py
code served (permissive licence) · get_code("ff95cf6f631b0849")
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 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 scipy import sparse

Id = sparse.csr_matrix(np.eye(2))

Sz = sparse.csr_matrix([[1.0, 0.0], [0.0, -1.0]])

def singesite_to_full(op, i, L):
    op_list = [Id] * L
    op_list[i] = op
    full = op_list[0]
    for op_i in op_list[1:]:
        full = sparse.kron(full, op_i, format='csr')
    return full

def gen_sz_list(L):
    return [singesite_to_full(Sz, i, L) for i in range(L)]

ARGS = {
    'L': 3
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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 float — 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
get_weights Ran
ran on a synthesized input
jhauschild/lecture_comp_methods/1_monte_carlo/generate_data.py
code served (permissive licence) · get_code("9bb2315184323d49")
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 (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 numpy as np

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

# Create sample data
# spins: array of spin values (0 or 1), need at least 2 spins for bonds to reference
spins = np.array([0, 1, 0, 1], dtype=np.int64)

# bonds: array of shape (num_bonds, 2) where each row contains indices of two spins
# Using 4 bonds connecting different pairs of spins
bonds = np.array([[0, 1], [1, 2], [2, 3], [0, 3]], dtype=np.int64)

# T: temperature parameter (positive float)
T = 1.0

ARGS = {
    "spins": spins,
    "bonds": bonds,
    "T": T
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, 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 (4,) — shape (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
infinite_gs_energy Ran
ran on a synthesized input
jhauschild/lecture_comp_methods/3_tensor_networks/tfi_exact.py
code served (permissive licence) · get_code("2372343675f0e9ff")
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 float, 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 numpy as np
import scipy.integrate

ARGS = {
    "J": 1.0,
    "g": 0.5,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, 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
init_system Ran
ran on a synthesized input
jhauschild/lecture_comp_methods/1_monte_carlo/generate_data.py
code served (permissive licence) · get_code("490f8feaa1faa72f")
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

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

# The function takes two parameters: Lx and Ly
# These represent the dimensions of a 2D lattice system
# They should be positive integers

Lx = 4  # Lattice dimension in x direction
Ly = 3  # Lattice dimension in y direction

ARGS = {
    "Lx": Lx,
    "Ly": Ly,
}
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
measure_energy Ran
ran on a synthesized input
jhauschild/lecture_comp_methods/1_monte_carlo/metropolis.py
code served (permissive licence) · get_code("884fb84ca2631a35")
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 float, 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 numpy as np
from numba import jit

@jit(nopython=True)
def energy(system, i, j, L):
    """Energy function of spins connected to site (i, j)."""
    return -1.0 * system[i, j] * (system[np.mod(i - 1, L), j] + system[np.mod(i + 1, L), j] + system[i, np.mod(j - 1, L)] + system[i, np.mod(j + 1, L)])

@jit(nopython=True)
def measure_energy(system):
    L = system.shape[0]
    E = 0
    for i in range(L):
        for j in range(L):
            E += energy(system, i, j, L) / 2.0
    return E

# Create a small 4x4 spin system with random values (-1 or +1)
# This represents a 2D Ising model spin configuration
system = np.array([
    [1.0, -1.0, 1.0, -1.0],
    [-1.0, 1.0, -1.0, 1.0],
    [1.0, -1.0, 1.0, -1.0],
    [-1.0, 1.0, -1.0, 1.0]
], dtype=np.float64)

ARGS = {
    "system": system
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numba, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, 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
qnumber_flatten Ran
ran on a synthesized input
cmendl/pytenet/src/pytenet/block_sparse_util.py
code served (permissive licence) · get_code("2377e00fb95d6edc")
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.

# Analyze the function signature
# qnumber_flatten(qnums) -> list[int]
# It takes qnums which is used in qnumber_outer_sum(qnums)
# Looking at qnumber_outer_sum, it expects qnums to be a list of lists of integers
# The example shows: [[0, 2, -1], [0, 1]]

# Build the arguments
ARGS = {
    "qnums": [[0, 2, -1], [0, 1]]
}
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 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
qnumber_outer_sum Ran
ran on a synthesized input
cmendl/pytenet/src/pytenet/block_sparse_util.py
code served (permissive licence) · get_code("89f28a2acc6085f4")
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 2, 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.

# Setup code for qnumber_outer_sum

# Analyze the function:
# - qnums: a list of lists of quantum numbers (integers)
# - shift: an integer with default value 0
# - The function recursively computes outer sums of quantum numbers

# Create test arguments
qnums_test = [[0, 2, -1], [0, 1]]

ARGS = {
    "qnums": qnums_test,
    "shift": 0
}
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 list, ndim 2, 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
scale_axis Ran
ran on a synthesized input
jhauschild/lecture_comp_methods/3_tensor_networks/e_tps.py
code served (permissive licence) · get_code("3ade6a63dc35cb69")
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, 3, 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 numpy as np

# Create a small 3D tensor for G
G = np.random.randn(2, 3, 4)

# Create a small 1D array for S that matches the size of the axis we'll apply it to
# Using axis=1, so S should have size 3
S = np.array([0.5, 1.0, 2.0])

# axis parameter
axis = 1

ARGS = {
    "G": G,
    "S": S,
    "axis": axis
}
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, 3, 4) — shape (2, 3, 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
sigmoid Ran
ran, violated the contract we drafted
jhauschild/lecture_comp_methods/4_machine_learning/network.py
code served (permissive licence) · get_code("2b0862d31e928c45")
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 (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 numpy as np

# The sigmoid function takes a single parameter 'z' which should be a numeric value
# or array-like that can be passed to np.exp()

# Create a small numpy array as input
z_input = np.array([0.0, 1.0, -1.0, 2.0])

ARGS = {
    "z": z_input
}
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 (4,) — shape (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
sigmoid_prime Ran
ran on a synthesized input
jhauschild/lecture_comp_methods/4_machine_learning/network.py
code served (permissive licence) · get_code("a305092edad0a690")
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 (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 numpy as np

def sigmoid(z):
    """The sigmoid function."""
    return 1.0 / (1.0 + np.exp(-z))

def sigmoid_prime(z):
    """Derivative of the sigmoid function."""
    return sigmoid(z) * (1 - sigmoid(z))

# Create test data
z = np.array([0.0, 1.0, -1.0, 2.0])

ARGS = {
    "z": z
}
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 (4,) — shape (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
singesite_to_full Ran
ran on a synthesized input
jhauschild/lecture_comp_methods/3_tensor_networks/lanczos.py
code served (permissive licence) · get_code("e2b86a76012b04ca")
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 csr_matrix. 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
from scipy import sparse

# Set up the identity matrix that will be used in the function
Id = sparse.csr_matrix(np.eye(2))

# Create a small single-site operator (2x2 sparse matrix)
# This will be placed at position i in the chain
op = sparse.csr_matrix(np.array([[1, 0], [0, -1]]))

# Define the chain length
L = 3

# The function uses:
# - op: a sparse matrix (CSR format)
# - i: an integer index (must be < L)
# - L: the length of the chain (integer)

ARGS = {
    "op": op,
    "i": 1,
    "L": L
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type csr_matrix — a csr_matrix output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a csr_matrix 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
split_truncate_theta Ran
ran on a synthesized input
jhauschild/lecture_comp_methods/3_tensor_networks/a_mps.py
code served (permissive licence) · get_code("c3cfeb403acda5da")
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

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

# Create a small theta tensor with shape [chivL, dL, dR, chivR]
# Using distinct dimensions: 2, 3, 4, 5 for easy identification
chivL = 2
dL = 3
dR = 4
chivR = 5

# Create a random theta array with appropriate shape
theta = np.random.randn(chivL, dL, dR, chivR)

# Define chi_max and eps parameters
chi_max = 4
eps = 0.01

ARGS = {
    "theta": theta,
    "chi_max": chi_max,
    "eps": eps,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — 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
calc_U_bonds Not yet run
unverified (harvested, no recorded run)
jhauschild/lecture_comp_methods/3_tensor_networks/c_tebd.py
code served (permissive licence) · get_code("93949e16678f30ec")
How it ran

no invocation recorded.

init_spinup_MPS Not yet run
unverified (harvested, no recorded run)
jhauschild/lecture_comp_methods/3_tensor_networks/a_mps.py
code served (permissive licence) · get_code("94bd7d5169eec6e5")
How it ran

no invocation recorded.

minimum_vertex_cover Not yet run
unverified (harvested, no recorded run)
cmendl/pytenet/src/pytenet/bipartite_graph.py
code served (permissive licence) · get_code("f8714f8a20194c56")
How it ran

no invocation recorded.

prepare_system Not yet run
unverified (harvested, no recorded run)
jhauschild/lecture_comp_methods/1_monte_carlo/metropolis.py
code served (permissive licence) · get_code("28a9cdfb410c914c")
How it ran

no invocation recorded.

Also present in other papers' code

Of 22 samples lifted from this paper's linked repositories, 22 carry a function identity and 0 do not. Of the 22 distinct functions with an identity, 1 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 1 later) and 21 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
sigmoid 1 other paper
1 later
2011.00379 (2020-11)
Fair Classification with Group-Dependent Label Noise

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-22.

Repositories linked to this paper

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

Abstract

The density-matrix renormalization group method (DMRG) has established itself over the last decade as the leading method for the simulation of the statics and dynamics of one-dimensional strongly correlated quantum lattice systems. In the further development of the method, the realization that DMRG operates on a highly interesting class of quantum states, so-called matrix product states (MPS), has allowed a much deeper understanding of the inner structure of the DMRG method, its further potential and its limitations. In this paper, I want to give a detailed exposition of current DMRG thinking in the MPS language in order to make the advisable implementation of the family of DMRG algorithms in exclusively MPS terms transparent. I then move on to discuss some directions of potentially fruitful further algorithmic development: while DMRG is a very mature method by now, I still see potential for further improvements, as exemplified by a number of recently introduced algorithms.

For agents

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

get_harvested_code_for_paper("1008.3477")
get_code_for_paper("1008.3477")
have("1008.3477")

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

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

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

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

Connect an agent — have() is free.