Skip to content

Commit

Permalink
change size of images
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilianoG-byte committed Oct 26, 2024
1 parent 876e71e commit 83608d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demonstrations/tutorial_tn_basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@
#
# .. figure:: ../_static/demonstration_assets/tn_basics/12-expectation-local.png
# :align: center
# :width: 45%
# :width: 60%
#
# Then, the sections outside of the light cone (grayed-out gates in the figure above) can be ignored since these are contractions resulting in the identity: :math:`G G^\dagger = I`. This helps us decrease the size of the tensor to be contracted, and consequently, the computational expense, by focusing on the section of the circuit with support inside the light cone of the observable - i.e., the gates that affect the calculation of the expectation value.
#
Expand Down Expand Up @@ -422,7 +422,7 @@
#
# .. figure:: ../_static/demonstration_assets/tn_basics/13-sample.png
# :align: center
# :width: 45%
# :width: 60%
# .. note::
# In this diagram, we have extracted the diagonal of the reduced density matrix by contracting it with the COPY tensor introduced earlier in this tutorial!
#
Expand All @@ -437,7 +437,7 @@
#
# .. figure:: ../_static/demonstration_assets/tn_basics/14-sample-cntd.png
# :align: center
# :width: 45%
# :width: 60%
#
# Analogously as done with the expectation values, these contractions only involve the sections of the circuit within the light cone of **both** the projection with :math:`| \hat{x}_1 \rangle` and the contraction with the COPY tensor (diagonal computation). This procedure can be repeated recursively using the chain rule equation until we obtain the full bitstring :math:`(\hat{x}_1, \hat{x}_2, \hat{x}_3, \ldots, \hat{x}_N)`. To obtain more samples, we repeat the procedure from the beginning - this is what makes every sample memoryless or a perfect sample from the probability distribution.
#
Expand Down

0 comments on commit 83608d4

Please sign in to comment.