You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/ref.md
+15-10Lines changed: 15 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,28 +15,33 @@ PaintShop
15
15
Satisfiability
16
16
SetCovering
17
17
SetPacking
18
-
OpenPitMining
19
18
```
20
19
21
20
#### Constraint Satisfaction Problem Interfaces
22
21
23
22
To subtype [`ConstraintSatisfactionProblem`](@ref), a new type must contain a `code` field to represent the (optimized) tensor network.
24
-
Interfaces [`GenericTensorNetworks.generate_tensors`](@ref), [`labels`](@ref), [`flavors`](@ref) and [`weights`](@ref) are required.
23
+
Interfaces [`GenericTensorNetworks.generate_tensors`](@ref), [`flavors`](@ref) and [`weights`](@ref) are required.
25
24
[`num_flavors`](@ref) is optional.
26
25
27
26
```@docs
28
27
GenericTensorNetworks.generate_tensors
29
-
labels
30
-
energy_terms
31
28
flavors
32
29
weights
33
30
set_weights
31
+
is_weighted
34
32
num_flavors
35
33
fixedvertices
36
34
```
37
35
38
36
#### Constraint Satisfaction Problem Utilities
39
37
```@docs
38
+
hard_constraints
39
+
is_satisfied
40
+
local_solution_spec
41
+
solution_size
42
+
energy_mode
43
+
energy
44
+
40
45
is_independent_set
41
46
is_maximal_independent_set
42
47
is_dominating_set
@@ -46,10 +51,7 @@ is_set_covering
46
51
is_set_packing
47
52
48
53
cut_size
49
-
spinglass_energy
50
54
num_paint_shop_color_switch
51
-
paint_shop_coloring_from_config
52
-
mis_compactify!
53
55
54
56
CNF
55
57
CNFClause
@@ -60,8 +62,7 @@ satisfiable
60
62
¬
61
63
∧
62
64
63
-
is_valid_mining
64
-
print_mining
65
+
mis_compactify!
65
66
```
66
67
67
68
## Properties
@@ -145,7 +146,12 @@ MergeGreedy
145
146
146
147
## Others
147
148
#### Graph
149
+
Except the `SimpleGraph` defined in [Graphs](https://github.com/JuliaGraphs/Graphs.jl), `GenericTensorNetworks` also defines the following types and functions.
Copy file name to clipboardExpand all lines: docs/src/tensornetwork.md
-1Lines changed: 0 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,6 @@ The maximum/minimum solution sizes can be represented as a tensor network as wel
51
51
which can be represented as a tropical tensor network[^Liu2021] $(V, \{h_{\sigma_e} \mid e\in E\}, \emptyset)$, where $h_{\sigma_e}$ is a tensor labeled by $\sigma_e \subseteq V$, and its elements are defined by $h_{\sigma_e}= h_e(\sigma_e)$.
52
52
53
53
## Problems
54
-
### Independent set problem
55
54
The independent set problem on graph $G=(V, E)$ is characterized by the Hamiltonian
0 commit comments