Skip to content
This repository was archived by the owner on Nov 7, 2024. It is now read-only.

Removal of the TensorNetwork class

Choose a tag to compare

@chaserileyroberts chaserileyroberts released this 31 Oct 00:09
· 316 commits to master since this release
6e20d13

The TensorNetwork class has been REMOVED and will raise an error if you try to use it. To upgrade your code, please see our simple upgrade guide.

  • Added tn.FiniteMPS class for your standard MPS applications
  • Added tn.reduce_density method for creating a reduced density matrices.
  • Added ignore_edge_order argument to the contractor methods.
  • Added tn.split_edge method.
  • Added support for contracting subgraphs of a network. Now you can use the tn.contractor methods for contracting a subset of your nodes.
  • Added support for copying a subgraph of the network. When an edge is non-dangling, but only one of the nodes for that edge is in the set of given edges, the "copied" edge become a dangling edge. This is useful for calculating things like environments and normalizations.
  • Added a tn.NodeCollection context manager. This allows you to collect all of your created nodes into a single list or set easily.