Back to Module 1 notes

These problems practise reading diagrams (Problem 1.1), counting contraction costs (Problem 1.2) and working with isometries and gauges (Problem 1.3, Problem 1.4). The last two, Problem 1.5 and Problem 1.6, go with the hands-on gaps in the notebooks.

Problem 1.1 (Warm-up: indices and diagrams).
  1. A tensor has shape and is stored in row-major order. At which position (counting from 1) of the flat list is the entry ? In column-major order?
  2. Draw the diagram of . How many open legs does it have, and what is its order?
  3. Draw and for three matrices and explain why the diagrams are the same.
Problem 1.2 (Cost of an expectation-value step).

In the MPS norm step of the notes, insert a one-site operator () between and :

  1. Find an order with total cost , and show that it never needs an intermediate with more than entries.
  2. Show that every order that contracts with before costs at least .
  3. In Module 4 the operator is a matrix product operator tensor with bond dimension , and gets a third leg . Generalize the good order and give its cost.
Problem 1.3 (Properties of isometries).

Let be an matrix with 𝟙 and .

  1. Show that for every , and that is an orthogonal projector of rank . When is 𝟙?
  2. Let and be left isometries across the cuts and . Show that their contraction is a left isometry across . Draw the diagram of the proof.
Problem 1.4 (Spectra survive isometries).

Let across a bond, where is a left isometry (, 𝟙) and is .

  1. Show that and have the same nonzero singular values.
  2. Show that for any invertible the singular values of are the same as those of , but that the singular values of are in general not those of .
  3. Explain why this makes QR (rather than SVD) enough to bring a network into a form where the singular values across one bond can be read off from a single small tensor.
Problem 1.5 (Hands-on 1.2 and 1.3: contractions by hand).

In Hands-on 1.2 you implemented contract_by_matmul for with shapes and , and in Hands-on 1.3 the function pair_cost.

  1. What does pair_cost return for this contraction, and what are the shapes of the two matrices that get multiplied?
  2. Suppose you fused on but on . Would the code fail? What would the result be?
  3. Hands-on 1.3 prints cost ratios at for . What are the ratios for , and why does the bad order become relatively less bad as grows at fixed ?
Problem 1.6 (Hands-on 1.5 and 1.6: gauge and dense Hamiltonian).
  1. In Hands-on 1.5, gauge_fix_left returns with for a bond of dimension 4. Show that for every left isometry.
  2. In Hands-on 1.6, how many terms does ising_hamiltonian add for sites, and how much memory does the dense take for and in Float64?
  3. The notebooks check against with the bidiagonal matrix with on the diagonal and above it. For , verify this formula by hand.
1.
Pfeuty P. The one-dimensional Ising model with a transverse field. Annals of Physics. 1970;57(1):79–90.