SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2112.10789 · 2021

Machine learning discovery of new phases in programmable quantum simulator snapshots

arXiv · PDF · Open in the Atlas

Code that ran

9 of 14 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, 0 violated it and 9 have no contract verdict; 0 failures 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/2112.10789.json · badge: /api/ran/2112.10789.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
KimGroup/QGasML canonical (classifier label)
classifier basis not recorded on the link
9 ran · 5 no recorded run
FunctionStatusWhere it lives
build_data_loader Ran
ran on a synthesized input
KimGroup/QGasML/data_util.py
code served (permissive licence) · get_code("08161000ae924bad")
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 DataLoader. 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)

# Create small tensors for different classes
# Shape: [num_samples, num_channels, width, height]
tensor_class_0 = torch.randn(2, 3, 4, 4)  # 2 samples, 3 channels
tensor_class_1 = torch.randn(3, 3, 4, 4)  # 3 samples, 3 channels
tensor_class_2 = torch.randn(2, 3, 4, 4)  # 2 samples, 3 channels

# Simple transform function that just returns the input
def simple_transform(x):
    return x

ARGS = {
    'tensors': [tensor_class_0, tensor_class_1, tensor_class_2],
    'batch_size': 2,
    'transform': simple_transform,
    'oversample': True,
    'shuffle': False,
    'chop_even': False,
}
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 DataLoader — a DataLoader output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataLoader 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
load_qgm_data Ran
ran on a synthesized input
KimGroup/QGasML/data_util.py
code served (permissive licence) · get_code("5633b61f778f6484")
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 4, 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 pickle
import tempfile
import os
import numpy as np
import torch

torch.manual_seed(0)

# Create a temporary directory for test data
tmpdir = tempfile.mkdtemp()

# Create a mock pickle file with the expected structure
doping_level = 0.1
num_snapshots = 8
snapshot_shape = (4, 5)  # Small spatial dimensions

# Create snapshot data
snapshots = [np.random.randn(5, 4) for _ in range(num_snapshots)]

# Create train/val split indices
train_idxs = np.array([0, 1, 2, 3])
val_idxs = np.array([4, 5, 6, 7])

snap_dict = {
    'snapshots': snapshots,
    'train_idxs': train_idxs,
    'val_idxs': val_idxs
}

# Write the pickle file
pkl_filename = os.path.join(tmpdir, f'data_d{doping_level}.pkl')
with open(pkl_filename, 'wb') as f:
    pickle.dump(snap_dict, f)

# Define arguments
ARGS = {
    'datadir': tmpdir,
    'doping_level': doping_level,
    'crop': None,
    'circle_crop': False
}
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 tuple, ndim 4, 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
load_rydberg_data Ran
ran on a synthesized input
KimGroup/QGasML/data_util.py
code served (permissive licence) · get_code("50ce288c8a217990")
How it ran

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

import torch
import numpy as np
import tempfile
import os

torch.manual_seed(0)

# Create a temporary directory for test data
tmpdir = tempfile.mkdtemp()

# Create mock NPZ files with the expected structure
# We need 'rydberg_populations' and optionally 'rearrangement_mask'
for file_idx in range(2):
    # Create rydberg populations data: shape (height, width, num_snapshots)
    # We'll use (5, 6, 20) to have distinct dimensions
    rydberg_pops = np.random.rand(5, 6, 20).astype(np.float32)
    
    # Create rearrangement mask (boolean, same length as num_snapshots)
    rearrangement_mask = np.random.rand(20) > 0.5
    
    # Save rydberg data
    rydberg_file = os.path.join(tmpdir, f'rydberg_{file_idx}.npz')
    np.savez(rydberg_file, rydberg_populations=rydberg_pops)
    
    # Save mask data
    mask_file = os.path.join(tmpdir, f'rearrangement_mask_{file_idx}.npz')
    np.savez(mask_file, rearrangement_mask=rearrangement_mask)

ARGS = {
    'datadir': tmpdir,
    'postselect': False,
    'crop': None,
    'border_crop': None,
    'fold': 1
}
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 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
parse_config Ran
ran on a synthesized input
KimGroup/QGasML/config_util.py
code served (permissive licence) · get_code("ca9094a1bcee441e")
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 configparser
import os
import tempfile
from io import StringIO

# Create a temporary config file with valid content
config_content = """
[Training]
batch_size = 64
epochs = 10
lr = 0.001
seed = 42
l1_loss = 0.01
gpu = 0

[Model]
model = CCNN
fixed_filts = None
saved_model = None

[Model Kwargs]
in_channels = 1
num_filts = 4
filter_size = 5
order = 2
num_classes = 2
absbeta = False

[Data Files]
base_dir = /tmp/data
datasets = Dataset1
    Dataset2
loader_func = load_data

[Loader Kwargs]
doping_level = 5.0
crop = None
circle_crop = True

[Preprocessing]
augment = True
oversample = False

[Logging]
save_root = /tmp/models
log_root = /tmp/logs
tag = test_run
"""

# Write config to a temporary file
with tempfile.NamedTemporaryFile(mode='w', suffix='.cfg', delete=False) as f:
    f.write(config_content)
    temp_config_file = f.name

ARGS = {
    'filename': temp_config_file
}
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 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
parse_str_list Ran
ran on a synthesized input
KimGroup/QGasML/config_util.py
code served (permissive licence) · get_code("04d504313e204de8")
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 torch
import torch.nn as nn

# Create a simple multi-line string with some empty lines
test_input = """line one
line two

line three
"""

ARGS = {
    "lines": test_input
}
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 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
plot_corr_filters Ran
ran on a synthesized input
KimGroup/QGasML/plot_util.py
code served (permissive licence) · get_code("f44c6adaa1c4424f")
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 Figure. 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
import matplotlib.pyplot as plt

