Skip to content

Commit 49a95b7

Browse files
committed
add quantum number tutorial
fix mps random quantum number
1 parent 43cd801 commit 49a95b7

File tree

7 files changed

+465
-6
lines changed

7 files changed

+465
-6
lines changed

doc/source/applications.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Application Tutorials
22
=====================
33

4+
More tutorials are coming!
5+
46
.. toctree::
57
tutorials/1D-Heisenberg.ipynb
68

doc/source/tutorial.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ please refer to the :doc:`applications`.
99
tutorials/define_model.ipynb
1010
tutorials/mps_mpo.ipynb
1111
tutorials/compress_mps.ipynb
12+
tutorials/quantum_number.ipynb
1213
tutorials/ttn_basic.ipynb
1314

1415
..
15-
setting quantum number
16-
compress mps (done)
1716
finding the ground state
1817
time evolution by hand forward Euler
1918
time evolutions in production

doc/source/tutorials/.gitkeep

Whitespace-only changes.

doc/source/tutorials/compress_mps.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"source": [
88
"# Compressing MPS\n",
99
"## Overview\n",
10-
"MPS can efficiently compress the system wavefunction."
10+
"In this notebook we will show how to compress the wavefuntion stored in an MPS via singular value decomposition (SVD)."
1111
]
1212
},
1313
{
@@ -20,7 +20,7 @@
2020
"The model we use is a Frenkel-Holstein model with 3 electronic sites and 2 vibration modes for each electronic site\n",
2121
"\n",
2222
"$$\n",
23-
"\\hat H = \\sum_{i=1}^3\\sum_{j=1}^3 J_{ij} \\hat a^\\dagger_i a_{i+1} + \\sum_{i=1}^3\\sum_{k=1,2}\\frac{1}{2} (\\hat p_{ik}^2 + \\omega_k^2 \\hat x_{ik}^2) + \\sum_{i=1}^3\\sum_{k=1,2} \\hat a^\\dagger_i \\hat a_i \\hat x_{ik}\n",
23+
"\\hat H = \\sum_{i=1}^3\\sum_{j=1}^3 J_{ij} \\hat a^\\dagger_i \\hat a_{i+1} + \\sum_{i=1}^3\\sum_{k=1,2}\\frac{1}{2} (\\hat p_{ik}^2 + \\omega_k^2 \\hat x_{ik}^2) + \\sum_{i=1}^3\\sum_{k=1,2} \\hat a^\\dagger_i \\hat a_i \\hat x_{ik}\n",
2424
"$$\n",
2525
"\n",
2626
"Therefore, the model has 9 sites in total. 3 of them are electronic sites and the rest are vibrational sites."
@@ -504,4 +504,4 @@
504504
},
505505
"nbformat": 4,
506506
"nbformat_minor": 5
507-
}
507+
}

0 commit comments

Comments
 (0)