Skip to content

Commit

Permalink
add quantum number tutorial
Browse files Browse the repository at this point in the history
fix mps random quantum number
  • Loading branch information
liwt31 committed Jul 26, 2024
1 parent 43cd801 commit 49a95b7
Show file tree
Hide file tree
Showing 7 changed files with 465 additions and 6 deletions.
2 changes: 2 additions & 0 deletions doc/source/applications.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Application Tutorials
=====================

More tutorials are coming!

.. toctree::
tutorials/1D-Heisenberg.ipynb

Expand Down
3 changes: 1 addition & 2 deletions doc/source/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ please refer to the :doc:`applications`.
tutorials/define_model.ipynb
tutorials/mps_mpo.ipynb
tutorials/compress_mps.ipynb
tutorials/quantum_number.ipynb
tutorials/ttn_basic.ipynb

..
setting quantum number
compress mps (done)
finding the ground state
time evolution by hand forward Euler
time evolutions in production
Empty file removed doc/source/tutorials/.gitkeep
Empty file.
6 changes: 3 additions & 3 deletions doc/source/tutorials/compress_mps.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"source": [
"# Compressing MPS\n",
"## Overview\n",
"MPS can efficiently compress the system wavefunction."
"In this notebook we will show how to compress the wavefuntion stored in an MPS via singular value decomposition (SVD)."
]
},
{
Expand All @@ -20,7 +20,7 @@
"The model we use is a Frenkel-Holstein model with 3 electronic sites and 2 vibration modes for each electronic site\n",
"\n",
"$$\n",
"\\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",
"\\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",
"$$\n",
"\n",
"Therefore, the model has 9 sites in total. 3 of them are electronic sites and the rest are vibrational sites."
Expand Down Expand Up @@ -504,4 +504,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
Loading

0 comments on commit 49a95b7

Please sign in to comment.