Skip to content

Converting from SAnySU2 to SZ #115

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

You must be logged in to vote

You can use the following script to do the translation from SAnySU2 to SAnySZ, which requires a few modifications compared with the one provided in the documentation:

  1. Add AbelianPG symmetry subgroup in the driver.set_symmetry_groups.
  2. Use an alternative argument list in driver.initialize_system to set the spin/projected spin explicitly via spin.
  3. Add argument add_ident=False in driver.get_mpo.

After switching to the symmetry mode SAnySZ, use driver.initialize_system to set the desired TWO_SZ = TWO_S via the spin parameter. Then the MPO and MPS can be translated from SAnySU2 to SAnySZ using driver.mpo_change_symm and driver.mps_change_symm. The translated objects should only be used the SA…

Replies: 1 comment 3 replies

Comment options

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

@hczhai
Comment options

@Shovan-Physics
Comment options

Answer selected by Shovan-Physics
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