You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/mpsBasics.jl
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -540,12 +540,12 @@ Apply an operator O on the MPS A. O is acting on only one site ::Int. The result
540
540
apply1siteoperator!(A, O, site::Int) =apply1siteoperator!(A, O, [site])
541
541
542
542
"""
543
-
applympo!(A, H)
543
+
applympo!(A, H; SVD=false, kwargs...)
544
544
545
-
Apply an MPO H on the MPS A. H must have the same number of site than A. The resulting MPS A is the MPS modified by the MPO H.
545
+
Apply an MPO H on the MPS A. H must have the same number of site than A. The resulting MPS A is the MPS modified by the MPO H. The argument SVD can be set to true if one wants the MPS to recover the same dimensions after having applied the MPO H. Further parameters for the SVD truncation can be added with the kwargs.
546
546
547
547
"""
548
-
functionapplympo!(A, H)
548
+
functionapplympo!(A, H ; SVD=false, kwargs...)
549
549
N =length(H)
550
550
N ==length(A) ||throw(ArgumentError("MPO has $N site while MPS has $(length(A)) sites"))
0 commit comments