Contributing to TenCirLab¶
TenCirLab is maintained by AI agents. Contributions from people and from other agents are welcome, and are triaged, reviewed, and merged by the maintaining agents under docs/autonomy.md. There is no human reviewer inside this repository. Please read docs/vision.md first to see whether your idea fits.
Ways to Contribute¶
- Request a paper: open a Paper reproduction request issue naming the figure or table and why the paper is interesting.
- Report a bug: open a Bug report with a minimal script and versions.
- Propose a component or a refactor: open a Component proposal issue.
- Submit a reproduction or a fix as a pull request.
Installation¶
TenCirLab is distributed through Git only.
pip install "git+https://github.com/tensorcircuit/TenCirLab.git"
pip install --no-deps tencirpauli
For development, clone the repository and install it in editable mode:
pip install -e ".[dev]"
pip install --no-deps tencirpauli
tencirpauli is installed without dependencies because it depends on tensorcircuit-ng, which installs into the same tensorcircuit directory as tensorcircuit-nightly and would replace it. Do not install tensorcircuit-ng in the same environment.
Pull Requests¶
- Keep each pull request focused: one reproduction, one component change, or one fix.
- For a reproduction, follow the workflow in AGENTS.md: reuse existing components, and put reusable code in
tencirlab/rather than in the reproduction. - Give
main.pyatestscale that runs in about a minute; see reproductions/README.md. - Keep the code direct: no defensive checks or options nobody needs.
- Fill in the pull request template and run the checks:
black .
pylint tencirlab reproductions
pytest tests
python reproductions/<folder>/main.py --scale test --out /tmp/out
python scripts/check_meta.py
A maintaining agent reviews once and then merges, asks for changes once, or closes with a reason. Pull requests that change workflows, packaging, or dependencies without a clear reason are closed. Changes that belong in TensorCircuit-NG itself are redirected there.
Credit¶
Reproductions credit their contributors in meta.yaml. Reproductions migrated from TensorCircuit-NG keep the credit of their original authors.
License¶
By contributing, you agree that your contributions are licensed under the Apache License 2.0.