Skip to content

Calculating reduced density matrix of each site #123

Answered by hczhai
Shovan-Physics asked this question in Q&A
Discussion options

You must be logged in to vote

You can simply do

dms = driver.get_npdm(mps, npdm_expr=['N', 'M', 'L', 'K', 'J', 'I'], fermionic_ops='')

which will generate results of

dms = [
    *driver.get_npdm(mps, npdm_expr='N', fermionic_ops=''),
    *driver.get_npdm(mps, npdm_expr='M', fermionic_ops=''),
    ...
    *driver.get_npdm(mps, npdm_expr='I', fermionic_ops=''),
]

at one time.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Shovan-Physics
Comment options

@hczhai
Comment options

Answer selected by Shovan-Physics
@Shovan-Physics
Comment options

@hczhai
Comment options

@Shovan-Physics
Comment options

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