PurificationTwoSiteU
full name: tenpy.algorithms.purification.PurificationTwoSiteU
parent module:
tenpy.algorithms.purification
type: class
Inheritance Diagram
Methods
|
|
Return the hermitian conjugate of self. |
|
Combine LP and RP with W to form LHeff and RHeff. |
|
Combine the legs of theta, such that it fits to how we combined the legs of self. |
|
|
Apply the effective Hamiltonian to theta. |
Contract self to a matrix. |
|
|
Equivalent to |
|
Equivalent to |
Class Attributes and Properties
|
|
|
- class tenpy.algorithms.purification.PurificationTwoSiteU(env, i0, combine=False, move_right=True)[source]
Bases:
TwoSiteH
Variant of TwoSiteH suitable for purification.
The MPO gets only applied to the physical legs p0, p1, the ancilla legs q0, q1 of theta are ignored.
- combine_Heff()[source]
Combine LP and RP with W to form LHeff and RHeff.
Combine LP with W0 and RP with W1 to get the effective parts of the Hamiltonian with piped legs.
- Parameters:
env (
MPOEnvironment
) – Environment for contraction<psi|H|psi>
.left (bool) – The mixer might need only one of LHeff/RHeff after the Lanczos optimization even for combine=True. These flags allow to calculate them specifically.
right (bool) – The mixer might need only one of LHeff/RHeff after the Lanczos optimization even for combine=True. These flags allow to calculate them specifically.
- combine_theta(theta)[source]
Combine the legs of theta, such that it fits to how we combined the legs of self.
- update_LP(env, i, U=None)[source]
Equivalent to
env.get_LP(i, store=True)
; optimized for combine.- Parameters:
env (
MPOEnvironment
) – The same environment as given during class initialization.i (int) – We update the part left of site i. Can optimize if i ==
i0
andcombine
is True.U (None |
Array
) – The tensor on the left-most site self acts on, with combined legs after SVD. Only used if trying to optimize.
- update_RP(env, i, VH=None)[source]
Equivalent to
env.get_RP(i, store=True)
; optimized for combine.- Parameters:
env (
MPOEnvironment
) – The same environment as given during class initialization.i (int) – We update the part right of site i. Can optimize if i ==
i0
+ 2 -length
andcombine
is True.U (None |
Array
) – The tensor on the right-most site self acts on, with combined legs after SVD. Only used if trying to optimize.