This introduces the LPDO type. Currently it has pretty minimal functionality (see lpdo.jl for defined functions), but you can use the MPS/MPO underlying the LPDO L with L.X.
The main useful functions are ket(L, j) and bra(L, j), which return the bra and ket of the jth site. That means the density matrix on site j is basically ket(L, j) * bra(L, j). You can see how it is used in the lognormalize! function, but note that function could have simply been transcribed by using M = L.X and nothing would have needed to be changed.
The next goal would be to start using the LPDO type anywhere that is appropriate in the code, and add some new functionality where useful.
This introduces the LPDO type. Currently it has pretty minimal functionality (see
lpdo.jl
for defined functions), but you can use the MPS/MPO underlying the LPDOL
withL.X
.The main useful functions are
ket(L, j)
andbra(L, j)
, which return the bra and ket of thej
th site. That means the density matrix on sitej
is basicallyket(L, j) * bra(L, j)
. You can see how it is used in thelognormalize!
function, but note that function could have simply been transcribed by usingM = L.X
and nothing would have needed to be changed.The next goal would be to start using the LPDO type anywhere that is appropriate in the code, and add some new functionality where useful.