Skip to content

Commit

Permalink
fix to_block2 bond_dim
Browse files Browse the repository at this point in the history
  • Loading branch information
hczhai committed May 22, 2024
1 parent 779dc80 commit 1834fab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyblock3/block2/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def to_block2(mps, center=None, basis=None, tag='KET', save_dir=None):
p.n_states[ix] = v
p.sort_states()
minfo.tag = tag
minfo.bond_dim = minfo.get_max_bond_dimension()
minfo.save_mutable()
minfo.save_data("%s/%s-mps_info.bin" % (save_dir, tag))
tensors = [None] * len(mps)
Expand Down

0 comments on commit 1834fab

Please sign in to comment.