Skip to content

Specify sites in npdm #155

Answered by hczhai
cfengno1 asked this question in Q&A
Jan 27, 2025 · 1 comments · 1 reply

You must be logged in to vote

With block2==0.5.4rc2, you can now use the index_masks argument in DMRGDriver.get_npdm to set the desired range of sites for each operator in the correlation function. Detailed example can be found in the updated documentation: https://block2.readthedocs.io/en/latest/tutorial/custom-hamiltonians.html#Correlation-Functions.

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@cfengno1

Answer selected by cfengno1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants