Skip to content

Fixed an bug in optimize_peps_unitcell #5

Merged
JanLuca merged 1 commit into
variPEPS:mainfrom
MPMPMPMPMPMPMP:bug_fix_optimize_peps_unitcell
Nov 6, 2025
Merged

Fixed an bug in optimize_peps_unitcell #5
JanLuca merged 1 commit into
variPEPS:mainfrom
MPMPMPMPMPMPMP:bug_fix_optimize_peps_unitcell

Conversation

@MPMPMPMPMPMPMP

@MPMPMPMPMPMPMP MPMPMPMPMPMPMP commented Oct 24, 2025

Copy link
Copy Markdown
Contributor

This pull request fixes a bug when restarting with restart_from_state_file in the nonspiral peps case.

♻️ Found restartable state: autosave_j1jchi_chiB_5_jchi_0.85.hdf5.restartable. Restarting...
Traceback (most recent call last):
  File "/home/t30/bra/ge65gos/qmb-ml/peps_calculation/simulations/run_j1_jchi_simulation.py", line 162, in <module>
    result = varipeps.optimization.restart_from_state_file(restart_state_file)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/space-nobackup/ge65gos/jax_cuda12/lib/python3.12/site-packages/varipeps/optimization/optimizer.py", line 1524, in restart_from_state_file
    return optimize_peps_unitcell(
           ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: optimize_peps_unitcell() got an unexpected keyword argument 'restart_state'

@MPMPMPMPMPMPMP
MPMPMPMPMPMPMP marked this pull request as ready for review October 24, 2025 08:51
@JanLuca
JanLuca merged commit b67cbbf into variPEPS:main Nov 6, 2025
1 check failed
@MPMPMPMPMPMPMP
MPMPMPMPMPMPMP deleted the bug_fix_optimize_peps_unitcell branch November 6, 2025 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants