append_right_env
full name: tenpy.algorithms.plane_wave_excitation.append_right_env
parent module:
tenpy.algorithms.plane_wave_excitation
type: function
- tenpy.algorithms.plane_wave_excitation.append_right_env(As, Bs, R, Ws=None)[source]
Contract all tensors in As and Bs to the right environment R.
If Ws given, contract as a MPO environment.
- Parameters:
As (list of
Array
) – Arrays to add to the top leg of the environment, labels arevL, vR, p
(in any order).Bs (list of
Array
) – Arrays to add to the bottom leg of the environment, labels arevL, vR, p
(in any order).R (
Array
) – Initial right environment, labels arevL, vR
(in any order), if ‘Ws’ is None, otherwise also need a legwL
Ws (list of
Array
) – Arrays to add to the middle leg of the environment, labels arewL, wR, p, p*
(in any order).
- Returns:
temp – The new environment with the tensors above included.
- Return type: