Calculating reduced density matrix of each site #123
Answered
by
hczhai
Shovan-Physics
asked this question in
Q&A
-
Is there an efficient way to get the reduced density matrix of each site? For example, if I want the distribution over the local basis states (in the Bose-Hubbard model), currently I am defining projectors onto each of the basis states, forming MPO with each projector, and calculating their expectation values, which is rather clumsy and repetitive. |
Beta Was this translation helpful? Give feedback.
Answered by
hczhai
Sep 4, 2024
Replies: 1 comment 5 replies
-
This is solved in #122 using custom operators. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can simply do
which will generate results of
at one time.