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

Free Node Paradigm

Compare
Choose a tag to compare
@chaserileyroberts chaserileyroberts released this 03 Oct 20:28
· 353 commits to master since this release

We have switched to using a "Free Node" paradigm. Examples of what this looks like can be found on our latest README.

Users have told us that the TensorNetwork object is more cumbersome than helpful, so we will be totally removing it in the next release. This release is out to help users upgrade their code. This is a BREAKING CHANGE. We have made a simple tutorial to upgrade your code.

  • New prefered way to import tensornetwork is now as import tensornetwork as tn
  • Deprecated the TensorNetwork object. Prefer now to just create your nodes using tn.Node. All operations such as net.split_node can now be called like tn.split_node.
  • Added tn.reachable method to get a set of all nodes reachable from another node or set of nodes. This usually can be a drop in replacement for when you had to originally give a TensorNetwork object in methods like all of the contractors.