Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add LPDO type #67

Merged
merged 4 commits into from
Sep 22, 2020
Merged

Add LPDO type #67

merged 4 commits into from
Sep 22, 2020

Conversation

mtfishman
Copy link
Collaborator

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.

@mtfishman mtfishman merged commit d179f09 into master Sep 22, 2020
@mtfishman mtfishman deleted the lpdo branch September 22, 2020 16:07
@mtfishman mtfishman mentioned this pull request Sep 22, 2020
15 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant