Skip to content

Details of the spin adaptation in block2 #70

Answered by hczhai
bogdanoff asked this question in Q&A
Discussion options

You must be logged in to vote

Strangely, the very last CSF in my example: ---++- that goes to uu|ddduud (uu| represent the singlet embedding here) still gives a bad label, as after third real electron S13=(((1-1/2)-1/2)-1/2) would be -1/2.

The CSF output from block2 will not make sense if you use reorder=np.array([0,3,1,4,2,5]) in get_qc_mpo. This orbital reordering feature is not compatible with the CSF because as you know adjusting the CSF orbital order is a non-trivial thing. If you really need this orbital reordering, you can do that on your integrals before you put them into block2, as the following:

idx = np.array([0,3,1,4,2,5])
h1e = h1e[idx][:, idx]
g2e = g2e[idx][:, idx][:, :, idx][:, :, :, idx]

I think as…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@bogdanoff
Comment options

Comment options

You must be logged in to vote
2 replies
@bogdanoff
Comment options

@hczhai
Comment options

Answer selected by bogdanoff
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