torch.manual_seed(0)

# Create sample filters tensor with shape (num_filters, num_channels, height, width)
# Using 2 filters, 3 channels (RGB), 4x4 spatial dimensions
filters = torch.randn(2, 3, 4, 4).abs()

ARGS = {
    'filters': filters,
    'num_cols': 3,
    'imshow': False,
    'norm': True,
    'title': 'Correlation Filters',
    'show': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Figure — a Figure output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Figure 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
predict Ran
ran on a synthesized input
KimGroup/QGasML/lassopath.py
code served (permissive licence) · get_code("d52245025de86209")
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 (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from sklearn.linear_model import LogisticRegression

# Create a simple logistic classifier that has a predict method
logistic_clf = LogisticRegression()

# Train it on dummy data so it can make predictions
X_train = np.array([[0, 1, 0, 1], [1, 0, 1, 0], [1, 1, 0, 0], [0, 0, 1, 1]])
y_train = np.array([0, 1, 0, 1])
logistic_clf.fit(X_train, y_train)

# Create predictors - dummy feature data for prediction
predictors = np.array([[0.5, 0.5, 0.2, 0.8], [0.1, 0.9, 0.3, 0.7]])

ARGS = {
    "logistic_clf": logistic_clf,
    "predictors": predictors
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — 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 (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
preprocess_data Ran
ran on a synthesized input
KimGroup/QGasML/lassopath_ovr.py
code served (permissive licence) · get_code("727f94645379b981")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import numpy as np

torch.manual_seed(0)

class StubModel(nn.Module):
    def __init__(self, order=2, num_filts=3):
        super().__init__()
        self.order = order
        self.num_filts = num_filts
        self.linear = nn.Linear(4, order * num_filts)
    
    def chop_pred(self, snapshot):
        return self.linear(snapshot)

model = StubModel(order=2, num_filts=3)

train_loader = [
    (torch.randn(2, 4), torch.tensor([0, 1])),
    (torch.randn(2, 4), torch.tensor([1, 0])),
]

val_loader = [
    (torch.randn(2, 4), torch.tensor([0, 1])),
]

ARGS = {
    'model': model,
    'train_loader': train_loader,
    'val_loader': val_loader,
    'device': 'cpu',
    'order_rescaling': None,
}
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 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
val Ran
ran on a synthesized input
KimGroup/QGasML/lassopath.py
code served (permissive licence) · get_code("5deec296a6bf2967")
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
import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a simple classifier with a predict method
class SimpleClassifier(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 2)
    
    def forward(self, x):
        return self.linear(x)
    
    def predict(self, inpts):
        # Convert to numpy if needed, run through model, return class predictions
        if isinstance(inpts, np.ndarray):
            inpts = torch.from_numpy(inpts).float()
        with torch.no_grad():
            logits = self.forward(inpts)
            preds = torch.argmax(logits, dim=1).numpy()
        return preds

# Create a small classifier instance
classifier = SimpleClassifier()

# Create small input data (batch_size=2, features=4)
inpts = np.random.randn(2, 4).astype(np.float32)

# Create labels (binary classification: 0 or 1)
labels = np.array([0, 1], dtype=np.int64)

ARGS = {
    "classifier": classifier,
    "inpts": inpts,
    "labels": labels,
    "precision": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch — 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
diverging_cmap Not yet run
unverified (harvested, no recorded run)
KimGroup/QGasML/plot_util.py
code served (permissive licence) · get_code("20bb3cf39761ed0f")
How it ran

no invocation recorded.

eval_parse_dict Not yet run
unverified (harvested, no recorded run)
KimGroup/QGasML/config_util.py
code served (permissive licence) · get_code("30a22b19ee411675")
How it ran

no invocation recorded.

plot_filters Not yet run
unverified (harvested, no recorded run)
KimGroup/QGasML/plot_util.py
code served (permissive licence) · get_code("9b80b27d0787e9e8")
How it ran

no invocation recorded.

preprocess_data Not yet run
unverified (harvested, no recorded run)
KimGroup/QGasML/lassopath.py
code served (permissive licence) · get_code("4199f8e7c0c6ab7e")
How it ran

no invocation recorded.

run_lassopath Not yet run
unverified (harvested, no recorded run)
KimGroup/QGasML/lassopath_ovr.py
code served (permissive licence) · get_code("ec05d987c42f15d5")
How it ran

no invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 14 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.

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

Machine learning has recently emerged as a promising approach for studying complex phenomena characterized by rich datasets. In particular, data-centric approaches lend to the possibility of automatically discovering structures in experimental datasets that manual inspection may miss. Here, we introduce an interpretable unsupervised-supervised hybrid machine learning approach, the hybrid-correlation convolutional neural network (Hybrid-CCNN), and apply it to experimental data generated using a programmable quantum simulator based on Rydberg atom arrays. Specifically, we apply Hybrid-CCNN to analyze new quantum phases on square lattices with programmable interactions. The initial unsupervised dimensionality reduction and clustering stage first reveals five distinct quantum phase regions. In a second supervised stage, we refine these phase boundaries and characterize each phase by training fully interpretable CCNNs and extracting the relevant correlations for each phase. The characteristic spatial weightings and snippets of correlations specifically recognized in each phase capture quantum fluctuations in the striated phase and identify two previously undetected phases, the rhombic and boundary-ordered phases. These observations demonstrate that a combination of programmable quantum simulators with machine learning can be used as a powerful tool for detailed exploration of correlated quantum states of matter.

For agents

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

get_harvested_code_for_paper("2112.10789")
get_code_for_paper("2112.10789")
have("2112.10789")

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

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

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

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

Connect an agent — have() is free.