Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
joserapa98 committed Apr 14, 2024
2 parents 8aa3f18 + 2b1e2eb commit 072bc74
Show file tree
Hide file tree
Showing 98 changed files with 23,195 additions and 20,972 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

[![DOI](https://zenodo.org/badge/453954432.svg)](https://zenodo.org/badge/latestdoi/453954432)

[![DOI](https://zenodo.org/badge/453954432.svg)](https://zenodo.org/badge/latestdoi/453954432)

# Tensor Networks with PyTorch

**TensorKrowch** is a Python library built on top of **PyTorch** that simplifies
Expand Down
158 changes: 79 additions & 79 deletions docs/_build/doctest/output.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,28 @@
Results of doctest builder run on 2024-03-06 17:52:48
Results of doctest builder run on 2024-04-14 01:59:36
=====================================================

Document: operations
Document: embeddings
--------------------
1 items passed all tests:
139 tests in default
139 tests in 1 items.
139 passed and 0 failed.
35 tests in default
35 tests in 1 items.
35 passed and 0 failed.
Test passed.

Document: embeddings
Document: models
----------------
1 items passed all tests:
115 tests in default
115 tests in 1 items.
115 passed and 0 failed.
Test passed.

Document: operations
--------------------
1 items passed all tests:
21 tests in default
21 tests in 1 items.
21 passed and 0 failed.
186 tests in default
186 tests in 1 items.
186 passed and 0 failed.
Test passed.

Document: components
Expand All @@ -27,24 +35,24 @@ Expected:
tensor([[-0.2799, -0.4383, -0.8387],
[ 1.6225, -0.3370, -1.2316]])
Got:
tensor([[-0.8089, 0.4628, -0.6844],
[ 1.1108, 0.0188, -0.8615]])
tensor([[ 0.2628, -0.6672, -0.9051],
[-0.6796, -0.4245, -0.5780]])
**********************************************************************
File "../tensorkrowch/components.py", line ?, in default
Failed example:
node.sum()
Expected:
tensor(-1.5029)
Got:
tensor(-0.7625)
tensor(-2.9916)
**********************************************************************
File "../tensorkrowch/components.py", line ?, in default
Failed example:
node.sum('left')
Expected:
tensor([ 1.3427, -0.7752, -2.0704])
Got:
tensor([ 0.3019, 0.4816, -1.5459])
tensor([-0.4168, -1.0916, -1.4831])
**********************************************************************
File "../tensorkrowch/components.py", line ?, in default
Failed example:
Expand All @@ -53,24 +61,24 @@ Expected:
tensor([[ 1.4005, -0.0521, -1.2091],
[ 1.9844, 0.3513, -0.5920]])
Got:
tensor([[-1.9150, -1.1032, -0.0561],
[ 0.3190, 2.6678, -0.5485]])
tensor([[-0.5314, -0.7805, -0.6475],
[-0.1279, 0.7409, 0.5816]])
**********************************************************************
File "../tensorkrowch/components.py", line ?, in default
Failed example:
node.mean()
Expected:
tensor(0.3139)
Got:
tensor(-0.1060)
tensor(-0.1275)
**********************************************************************
File "../tensorkrowch/components.py", line ?, in default
Failed example:
node.mean('left')
Expected:
tensor([ 1.6925, 0.1496, -0.9006])
Got:
tensor([-0.7980, 0.7823, -0.3023])
tensor([-0.3296, -0.0198, -0.0330])
**********************************************************************
File "../tensorkrowch/components.py", line ?, in default
Failed example:
Expand All @@ -79,24 +87,24 @@ Expected:
tensor([[ 0.2111, -0.9551, -0.7812],
[ 0.2254, 0.3381, -0.2461]])
Got:
tensor([[ 0.4271, -1.1628, 0.4584],
[-0.5092, 0.3150, -0.8473]])
tensor([[-1.8500, -0.4944, 0.5940],
[-0.9353, -0.6008, -0.4320]])
**********************************************************************
File "../tensorkrowch/components.py", line ?, in default
Failed example:
node.std()
Expected:
tensor(0.5567)
Got:
tensor(0.7115)
tensor(0.7922)
**********************************************************************
File "../tensorkrowch/components.py", line ?, in default
Failed example:
node.std('left')
Expected:
tensor([0.0101, 0.9145, 0.3784])
Got:
tensor([0.6621, 1.0450, 0.9232])
tensor([0.6468, 0.0752, 0.7255])
**********************************************************************
File "../tensorkrowch/components.py", line ?, in default
Failed example:
Expand All @@ -105,24 +113,24 @@ Expected:
tensor([[ 1.5570, 1.8441, -0.0743],
[ 0.4572, 0.7592, 0.6356]])
Got:
tensor([[ 1.2801, 1.3139, 0.4513],
[ 0.7149, 0.3856, -1.2216]])
tensor([[ 1.5611, -0.1317, -1.2049],
[-0.8746, 0.7130, -1.7564]])
**********************************************************************
File "../tensorkrowch/components.py", line ?, in default
Failed example:
node.norm()
Expected:
tensor(2.6495)
Got:
tensor(2.3918)
tensor(2.8748)
**********************************************************************
File "../tensorkrowch/components.py", line ?, in default
Failed example:
node.norm(axis='left')
Expected:
tensor([1.6227, 1.9942, 0.6399])
Got:
tensor([1.4662, 1.3693, 1.3023])
tensor([1.7894, 0.7251, 2.1299])
**********************************************************************
File "../tensorkrowch/components.py", line ?, in default
Failed example:
Expand Down Expand Up @@ -153,17 +161,17 @@ Got:
Node(
name: my_node
tensor:
tensor([[[-1.3330, 0.4759],
[ 0.1422, 0.4853],
[-0.9378, -1.1041],
[-0.2748, 1.0936],
[ 1.6150, 0.6636]],
tensor([[[-0.2232, -0.0576],
[-2.0650, -1.6126],
[ 0.3369, -0.6012],
[-1.5875, -0.0953],
[-0.3129, 0.5625]],

[[ 0.8413, -0.3186],
[ 1.4379, -1.1616],
[ 0.1578, 1.1674],
[ 1.0078, 0.3449],
[ 0.2533, -0.1433]]])
[[ 2.0660, -0.9154],
[ 0.0753, 0.9608],
[ 0.7278, -0.2497],
[ 0.9090, -0.5242],
[ 1.4432, 2.6149]]])
axes:
[left
input
Expand Down Expand Up @@ -202,17 +210,17 @@ Got:
Node(
name: node
tensor:
tensor([[[-1.6599, 0.1489],
[ 0.4144, -0.8230],
[ 0.3594, 0.3989],
[ 0.1742, -0.0642],
[-0.5957, 0.0385]],
tensor([[[-0.0399, 0.5602],
[-1.3402, 1.1127],
[ 0.0795, -1.6100],
[ 2.3359, 1.8294],
[-0.2258, -0.2929]],

[[ 0.8239, 2.0281],
[ 0.4090, 0.4273],
[-1.3040, -0.6414],
[ 0.4434, -0.3271],
[-1.3868, -0.5528]]])
[[ 0.2125, -1.1086],
[-0.6906, -0.8028],
[-1.4547, 0.0981],
[-1.5869, 0.2020],
[-0.5355, -0.1357]]])
axes:
[axis_0
axis_1
Expand Down Expand Up @@ -264,17 +272,17 @@ Got:
name: my_paramnode
tensor:
Parameter containing:
tensor([[[-2.1667, 0.3339],
[ 0.2398, 1.6009],
[ 0.8668, 1.3801],
[ 0.3775, 0.4095],
[ 0.0437, -2.8639]],
tensor([[[ 1.0837, 1.7036],
[-0.8799, -0.1600],
[-0.5867, -1.7778],
[ 0.1615, 1.0249],
[ 0.1880, 1.1234]],

[[ 0.8918, -1.7026],
[-1.5665, -1.6178],
[-0.9658, -1.6948],
[-0.2714, -0.3207],
[-0.9412, 1.4940]]], requires_grad=True)
[[ 0.7499, -0.7739],
[-0.5278, 1.1947],
[-0.7586, -1.4460],
[-0.1016, -0.1954],
[ 0.1579, 0.0572]]], requires_grad=True)
axes:
[left
input
Expand Down Expand Up @@ -315,17 +323,17 @@ Got:
name: paramnode
tensor:
Parameter containing:
tensor([[[-0.6358, -0.9761],
[ 0.4152, 0.1067],
[ 0.5606, 0.1967],
[-1.8301, -0.3721],
[ 0.3054, -2.2257]],
tensor([[[-0.7419, 0.3802],
[ 0.4183, 0.2084],
[-0.4384, -0.6852],
[-0.2616, -0.4692],
[ 0.4573, 2.0465]],

[[ 0.7897, 0.4629],
[ 0.2941, 0.5066],
[-0.4783, -0.5192],
[-0.2632, -0.8084],
[-0.5428, 0.5740]]], requires_grad=True)
[[ 0.5333, 0.6722],
[-0.9125, 0.1184],
[ 0.1689, -0.0498],
[-1.2576, 0.5516],
[-0.0805, -0.2896]]], requires_grad=True)
axes:
[axis_0
axis_1
Expand All @@ -344,8 +352,8 @@ Expected:
[ 1.3371, 1.4761, 0.6551]], requires_grad=True)
Got:
Parameter containing:
tensor([[-0.4497, -0.0874, 1.3775],
[-0.0598, -0.6410, 0.0374]], requires_grad=True)
tensor([[-1.4491, 0.7555, -1.2827],
[ 1.3534, -1.0071, 0.1320]], requires_grad=True)
**********************************************************************
File "../tensorkrowch/components.py", line ?, in default
Failed example:
Expand Down Expand Up @@ -396,22 +404,14 @@ Got:
data_0[feature] <-> nodeA[input]])
**********************************************************************
1 items had failures:
21 of 322 in default
322 tests in 1 items.
301 passed and 21 failed.
21 of 395 in default
395 tests in 1 items.
374 passed and 21 failed.
***Test Failed*** 21 failures.

Document: models
----------------
1 items passed all tests:
89 tests in default
89 tests in 1 items.
89 passed and 0 failed.
Test passed.

Doctest summary
===============
571 tests
731 tests
21 failures in tests
0 failures in setup code
0 failures in cleanup code
Binary file modified docs/_build/doctrees/api.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/components.doctree
Binary file not shown.
Binary file added docs/_build/doctrees/decompositions.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/embeddings.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/_build/doctrees/models.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/operations.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/tutorials/0_first_steps.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/_build/doctrees/tutorials/3_memory_management.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/tutorials/4_types_of_nodes.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/tutorials/5_subclass_tensor_network.doctree
Binary file not shown.
Binary file modified docs/_build/doctrees/tutorials/6_mix_with_pytorch.doctree
Binary file not shown.
9 changes: 8 additions & 1 deletion docs/_build/html/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,11 @@
Embeddings
</a>
</li>
<li class="toctree-l2">
<a class="reference internal" href="../decompositions.html">
Decompositions
</a>
</li>
</ul>
</li>
</ul>
Expand Down Expand Up @@ -283,10 +288,12 @@ <h1></h1>

<h1>All modules for which code is available</h1>
<ul><li><a href="tensorkrowch/components.html">tensorkrowch.components</a></li>
<li><a href="tensorkrowch/decompositions/svd_decompositions.html">tensorkrowch.decompositions.svd_decompositions</a></li>
<li><a href="tensorkrowch/embeddings.html">tensorkrowch.embeddings</a></li>
<li><a href="tensorkrowch/initializers.html">tensorkrowch.initializers</a></li>
<li><a href="tensorkrowch/models/mpo.html">tensorkrowch.models.mpo</a></li>
<li><a href="tensorkrowch/models/mps.html">tensorkrowch.models.mps</a></li>
<li><a href="tensorkrowch/models/mps_layer.html">tensorkrowch.models.mps_layer</a></li>
<li><a href="tensorkrowch/models/mps_data.html">tensorkrowch.models.mps_data</a></li>
<li><a href="tensorkrowch/models/peps.html">tensorkrowch.models.peps</a></li>
<li><a href="tensorkrowch/models/tree.html">tensorkrowch.models.tree</a></li>
<li><a href="tensorkrowch/operations.html">tensorkrowch.operations</a></li>
Expand Down
Loading

0 comments on commit 072bc74

Please sign in to comment.