Skip to main content

Module treetn

Module treetn 

Source
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§

BoundaryEdge
Boundary edge information: (node_in_region, neighbor_outside, bond_index).
LocalUpdateStep
A single step in a local update sweep.
LocalUpdateSweepPlan
A complete sweep plan for local updates.
ScheduledSwapStep
A single two-site update step in a pre-computed swap schedule.
SwapOptions
Options for site index swap (truncation during SVD).
SwapSchedule
Pre-computed swap schedule for swap_site_indices.
TreeTN
Tree Tensor Network structure (inspired by ITensorNetworks.jl’s TreeTensorNetwork).
TreeTopology
Specification for tree topology: defines nodes and index ID assignments.
TruncateUpdater
Truncation updater for nsite=2 sweeps.

Traits§

LocalUpdater
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.