Skip to main content

Module contraction

Module contraction 

Source
Expand description

Contraction and operations for TreeTN.

This module provides methods for:

  • Replacing internal indices with fresh IDs (sim_internal_inds)
  • Contracting TreeTN to tensor (contract_to_tensor)
  • Zip-up contraction (contract_zipup)
  • Naive contraction (contract_naive)
  • Validation (validate_ortho_consistency)

Structs§

ContractionOptions
Options for the generic contract function.

Enums§

ContractionMethod
Contraction method for TreeTN operations.

Functions§

contract
Contract two TreeTNs using the specified method.
contract_naive_to_treetn
Contract two TreeTNs using naive contraction, then decompose back to TreeTN.