Expand description
Tree Tensor Network implementation.
This module provides the TreeTN type, a tree-structured tensor network
for efficient tensor operations with canonicalization and truncation support.
Re-exports§
pub use partial_contraction::partial_contract;pub use partial_contraction::PartialContractionSpec;
Modules§
- contraction
- Contraction and operations for TreeTN.
- partial_
contraction - Partial site contraction for TreeTN.
Structs§
- Boundary
Edge - Boundary edge information: (node_in_region, neighbor_outside, bond_index).
- Local
Update Step - A single step in a local update sweep.
- Local
Update Sweep Plan - A complete sweep plan for local updates.
- Scheduled
Swap Step - A single two-site update step in a pre-computed swap schedule.
- Swap
Options - Options for site index swap (truncation during SVD).
- Swap
Schedule - Pre-computed swap schedule for
swap_site_indices. - TreeTN
- Tree Tensor Network structure (inspired by ITensorNetworks.jl’s TreeTensorNetwork).
- Tree
Topology - Specification for tree topology: defines nodes and index ID assignments.
- Truncate
Updater - Truncation updater for nsite=2 sweeps.
Traits§
- Local
Updater - Trait for local update operations during a sweep.
Functions§
- apply_
local_ update_ sweep - Apply a local update sweep to a TreeTN.
- factorize_
tensor_ to_ treetn - Decompose a dense tensor into a TreeTN using QR-based factorization.
- factorize_
tensor_ to_ treetn_ with - Factorize a dense tensor into a TreeTN using specified factorization options.
- get_
boundary_ edges - Get all boundary edges for a given region in a TreeTN.