Wolfram Language
Paclet Repository
Community-contributed installable additions to the Wolfram Language
Primary Navigation
Categories
Cloud & Deployment
Core Language & Structure
Data Manipulation & Analysis
Engineering Data & Computation
External Interfaces & Connections
Financial Data & Computation
Geographic Data & Computation
Geometry
Graphs & Networks
Higher Mathematical Computation
Images
Knowledge Representation & Natural Language
Machine Learning
Notebook Documents & Presentation
Scientific and Medical Data & Computation
Social, Cultural & Linguistic Data
Strings & Text
Symbolic & Numeric Computation
System Operation & Setup
Time-Related Computation
User Interface Construction
Visualization & Graphics
Random Paclet
Alphabetical List
Using Paclets
Create a Paclet
Get Started
Download Definition Notebook
Learn More about
Wolfram Language
TensorNetworks
Guides
TensorNetworks
Tech Notes
Building Tensor Networks
Contraction Paths and Execution
Matrix Product States
A Working Tour of the Symmetry Functions
Tensor Networks Overview
Young Tableaux and Tensor Symmetries
Symbols
ActivateTensors
BinaryTensorNetwork
BinaryTensorNetworkQ
CanonicalPath
CanonicalPathQ
ContractIndices
ContractionTree
EinsteinSummation
GreedyContractionPath
HookFactor
HookLength
HookLengths
IndexedMultiply
InitializeTensorNetwork
MetricTensor
MetricTensorQ
MPSCanonicalForm
MPSCanonicalQ
MPSEntanglementEntropy
MPSNormalize
MPSNorm
MPSOverlap
MPSSchmidtValues
MPSTruncate
OptimalContractionPath
PartitionQ
PathIndexContractions
PathQ
PathToTreePath
RandomTensorNetwork
SchurDimension
SparseTensorNetwork
TableauColumns
TableauDimension
TableauRows
TableauShape
TableauSize
TableauWeylDimension
TensorNetworkAdd
TensorNetworkContraction
TensorNetworkContractions
TensorNetworkContract
TensorNetworkData
TensorNetworkDelete
TensorNetworkFreeIndices
TensorNetworkGraphData
TensorNetworkGraphQ
TensorNetworkIndexDimensions
TensorNetworkIndexGraph
TensorNetworkIndices
TensorNetwork
TensorNetworkQ
TensorNetworkRemoveCycles
TensorNetworkReplaceIndices
TensorNetworkSize
TensorNetworkTensors
TensorNetworkToNetGraph
ToTensorNetworkGraph
TransposePartition
TreePathQ
TreePath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
{
{
1
1
,
4
1
}
,
{
1
2
,
2
2
,
5
2
}
,
{
2
3
,
6
3
}
}
The two boundary tensors have rank 2 (one bond, one physical leg); the bulk tensor has rank 3 (two bonds, one physical leg). The slot label
1
is shared by tensors 1 and 2, and label
2
by tensors 2 and 3 -- these are the two MPS bonds. The labels
4
,
5
,
6
appear only once and are the physical legs.
G
r
a
p
h
f
o
r
m
(
1
)
A
p
p
l
i
c
a
t
i
o
n
s
(
1
)
P
r
o
p
e
r
t
i
e
s
&
R
e
l
a
t
i
o
n
s
(
1
)
S
e
e
A
l
s
o
T
e
n
s
o
r
N
e
t
w
o
r
k
▪
T
e
n
s
o
r
N
e
t
w
o
r
k
D
a
t
a
▪
T
e
n
s
o
r
N
e
t
w
o
r
k
C
o
n
t
r
a
c
t
i
o
n
s
▪
T
e
n
s
o
r
N
e
t
w
o
r
k
F
r
e
e
I
n
d
i
c
e
s
▪
T
e
n
s
o
r
N
e
t
w
o
r
k
I
n
d
e
x
D
i
m
e
n
s
i
o
n
s
▪
T
o
T
e
n
s
o
r
N
e
t
w
o
r
k
G
r
a
p
h
▪
S
u
p
e
r
s
c
r
i
p
t
▪
S
u
b
s
c
r
i
p
t
T
e
c
h
N
o
t
e
s
▪
B
u
i
l
d
i
n
g
T
e
n
s
o
r
N
e
t
w
o
r
k
s
R
e
l
a
t
e
d
G
u
i
d
e
s
▪
T
e
n
s
o
r
N
e
t
w
o
r
k
s
Get the per-tensor index specifications for a tensor network:
I
n
[
1
]
:
=
t
n
=
T
e
n
s
o
r
N
e
t
w
o
r
k
[
{
R
a
n
d
o
m
R
e
a
l
[
{
-
1
,
1
}
,
{
2
,
3
}
]
,
R
a
n
d
o
m
R
e
a
l
[
{
-
1
,
1
}
,
{
3
,
4
}
]
}
,
{
{
i
,
j
}
,
{
j
,
k
}
}
]
;
I
n
[
2
]
:
=
T
e
n
s
o
r
N
e
t
w
o
r
k
I
n
d
i
c
e
s
[
t
n
]
O
u
t
[
2
]
=
i
1
,
j
1
,
j
2
,
k
2
Each inner list holds the slot labels of one tensor; every label carries the tensor's 1-based position as its
S
u
p
e
r
s
c
r
i
p
t
tag. The shared hyperedge
j
appears in both tensors as
j
1
and
j
2
; the free indices
i
and
k
carry a single labeled occurrence.
The property syntax exposes the same value:
I
n
[
3
]
:
=
t
n
[
"
I
n
d
i
c
e
s
"
]
O
u
t
[
3
]
=
i
1
,
j
1
,
j
2
,
k
2
"
"