Skip to content

Reproductions

Each folder reproduces one or more figures or tables of a paper on top of TenCirLab components. A folder contains only what is specific to that paper; everything reusable lives in tencirlab/.

Layout

reproductions/
├── README.md
├── taxonomy.yaml              # controlled vocabulary for tags and features
└── <YYYY>_<keywords>/         # year of the paper, then a few keywords, e.g. 2026_blurred_tvmc
    ├── meta.yaml              # the single source for the website
    ├── main.py                # runs the reproduction; scale selectable
    ├── verify.py              # optional independent checks, CPU, about a minute
    ├── README.md              # optional: setup and discussion beyond meta.yaml
    └── outputs/               # figures and numerical results at the default scale

Additional paper-specific modules are fine; if one turns out to be reusable, move it into tencirlab/.

Selecting Papers

A paper is a good candidate when:

  • it has a concrete computational target, a figure or table, obtainable by classical simulation;
  • it is challenging: it exercises existing components or calls for new ones, rather than repeating a small textbook example;
  • its target figure is within reach at the paper's own scale with about one GPU for two days, or with an efficiency comparable to the paper's when it reports much more compute (see Paper Scale), and a reduced default scale that preserves the phenomenon fits the compute limit below;
  • the paper gives enough parameters, or missing ones can be chosen reasonably and stated.

Candidates come from the daily arXiv screening, paper-request issues, and reproductions to migrate from TensorCircuit-NG.

Scales

main.py runs at a selectable scale, with the default producing the published figure:

SCALES = {
    "test": dict(n_sites=6, n_samples=256, n_steps=20),        # CI: about a minute on CPU
    "default": dict(n_sites=16, n_samples=4096, n_steps=400),  # outputs/ figures
    "paper": dict(n_sites=36, n_samples=16384, n_steps=400),   # optional: the paper's scale
}
python main.py                          # default scale, writes outputs/
python main.py --scale test --out DIR   # small run, writes to DIR
  • The code path is identical at every scale; only parameters change.
  • test runs the full pipeline, including compilation and plotting, in about a minute on a CI CPU. CI runs it for every reproduction affected by a pull request, and for all reproductions nightly, which is how refactors are checked against every reproduction.
  • Runs at a non-default scale never write into outputs/.

Paper Scale

The paper's sizes and parameters for the target figure are the design target, even when the published run is smaller. Small runs save our time; they do not license a method that could not reach the paper.

  • Target. With reasonable compute, about one GPU for two days, the implementation can produce the target figure at the paper's sizes and parameters. Repetitions, a few runs combined with an extrapolation, and the estimates below all count. When the paper reports compute far beyond that, such as many GPUs for days, the target is an efficiency comparable to the paper's, not its wall time.
  • Efficiency. Per unit of work (an amplitude, a sweep, a time step, an optimizer step) our cost is comparable to the paper's or better, with memory that fits one GPU in a way the paper's scale allows, such as chunking or streaming instead of a full matrix.
  • Estimate. Before building, estimate time and memory at the paper's scale from the method's scaling; after building, measure at two or more representative sizes and extrapolate. Count the dominant costs: contraction cost and largest intermediate, sample count times cost per sample, matrices of the size of samples times parameters or parameters squared, number of steps.
  • When it does not fit, the gap is the work. Develop what the paper relies on (an approximate contraction, a streamed or low-memory solver, a symmetry, a better sampler) and only then decide how to run. The published run may still use other sizes or hyperparameters, as long as the result at the paper's scale follows from it: smaller sizes with a stated extrapolation, a few repetitions instead of many, or a shorter time window with a stated cost per step.
  • Exact reference paths stay. A simple exact method, such as exact contraction or a dense solve, remains useful for small sizes and tests. It does not count as the design for the paper's scale.
  • Record it. meta.yaml states the estimate in paper_scale. A reproduction whose design does not reach the paper's scale has status at most partial, and the missing algorithm is tracked in an issue labelled component.

Compute Limit

The default scale should finish within two hours on CPU or four hours on one GPU. Larger default runs need the owner's approval; see Asking the Owner. A paper scale may be larger; it is run on request, not by the weekly rerun.

meta.yaml

title: "Paper Title in Title Case"
arxiv_id: "2601.01234"
url: "https://arxiv.org/abs/2601.01234"
year: 2026
authors:
  - "First Author"
tags:                      # 2-4 keys from taxonomy.yaml
  - "many-body-physics"
features:                  # upstream capabilities used, keys from taxonomy.yaml
  - "jit"
components:                # tencirlab modules imported by the code; checked by CI
  - "tencirlab.nqs"
status: "reproduced"       # reproduced | partial | qualitative
scales:
  test: {device: cpu, runtime: "40 s"}
  default: {device: gpu, runtime: "35 min", memory: "8 GB"}
  paper: {device: gpu, runtime: "6 h", memory: "40 GB"}
card_title: "Figure 5(a,b) · Standard and blurred tVMC"   # at most 60 characters
summary: "One sentence, at most 140 characters, describing what the figure shows."
setup: >-
  The model, the method, and the computed quantity, written for a reader who wants
  to rebuild the result roughly.
description: >-
  What is reproduced, how the default scale relates to the paper and why the
  physics is preserved, every simplification, and every disagreement with the paper.
paper_scale: >-
  The paper's sizes and parameters for the target, the estimated time and memory of
  this implementation there and what the estimate rests on, and whether it fits; if
  not, the missing algorithm and its issue.
outputs:
  - target: "Figure 5(a,b)"
    path: outputs/result.png
# budget_note: "Why the code cannot be shorter."         # needed above the size limit
# migrated_from: "tensorcircuit-ng examples/reproduce_papers/2026_nqs_tvmc_blurred_sampling"
# contributors: ["Name"]                                # original authors of migrated or external work

scripts/check_meta.py checks the mechanical parts: vocabulary keys exist in taxonomy.yaml, components matches the imports, every file in outputs/ is declared and tracked, and the length limits. Beyond that:

  • status is honest. reproduced means quantitative agreement at the declared scale, with a design that reaches the paper's scale; partial means some targets agree and others do not or were not attempted; qualitative means trends agree but numbers cannot be compared directly.
  • Single output files stay below 2 MB. Prefer PNG or WebP for figures and compressed .npz or .json for data, so the weekly rerun can compare numbers.

Size Budget

Target 150 counted lines, limit 300 unless budget_note explains why; see docs/architecture.md.

verify.py

Optional. Add it when there is an independent check worth keeping: exact diagonalization at small size, a conservation law, a known limit, or a number quoted in the paper. It runs on CPU in about a minute, fails with a plain assertion, and does not write to outputs/.