construct_orthogonal

tenpy.algorithms.plane_wave_excitation.construct_orthogonal(M, left=True)[source]

find (left) orthogonal complement of tensor M

It finds Q such that:

.--Q --
|  |
|  |    = 0
|  |
.--M --

if left==False, find the right complement accordingly.

Parameters:
  • M (list of Array) – Array for which we want to find the orthogonal complement, labels are vL, vR, p (in any order).

  • left (bool) – Whether we want to compute the left or right complement.

Returns:

Q – The orthogonal complement, such that the relation above is fulfilled.

Return type:

Array