Vivian is an open-source project for 2D tensor network algorithms, with an emphasis on infinite projected entangled-pair states (iPEPS). It is built on the Nicole symmetry-aware tensor library and its Yuzuha Clebsch-Gordan backend, inheriting full support for Abelian and non-Abelian (currently SU(2) only) symmetries.
Vivian is the two-dimensional counterpart of Alice, which covers 1D and quasi-1D algorithms. The two projects share the same design philosophy: a physicist-friendly API — TOML-driven model definitions, concise Python entry points — over a well-tested, performant backend designed with HPC in mind, so that cutting-edge tensor network calculations stay accessible without giving up mathematical rigor.
Status: name reserved. Version 0.0.1 on PyPI reserves the
vivian-netname and is not a usable library. This repository contains the project skeleton only. The APIs described below are planned rather than implemented, and everything is subject to change before the first usable release.
Algorithms
Planned
- CTMRG (Corner Transfer Matrix Renormalization Group): contraction of the infinite 2D network to obtain the fixed-point environment used for all expectation values
- Simple Update: imaginary-time evolution of an iPEPS with a local (bond-wise) approximation of the environment, cheap and robust for locating the right variational region
- Full Update: imaginary-time evolution with the full CTMRG environment, giving substantially better accuracy at higher cost
- Variational Optimization: direct energy minimization of the iPEPS tensors by gradient descent, with gradients obtained through automatic differentiation of the CTMRG contraction
- Finite-Temperature iPEPS: thermal density matrix evolution in 2D for thermodynamic observables
Key Features
Planned
- Symmetry-Aware iPEPS/iPEPO: block-sparse projected entangled-pair states and operators supporting any symmetry group or product group that Nicole supports, leveraging its exact block-sparse engine
- Flexible Unit Cells and Lattices: square, honeycomb, triangular, and kagome lattices with arbitrary unit cell sizes, plus custom lattice extensions via user-defined functions
- AutoPEPO Construction: TOML-configured Hamiltonian builder with built-in model presets and full support for custom models via user-defined model functions
- Systematic Logging: comprehensive iteration-by-iteration diagnostics via Python's
loggingmodule - PyTorch Backend: all dense block operations run on PyTorch via Nicole, with optional GPU (CUDA/MPS), Ascend NPU acceleration, and on-demand autograd support
Installation
Version 0.0.1 on PyPI only reserves the name. For development, install from source in editable mode:
git clone https://github.com/Ideogenesis-AI/Vivian.git
cd Vivian
uv venv --python 3.11
uv pip install -e ".[test,lint,docs]"
See the documentation for the full development workflow.
Contributing
Vivian is structured around a shared core — the iPEPS, iPEPO, and environment infrastructure — on top of which each algorithm is developed and maintained as an independent unit. This means that individual algorithms can be contributed, extended, or maintained by different people, and each contributor's work is attributed accordingly. Because the project is at an early stage, there is ample room to take ownership of an entire algorithm.
Ways to contribute:
- Implement or co-develop one of the planned algorithms (see Algorithms)
- Report issues and request features via GitHub Issues
- Submit pull requests with bug fixes or enhancements
- Share benchmarks, use cases, or constructive feedback
Development guidelines:
- Ensure contributions include appropriate tests
- Follow the existing code style (enforced by
ruff) - Add type hints for all public function signatures
- Update documentation for user-facing changes
Authors and Maintainers:
Vivian is created by Changkai Zhang as part of the Ideogenesis-AI effort in studying quantum many-body systems. The core infrastructure is maintained by the original author; individual algorithms have their respective maintenance teams. For questions about contributing or collaboration opportunities, feel free to open an issue on GitHub or contact the responsible team directly.
License
Vivian is licensed under the GNU General Public License v3.0 (GPL-3.0). This means you are free to use, modify, and distribute this software under the terms of the GPL-3.0 license. We encourage you to share any improvements you make back to the community, helping Vivian grow and benefit all users. See the LICENSE file for the full license text. For more information about GPL-3.0, visit https://www.gnu.org/licenses/gpl-3.0.html
Metadata
Release files for vivian-net 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vivian_net-0.0.1.tar.gz | 5.3 MB | Without provenance | Details for vivian_net-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| vivian_net-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for vivian_net-0.0.1-py3-none-any.whl |
Total release size: 5.3 MB
Release files / vivian_net-0.0.1.tar.gz
| Download URL | vivian_net-0.0.1.tar.gz |
|---|---|
| Size | 5.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9324cc4d4d5981cb07140303b36bf0c5668ae5b6d01c3e1dfa4477b25ed8175c
|
|
BLAKE2b-256 checksum How to use checksums |
22b6b54ee60d6204decef0afe813c0e23fdd8a7aec30e38659dd30661a4bfb58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / vivian_net-0.0.1-py3-none-any.whl
| Download URL | vivian_net-0.0.1-py3-none-any.whl |
|---|---|
| Size | 31.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53834d8d2200d035d3aa74db8888f3a5ff9c616b5a3a1bfd4a59923331707837
|
|
BLAKE2b-256 checksum How to use checksums |
13dc7f1e7fcf3ff4df35db541b610e52e0db1181a73d5379ec42831b7734dbd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for vivian-net 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.