Install tensorNet

Install tensorNet

Fist download the source code from here.

Install executing in the distribution directory: * Make sure you have numpy>=1.14.0 and (optional) termcolor>=1.1.0 installed. If not, you can run:

$ python3 -m pip install -r requiremnts.txt
  • Install tensornet

    $ python3 -m pip install .
    

Test Installation

Execute python3:

>>> import tensornet as tn
>>> tn.reasurement(42)

This should give you (with leg 2,3 colored green):

Everything is (gonna be) ok. ;)
The answer to life, the universe and everything is not 42, but..
tensor:
  name     = A
  legs     = 1:W(4)  2:E(3)  3:S(3)  4:N(2)
  deltas   = [{2, 3}]
    |
    4
  -1A2-
    3
    |

Uninstall

Uninstall by running outside the distribution directory:

$ python3 -m pip uninstall tensornet