Vision¶
TenCirLab is an experiment in letting a research library grow by itself. AI agents reproduce recent quantum computing and quantum information papers on top of TensorCircuit-NG, and every reproduction is used as pressure to grow a reusable layer of components, so that each new reproduction is shorter than it would otherwise be. The agents decide what to build, refactor, and merge; no human reviews changes inside this repository.
This page states what the library is for and what it is not. Rules of conduct are in AGENTS.md, decision rights in autonomy.md, and the technical structure in architecture.md.
Position¶
reproductions/ one folder per paper: only what is specific to that paper
| depends on
tencirlab/ reusable components grown out of reproductions
| depends on public APIs of
TensorCircuit-NG, TensorNetwork-NG, TenCirPauli, and JAX
- TenCirLab is downstream of TensorCircuit-NG. TensorCircuit-NG never depends on TenCirLab.
- TensorCircuit-NG keeps stability first, and its vision leaves new tensor-network and numerical algorithm families, such as two-dimensional tensor networks, and neural quantum states out of the framework. In TenCirLab these can be first-class components.
- A capability within TensorCircuit-NG's own focus, or a bug in it, goes to TensorCircuit-NG as a pull request reviewed by its maintainer. TenCirLab may work around it locally in the meantime.
Everything Is Experimental¶
There is one namespace, tencirlab, and no split between stable and experimental code. No API is promised to stay, and there are no compatibility shims or deprecation periods. What is promised is that every reproduction on main runs and passes its checks: a change to a component updates all of its callers in the same pull request.
Do the Work, Not the Armor¶
The main path must give reliable results. That is the bar, and it is enough.
- No defensive code for corner cases that real use does not hit, no input validation to protect careless users, and no elaborate error messages. The users of this code are mostly agents, who read the source.
- When precision matters, use 64-bit types. Do not engineer numerical rescues for 32-bit precision.
- No speculative machinery — extra layers, registries, plug-in points, configuration — added "in case". A component should still be the natural, general interface for its concept; an option that obviously belongs there is fine even before anything uses it.
- Review findings about unlikely corner cases are declined, not fixed.
Most of the code in this repository should be code that computes something.
Performance¶
Experimental does not mean slow. Components that prove themselves should be good enough to graduate, into TensorCircuit-NG or into a library of their own, so they are written with performance in mind from the start: compiled and vectorized with JAX, static shapes, memory-aware, and fast on GPU. Performance work is welcome as long as it does not significantly add to the maintenance burden; a large speedup on a common path justifies some complexity, a small one on a rare path does not.
What Success Looks Like¶
- Reproductions stay short: the paper-specific code shrinks as components accumulate.
- Components are reused across reproductions instead of reinvented.
- Results are honest: each reproduction states what it matches, what it scales down, and where it disagrees with the paper.
mainstays green against the nightly build of TensorCircuit-NG.- Every decision can be traced later through the records in records/.
- Gaps found here reach TensorCircuit-NG as small, well-motivated pull requests, and mature components eventually graduate.
What Belongs Here¶
- Reproductions of papers whose computational results can be obtained by classical simulation at a meaningful, possibly reduced, scale. Prefer papers that are challenging and that exercise or extend the component layer.
- Components that reproductions here use, designed as coherent general interfaces.
- Heavier reproductions migrated from TensorCircuit-NG, rewritten on top of components rather than copied.
What Does Not¶
- Forks or vendored copies of TensorCircuit-NG, TensorNetwork-NG, or TenCirPauli, or use of their private APIs.
- Code copied from a paper's companion repository under an incompatible license.
- Results that are fabricated, hard-coded, or tuned to look like the paper without the physics behind them.
- Infrastructure unrelated to reproducing papers, such as a GUI, a job scheduler, or a hardware SDK.
Priorities¶
- Correct and honest results on the main path.
- Every reproduction on
mainruns. - Clean, reusable structure.
- Performance.
- Throughput of new reproductions.