• full name: tenpy.algorithms.network_contractor

  • parent module: tenpy.algorithms

  • type: module


contract(tensor_list[, tensor_names, ...])

Contract a network of tensors.

ncon(tensor_list, leg_links[, sequence])

Implementation of ncon.m for TeNPy Arrays.

Module description

Network Contractor.

A tool to contract a network of multiple tensors.

This is an implementation of ‘NCON: A tensor network contractor for MATLAB’ by Robert N. C. Pfeifer, Glen Evenbly, Sukhwinder Singh, Guifre Vidal, see arXiv:1402.0939


  • implement or wrap netcon.m, a function to find optimal contraction sequences