TensorNetwork
A library for easy and efficient manipulation of tensor networks.
File Explorer
Download Latest Version (.zip)- ci-build.yml
- Tensor_Networks_in_Neural_Networks.ipynb
- Dockerfile
- mps_basic_1.png
- mps_basic_2.png
- mps_basic_4.png
- tensor_1.png
- tensor_2.png
- tensor_3.png
- tensor_4.png
- blocktensor.png
- contractors.png
- dangling_contract.png
- replicate_nodes_subgraph.png
- subgraph_contract.png
- svd.png
- tensornetwork_logo.jpg
- tensornetwork.BaseCharge.rst
- tensornetwork.BaseNode.rst
- tensornetwork.BlockSparseTensor.rst
- tensornetwork.ChargeArray.rst
- tensornetwork.contractors.auto.rst
- tensornetwork.contractors.branch.rst
- tensornetwork.contractors.bucket.rst
- tensornetwork.contractors.custom.rst
- tensornetwork.contractors.greedy.rst
- tensornetwork.contractors.optimal.rst
- tensornetwork.CopyNode.rst
- tensornetwork.Edge.rst
- tensornetwork.FiniteMPS.rst
- tensornetwork.Index.rst
- tensornetwork.InfiniteMPS.rst
- tensornetwork.Node.rst
- tensornetwork.NodeCollection.rst
- tensornetwork.tn_keras.layers.Conv2DMPO.rst
- tensornetwork.tn_keras.layers.DenseCondenser.rst
- tensornetwork.tn_keras.layers.DenseDecomp.rst
- tensornetwork.tn_keras.layers.DenseEntangler.rst
- tensornetwork.tn_keras.layers.DenseExpander.rst
- tensornetwork.tn_keras.layers.DenseMPO.rst
- tensornetwork.U1Charge.rst
- tensornetwork.Z2Charge.rst
- tensornetwork.ZNCharge.rst
- basic_mps.rst
- block_sparse.rst
- block_sparse_tutorial.rst
- conf.py
- contractors.rst
- contributing.rst
- copy_contract.rst
- edges.rst
- index.rst
- make.bat
- Makefile
- mps.rst
- ncon.rst
- network.rst
- node_spliting.rst
- nodes.rst
- quantum_circuit.rst
- requirements_docs.txt
- tn_keras.rst
- tutorial.rst
- example.py
- symmetric_dmrg.py
- __init__.py
- fft.py
- fft_test.py
- __init__.py
- sat_tensornetwork.py
- sat_tensornetwork_test.py
- SATTutorial.ipynb
- simple_mera.py
- simple_mera_test.py
- evolution_example.py
- trotter.py
- wavefunctions.py
- wavefunctions_test.py
- __init__.py
- __init__.py
- jax_backend.py
- jax_backend_test.py
- jitted_functions.py
- jitted_functions_test.py
- __init__.py
- decompositions.py
- decompositions_test.py
- numpy_backend.py
- numpy_backend_test.py
- __init__.py
- decompositions.py
- decompositions_test.py
- pytorch_backend.py
- pytorch_backend_test.py
- pytorch_tensornetwork_test.py
- __init__.py
- decompositions.py
- decompositions_test.py
- symmetric_backend.py
- symmetric_backend_test.py
- __init__.py
- decompositions.py
- decompositions_test.py
- tensordot2.py
- tensordot2_test.py
- tensorflow_backend.py
- tensorflow_backend_test.py
- tensorflow_tensornetwork_test.py
- __init__.py
- abstract_backend.py
- backend_factory.py
- backend_test.py
- decorators.py
- decorators_test.py
- __init__.py
- blocksparse_utils.py
- blocksparse_utils_test.py
- blocksparsetensor.py
- blocksparsetensor_test.py
- caching.py
- caching_test.py
- charge.py
- charge_test.py
- index.py
- index_test.py
- initialization.py
- initialization_test.py
- linalg.py
- linalg_test.py
- sizetypes.py
- tensordot_test.py
- utils.py
- utils_test.py
- __init__.py
- nconinterface.py
- nconinterface_test.py
- pathsolvers.py
- pathsolvers_test.py
- __init__.py
- path_calculation_test.py
- path_contractors.py
- path_contractors_node_test.py
- utils.py
- __init__.py
- bucket_contractor.py
- bucket_contractor_test.py
- initialization_test.py
- node_linalg_test.py
- test_krylov.py
- test_linalg.py
- test_operations.py
- __init__.py
- initialization.py
- krylov.py
- linalg.py
- node_linalg.py
- operations.py
- __init__.py
- base_mps.py
- base_mps_test.py
- dmrg.py
- dmrg_test.py
- finite_mps.py
- finite_mps_test.py
- infinite_mps.py
- infinite_mps_test.py
- mpo.py
- mpo_test.py
- quantum.py
- quantum_test.py
- __init__.py
- backend_contextmanager_test.py
- ncon_interface_test.py
- network_components_free_symmetric_test.py
- network_components_free_test.py
- network_operations_symmetric_test.py
- network_operations_test.py
- network_test.py
- serialize_test.py
- split_node_symmetric_test.py
- split_node_test.py
- tensor_test.py
- tensornetwork_symmetric_test.py
- tensornetwork_test.py
- testing_utils.py
- TN_Keras.ipynb
- condenser.png
- decomp.png
- entangler.png
- expander.png
- mpo.png
- staircase_entangler.png
- __init__.py
- condenser.py
- conv2d_mpo.py
- dense.py
- entangler.py
- expander.py
- layers.py
- mpo.py
- README.md
- test_conv_layer.py
- test_layer.py
- test_mpo.py
- __init__.py
- graphviz.py
- graphviz_test.py
- __init__.py
- backend_contextmanager.py
- component_factory.py
- config.py
- ncon_interface.py
- network_components.py
- network_operations.py
- ops.py
- tensor.py
- utils.py
- version.py
- .gitignore
- .readthedocs.yml
- .style.yapf
- .travis.yml
- AUTHORS
- conftest.py
- CONTRIBUTING.md
- LICENSE
- MANIFEST.in
- pylintrc
- README.md
- requirements.txt
- requirements_travis.txt
- setup.py
# Installation Guide
1. Get the code
git clone https://github.com/google/TensorNetwork
Downloads the entire project code from GitHub to your computer.
cd TensorNetwork
Moves into the project folder you just downloaded.
2. Official Install Script
Easy RecommendedPrerequisites
- Python 3 Python is required to use pip.
pip3 install tensornetwork
Installs the package published on PyPI directly β no need to clone the source.
After installing, open a new terminal and run the program's version command (e.g. --version) to confirm it worked.
Pulled directly from this repo's README.
3. Docker
EasyPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -f dev_tools/Dockerfile -t tensornetwork .
Builds a runnable image based on the Dockerfile.
docker run -p 8080:80 tensornetwork
Runs the built image as an actual container.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
4. Python
EasyPrerequisites
pip3 install tensornetwork
Installs the package published on PyPI directly β no need to clone the source.
If it runs without errors and prints output in the terminal, it worked.
Pulled directly from this repo's README.
// repository documentation
Was this content helpful?
(0 ratings)
