Solutions for the exercise_tenpy.ipynb
notebook
Uncomment and run the cells below (removing the #
) when running this notebook on https://colab.research.google.com.
Alternatively, you can run this notebook locally with jupyter, provided that you have the toycodes
subfolder from https://github.com/tenpy/tenpy_toycodes in the same folder as your notebook.
[1]:
#!pip install git+https://github.com/tenpy/tenpy_toycodes.git
#!pip install git+https://github.com/tenpy/tenpy.git
# use `pip uninstall tenpy-toycodes physics-tenpy` to remove them again.
You can add your code below by inserting additional cells as neccessary and running them (press Shift+Enter).
DISCLAIMER: Like for the toy codes, we only use very small bond dimensions here. For state-of-the-art MPS calculations (especially for cylinders towards 2D), chi
should be significantly larger, often on the order of several 1000s.
[2]:
import numpy as np
import scipy
import matplotlib.pyplot as plt
from pprint import pprint
np.set_printoptions(precision=5, suppress=True, linewidth=100)
plt.rcParams['figure.dpi'] = 150
[3]:
import tenpy
import tenpy.linalg.np_conserved as npc
from tenpy.algorithms import tebd, dmrg, tdvp
from tenpy.networks.site import SpinHalfSite, SpinSite, FermionSite
from tenpy.networks.mps import MPS
from tenpy.models.tf_ising import TFIChain
tenpy.tools.misc.setup_logging(to_stdout="INFO")
Overview
The source code of TeNPy is at https://github.com/tenpy/tenpy/; you can find links to the documentation and the forum in the Readme there.
The documentation is roughly split into the “User guide” (upper part in the left side-bar) and the reference of all the functions and classes (lower part).
Exercise(s)
Read the overview of the TeNPy documentation.
Whenever you hit an example code, try to copy it here and run it.
Try to modify it slightly and try to rerun it; for example try to calculate the overlap <v|v>
in the first example.
[ ]:
Initializing a Model
In TeNPy, the model defines the Hilbert space and local operators, and ultimately fixes whether charge conservation is used. Therefore, you should usually start with the initialization of the model. There are many predefined models in tenpy.models
, that you can often just use.
We will first initialize the transverse field Ising model. One advantage of TeNPy is that it can exploit (abelian) charge conservation for speedups, e.g. the transverse field Ising model preserves an overall spin parity. However, this requires the form
compared to the form
you might be more familiar with, where X and Z are exchanged.
In TeNPy, allmost all parmaters can be changed dynamically through options. Default parameters are written back into the dictionaries.
[4]:
model_params = {
'L': 20,
'g': 1.0,
'bc_MPS': 'finite',
'conserve': 'best'
}
model = TFIChain(model_params)
# you can now print the default parameters used:
print("used parameters, including default/not specified ones:")
pprint(model_params)
INFO : TFIChain: reading 'bc_MPS'='finite'
INFO : TFIChain: reading 'conserve'='best'
INFO : TFIChain: set conserve to parity
INFO : TFIChain: reading 'L'=20
INFO : TFIChain: reading 'g'=1.0
used parameters, including default/not specified ones:
{'J': 1.0,
'L': 20,
'bc_MPS': 'finite',
'bc_x': 'open',
'conserve': 'best',
'explicit_plus_hc': False,
'g': 1.0,
'helical_lattice': None,
'irregular_remove': None,
'lattice': <class 'tenpy.models.lattice.Chain'>,
'order': 'default',
'sort_charge': True,
'sort_mpo_legs': False}
Given the model, one can easily initialize a product state, e.g. for the Neel state:
[5]:
p_state = ['up', 'down'] * (model.lat.N_sites//2)
psi = MPS.from_product_state(model.lat.mps_sites(), p_state, bc=model.lat.bc_MPS)
Measuring expectation values is also similar to the toycode. However, we can even specify the local operators (defined in the sites) as strings:
[6]:
print("<sigmaz> = ", psi.expectation_value('Sigmaz'))
print("S = ", psi.entanglement_entropy())
<sigmaz> = [ 1. -1. 1. -1. 1. -1. 1. -1. 1. -1. 1. -1. 1. -1. 1. -1. 1. -1. 1. -1.]
S = [-0. -0. -0. -0. -0. -0. -0. -0. -0. -0. -0. -0. -0. -0. -0. -0. -0. -0. -0.]
Exercise
Check the Model.bond_energies for the Neel state and make sure it matches what you expect.
[7]:
E = model.bond_energies(psi)
print("energy Neel:", E)
energy Neel: [-0.5 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.5]
[ ]:
Running DMRG
Given the model and state, running DMRG isn’t hard. Again, there are many (default) parameters for fine-tuning, see this full option list for details.
[8]:
p_state = ['up'] * model.lat.N_sites
psi = MPS.from_product_state(model.lat.mps_sites(), p_state, bc=model.lat.bc_MPS)
algorithm_params = {
'trunc_params': {
'chi_max': 30,
'svd_min': 1.e-7,
},
'max_sweeps': 40,
}
eng = dmrg.TwoSiteDMRGEngine(psi, model, algorithm_params)
E, psi = eng.run()
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<2 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : Running sweep with optimization
INFO : trunc_params: reading 'chi_max'=30
INFO : trunc_params: reading 'svd_min'=1e-07
INFO : checkpoint after sweep 1
energy=-25.1067276087269597, max S=0.3801726459659301, age=20, norm_err=5.0e-02
Current memory usage 179.6MB, wall time: 0.3s
Delta E = nan, Delta S = 3.5048e-01 (per sweep)
max trunc_err = 0.0000e+00, max E_trunc = 1.7764e-14
chi: [2, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2]
================================================================================
INFO : Running sweep with optimization
INFO : checkpoint after sweep 2
energy=-25.1077971109764064, max S=0.4437610865877738, age=20, norm_err=3.0e-04
Current memory usage 184.6MB, wall time: 0.5s
Delta E = -1.0695e-03, Delta S = 4.3710e-02 (per sweep)
max trunc_err = 9.4252e-15, max E_trunc = 1.0303e-13
chi: [2, 4, 8, 12, 12, 13, 13, 14, 14, 14, 14, 14, 13, 13, 12, 12, 8, 4, 2]
================================================================================
INFO : Running sweep with optimization
INFO : checkpoint after sweep 3
energy=-25.1077971116230536, max S=0.4437994303032050, age=20, norm_err=1.4e-09
Current memory usage 184.6MB, wall time: 0.4s
Delta E = -6.4665e-10, Delta S = 4.8294e-05 (per sweep)
max trunc_err = 1.0310e-14, max E_trunc = 1.1013e-13
chi: [2, 4, 8, 12, 14, 15, 16, 17, 17, 17, 17, 17, 16, 15, 14, 12, 8, 4, 2]
================================================================================
INFO : Running sweep with optimization
INFO : checkpoint after sweep 4
energy=-25.1077971116230216, max S=0.4437994305844242, age=20, norm_err=2.5e-11
Current memory usage 184.6MB, wall time: 0.3s
Delta E = 3.1974e-14, Delta S = 2.6614e-10 (per sweep)
max trunc_err = 1.0073e-14, max E_trunc = 1.0303e-13
chi: [2, 4, 8, 12, 14, 15, 16, 17, 17, 17, 17, 17, 16, 15, 14, 12, 8, 4, 2]
================================================================================
INFO : TwoSiteDMRGEngine finished after 4 sweeps, max chi=17
[ ]:
Exercise
Run DMRG for 'infinite'
MPS. (You need to initialize a new model, state, and DMRG engine for this.)
[9]:
from tenpy_toycodes import tfi_exact
print("E_exact =", tfi_exact.infinite_gs_energy(model_params['J'], model_params['g']))
E_exact = -1.2732395447351628
[10]:
model_params = {
'L': 2,
'g': 1.2,
'bc_MPS': 'infinite',
'conserve': 'best'
}
model = TFIChain(model_params)
p_state = ['up', 'up'] * (model.lat.N_sites // 2)
psi = MPS.from_product_state(model.lat.mps_sites(), p_state, bc=model.lat.bc_MPS)
algorithm_params = {
'trunc_params': {
'chi_max': 30,
'svd_min': 1.e-7,
},
'max_sweeps': 40,
}
eng = dmrg.TwoSiteDMRGEngine(psi, model, algorithm_params)
E, psi = eng.run()
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'conserve'='best'
INFO : TFIChain: set conserve to parity
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'g'=1.2
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<2 options>, 'trunc_params')
INFO : start environment_sweep
INFO : trunc_params: reading 'chi_max'=30
INFO : trunc_params: reading 'svd_min'=1e-07
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.4196192748980927, max S=0.2533554616662522, age=128, norm_err=1.1e-11
Current memory usage 185.0MB, wall time: 0.6s
Delta E = nan, Delta S = 2.5336e-02 (per sweep)
max trunc_err = 8.2990e-15, max E_trunc = 7.1054e-14
chi: [18, 18]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.4196192748981957, max S=0.2533554579159368, age=248, norm_err=4.7e-13
Current memory usage 185.0MB, wall time: 0.4s
Delta E = -1.0303e-14, Delta S = -3.5819e-10 (per sweep)
max trunc_err = 3.0692e-15, max E_trunc = 2.2737e-13
chi: [18, 18]
================================================================================
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=18
[ ]:
Exercise
Reproduce the phase-diagram plot of the transverse field Ising model from the toy code noteboook with TeNPy.
[11]:
#gs = [0.1, 0.5, 1.0, 1.5, 2.0]
gs = np.linspace(0., 2., 21)
entropies = []
vals_X = []
vals_Z = []
corrs_XX = []
for g in gs:
model = TFIChain({'L': 2, 'J': 1., 'g': g, 'bc_MPS': 'infinite'})
psi = MPS.from_product_state(model.lat.mps_sites(), ['up', 'up'], bc=model.lat.bc_MPS)
eng = dmrg.TwoSiteDMRGEngine(psi, model, algorithm_params)
E, psi = eng.run()
entropies.append(np.max(psi.entanglement_entropy()))
vals_X.append(np.mean(psi.expectation_value("Sigmax")))
vals_Z.append(np.mean(psi.expectation_value("Sigmaz")))
corrs_XX.append(psi.correlation_function("Sigmax", "Sigmax", [0], [20]).item())
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=0.0
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-0.9999999999999876, max S=0.6931471805599453, age=128, norm_err=3.6e-16
Current memory usage 185.0MB, wall time: 0.4s
Delta E = nan, Delta S = 6.9315e-02 (per sweep)
max trunc_err = 1.8938e-29, max E_trunc = 2.8422e-14
chi: [2, 2]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.0000000000000000, max S=0.6931471805599453, age=248, norm_err=6.6e-16
Current memory usage 185.0MB, wall time: 0.3s
Delta E = -1.2434e-15, Delta S = 1.1102e-17 (per sweep)
max trunc_err = 3.2056e-28, max E_trunc = 2.8422e-14
chi: [2, 2]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=2
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=0.1
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.0025015664216497, max S=0.6931533932074605, age=128, norm_err=6.0e-16
Current memory usage 185.0MB, wall time: 0.4s
Delta E = nan, Delta S = 6.9315e-02 (per sweep)
max trunc_err = 1.2209e-19, max E_trunc = -1.4211e-14
chi: [6, 6]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.0025015664216674, max S=0.6931533932074605, age=248, norm_err=4.7e-16
Current memory usage 185.0MB, wall time: 0.4s
Delta E = -1.7764e-15, Delta S = 0.0000e+00 (per sweep)
max trunc_err = 1.2209e-19, max E_trunc = 8.5265e-14
chi: [6, 6]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=6
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=0.2
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.0100252539845336, max S=0.6932314274512771, age=128, norm_err=5.7e-16
Current memory usage 185.0MB, wall time: 0.4s
Delta E = nan, Delta S = 6.9323e-02 (per sweep)
max trunc_err = 5.3784e-16, max E_trunc = 5.6843e-14
chi: [6, 6]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.0100252539845194, max S=0.6932314274512774, age=248, norm_err=7.2e-16
Current memory usage 185.0MB, wall time: 0.4s
Delta E = 1.4211e-15, Delta S = 1.1102e-17 (per sweep)
max trunc_err = 5.3784e-16, max E_trunc = 2.5580e-13
chi: [6, 6]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=6
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=0.30000000000000004
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.0226295149208315, max S=0.6935386402717896, age=128, norm_err=5.0e-16
Current memory usage 185.0MB, wall time: 0.4s
Delta E = nan, Delta S = 6.9354e-02 (per sweep)
max trunc_err = 2.1301e-18, max E_trunc = 2.8422e-14
chi: [10, 10]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.0226295149208582, max S=0.6935386402717894, age=248, norm_err=4.3e-16
Current memory usage 185.0MB, wall time: 0.4s
Delta E = -2.6645e-15, Delta S = -2.2204e-17 (per sweep)
max trunc_err = 2.1293e-18, max E_trunc = 1.1369e-13
chi: [10, 10]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=10
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=0.4
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.0404170862358306, max S=0.6943390143741394, age=128, norm_err=3.1e-16
Current memory usage 185.0MB, wall time: 0.5s
Delta E = nan, Delta S = 6.9434e-02 (per sweep)
max trunc_err = 2.7674e-16, max E_trunc = 4.2633e-14
chi: [10, 10]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.0404170862358448, max S=0.6943390143741366, age=248, norm_err=4.5e-16
Current memory usage 185.0MB, wall time: 0.4s
Delta E = -1.4211e-15, Delta S = -2.6645e-16 (per sweep)
max trunc_err = 2.7671e-16, max E_trunc = 8.5265e-14
chi: [10, 10]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=10
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=0.5
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.0635444099732894, max S=0.6960673544686018, age=128, norm_err=1.3e-15
Current memory usage 185.0MB, wall time: 0.6s
Delta E = nan, Delta S = 6.9607e-02 (per sweep)
max trunc_err = 1.7288e-14, max E_trunc = 1.2790e-13
chi: [10, 10]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.0635444099732965, max S=0.6960673544686027, age=248, norm_err=6.4e-16
Current memory usage 185.0MB, wall time: 0.4s
Delta E = -7.1054e-16, Delta S = 1.1102e-17 (per sweep)
max trunc_err = 1.7288e-14, max E_trunc = 2.5580e-13
chi: [10, 10]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=10
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=0.6000000000000001
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.0922385835546802, max S=0.6994879401171228, age=128, norm_err=1.1e-12
Current memory usage 185.0MB, wall time: 0.5s
Delta E = nan, Delta S = 6.9949e-02 (per sweep)
max trunc_err = 5.8990e-16, max E_trunc = 9.9476e-14
chi: [14, 14]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.0922385835547104, max S=0.6994879401139107, age=248, norm_err=1.4e-15
Current memory usage 185.0MB, wall time: 0.4s
Delta E = -3.0198e-15, Delta S = -3.1682e-13 (per sweep)
max trunc_err = 5.8569e-16, max E_trunc = 5.6843e-14
chi: [14, 14]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=14
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=0.7000000000000001
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.1268286675867110, max S=0.7061087635473746, age=128, norm_err=2.8e-10
Current memory usage 185.1MB, wall time: 0.7s
Delta E = nan, Delta S = 7.0611e-02 (per sweep)
max trunc_err = 3.6156e-14, max E_trunc = 3.2685e-13
chi: [14, 14]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.1268286675867074, max S=0.7061087635454684, age=248, norm_err=4.7e-12
Current memory usage 185.1MB, wall time: 0.4s
Delta E = 3.5527e-16, Delta S = -2.2690e-13 (per sweep)
max trunc_err = 3.6287e-14, max E_trunc = 1.9895e-13
chi: [14, 14]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=14
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=0.8
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.1678095085200866, max S=0.7195176104083805, age=128, norm_err=6.2e-07
Current memory usage 185.1MB, wall time: 0.9s
Delta E = nan, Delta S = 7.1952e-02 (per sweep)
max trunc_err = 1.0953e-14, max E_trunc = 8.5265e-14
chi: [20, 20]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.1678095085206195, max S=0.7195176070670133, age=248, norm_err=1.1e-11
Current memory usage 185.1MB, wall time: 0.5s
Delta E = -5.3291e-14, Delta S = -3.2747e-10 (per sweep)
max trunc_err = 1.1270e-14, max E_trunc = 2.2737e-13
chi: [20, 20]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=20
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=0.9
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.2160008125853174, max S=0.7519468029822934, age=128, norm_err=3.4e-04
Current memory usage 185.2MB, wall time: 1.3s
Delta E = nan, Delta S = 7.5195e-02 (per sweep)
max trunc_err = 2.9205e-14, max E_trunc = 1.8474e-13
chi: [28, 28]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.2160009141091805, max S=0.7519576071235309, age=248, norm_err=6.3e-07
Current memory usage 185.2MB, wall time: 0.6s
Delta E = -1.0152e-08, Delta S = 1.1781e-06 (per sweep)
max trunc_err = 3.5601e-14, max E_trunc = 3.6948e-13
chi: [28, 28]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 30
energy=-1.2160009141093937, max S=0.7519576064599220, age=368, norm_err=4.1e-10
Current memory usage 185.2MB, wall time: 0.5s
Delta E = -2.1316e-14, Delta S = -6.6153e-11 (per sweep)
max trunc_err = 3.5579e-14, max E_trunc = 5.1159e-13
chi: [28, 28]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
WARNING : final DMRG state not in canonical form up to norm_tol_final=1.00e-10: norm_err=4.10e-10, calling psi.canonical_form()
INFO : TwoSiteDMRGEngine finished after 30 sweeps, max chi=28
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=1.0
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.2732297890099282, max S=0.5971035591719230, age=128, norm_err=1.1e-03
Current memory usage 186.1MB, wall time: 1.4s
Delta E = nan, Delta S = 5.9652e-02 (per sweep)
max trunc_err = 1.7558e-13, max E_trunc = 1.1511e-12
chi: [30, 30]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.2732371980492445, max S=0.6572441210426316, age=248, norm_err=6.3e-04
Current memory usage 186.1MB, wall time: 1.5s
Delta E = -7.4090e-07, Delta S = 6.0398e-03 (per sweep)
max trunc_err = 1.5790e-11, max E_trunc = 1.0863e-10
chi: [30, 30]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 30
energy=-1.2732385093268732, max S=0.6913736184304597, age=368, norm_err=4.3e-04
Current memory usage 186.1MB, wall time: 1.1s
Delta E = -1.3113e-07, Delta S = 3.4235e-03 (per sweep)
max trunc_err = 7.7952e-11, max E_trunc = 5.2444e-10
chi: [30, 30]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 40
energy=-1.2732389584486441, max S=0.7153001857892691, age=488, norm_err=3.1e-04
Current memory usage 186.1MB, wall time: 1.0s
Delta E = -4.4912e-08, Delta S = 2.3984e-03 (per sweep)
max trunc_err = 1.8536e-10, max E_trunc = 1.2327e-09
chi: [30, 30]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 50
energy=-1.2732391631032840, max S=0.7336286065757368, age=608, norm_err=2.6e-04
Current memory usage 186.2MB, wall time: 1.0s
Delta E = -2.0465e-08, Delta S = 1.8361e-03 (per sweep)
max trunc_err = 3.2966e-10, max E_trunc = 2.1773e-09
chi: [30, 30]
================================================================================
INFO : TwoSiteDMRGEngine: Maximum number of sweeps reached
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
WARNING : final DMRG state not in canonical form up to norm_tol=1.00e-05: norm_err=2.59e-04
INFO : start environment_sweep
INFO : start environment_sweep
INFO : start environment_sweep
INFO : start environment_sweep
INFO : start environment_sweep
WARNING : norm_err=1.20e-04 still too high after environment_sweeps
WARNING : final DMRG state not in canonical form up to norm_tol_final=1.00e-10: norm_err=1.20e-04, calling psi.canonical_form()
INFO : TwoSiteDMRGEngine finished after 50 sweeps, max chi=30
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=1.1
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.3428640227104331, max S=0.3288520937710588, age=128, norm_err=4.2e-08
Current memory usage 186.4MB, wall time: 0.5s
Delta E = nan, Delta S = 3.2885e-02 (per sweep)
max trunc_err = 2.5706e-14, max E_trunc = 2.7001e-13
chi: [21, 21]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.3428640227248962, max S=0.3288579906557418, age=248, norm_err=1.2e-11
Current memory usage 186.4MB, wall time: 0.4s
Delta E = -1.4463e-12, Delta S = 5.9286e-07 (per sweep)
max trunc_err = 1.1620e-14, max E_trunc = 3.4106e-13
chi: [23, 23]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=23
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=1.2000000000000002
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.4196192748981389, max S=0.2533554504140749, age=128, norm_err=3.2e-12
Current memory usage 186.4MB, wall time: 0.6s
Delta E = nan, Delta S = 2.5336e-02 (per sweep)
max trunc_err = 3.0808e-15, max E_trunc = 1.5632e-13
chi: [18, 18]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.4196192748981176, max S=0.2533554550942212, age=248, norm_err=2.3e-13
Current memory usage 186.4MB, wall time: 0.4s
Delta E = 2.1316e-15, Delta S = 4.6803e-10 (per sweep)
max trunc_err = 3.0695e-15, max E_trunc = 1.1369e-13
chi: [18, 18]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=18
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=1.3
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.5008232436750006, max S=0.2083921498908414, age=128, norm_err=3.9e-15
Current memory usage 186.4MB, wall time: 0.6s
Delta E = nan, Delta S = 2.0839e-02 (per sweep)
max trunc_err = 6.7131e-15, max E_trunc = 1.9895e-13
chi: [14, 14]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.5008232436749154, max S=0.2083921498260568, age=248, norm_err=3.5e-15
Current memory usage 186.4MB, wall time: 0.4s
Delta E = 8.5265e-15, Delta S = -6.4548e-12 (per sweep)
max trunc_err = 6.7132e-15, max E_trunc = 4.5475e-13
chi: [14, 14]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=14
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=1.4000000000000001
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.5851883000538649, max S=0.1770262955818578, age=128, norm_err=1.0e-15
Current memory usage 186.4MB, wall time: 0.5s
Delta E = nan, Delta S = 1.7703e-02 (per sweep)
max trunc_err = 1.4421e-15, max E_trunc = 1.4211e-13
chi: [13, 13]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.5851883000539289, max S=0.1770262953885177, age=248, norm_err=7.9e-16
Current memory usage 186.4MB, wall time: 0.4s
Delta E = -6.3949e-15, Delta S = -1.9113e-11 (per sweep)
max trunc_err = 1.4422e-15, max E_trunc = 1.7053e-13
chi: [13, 13]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=13
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=1.5
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.6719262215360580, max S=0.1534912554933933, age=128, norm_err=7.5e-16
Current memory usage 186.4MB, wall time: 0.5s
Delta E = nan, Delta S = 1.5349e-02 (per sweep)
max trunc_err = 6.6099e-15, max E_trunc = 1.1369e-13
chi: [11, 11]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.6719262215360402, max S=0.1534912555064842, age=248, norm_err=3.5e-16
Current memory usage 186.4MB, wall time: 0.4s
Delta E = 1.7764e-15, Delta S = 1.3397e-12 (per sweep)
max trunc_err = 6.6097e-15, max E_trunc = 2.8422e-13
chi: [11, 11]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=11
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=1.6
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.7605081222044916, max S=0.1350487934858974, age=128, norm_err=5.1e-16
Current memory usage 186.4MB, wall time: 0.4s
Delta E = nan, Delta S = 1.3505e-02 (per sweep)
max trunc_err = 1.2673e-15, max E_trunc = 1.4211e-13
chi: [11, 11]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.7605081222044703, max S=0.1350487935013817, age=248, norm_err=1.0e-15
Current memory usage 186.4MB, wall time: 0.4s
Delta E = 2.1316e-15, Delta S = 1.5515e-12 (per sweep)
max trunc_err = 1.2673e-15, max E_trunc = 6.2528e-13
chi: [11, 11]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=11
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=1.7000000000000002
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.8505593362793391, max S=0.1201649555165644, age=128, norm_err=4.4e-16
Current memory usage 186.4MB, wall time: 0.5s
Delta E = nan, Delta S = 1.2016e-02 (per sweep)
max trunc_err = 1.0356e-14, max E_trunc = 1.7053e-13
chi: [9, 9]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.8505593362795025, max S=0.1201649555165523, age=248, norm_err=6.4e-16
Current memory usage 186.4MB, wall time: 0.5s
Delta E = -1.6342e-14, Delta S = -1.8388e-15 (per sweep)
max trunc_err = 1.0356e-14, max E_trunc = 1.1369e-13
chi: [9, 9]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=9
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=1.8
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-1.9418043043913258, max S=0.1078900285324667, age=128, norm_err=5.0e-16
Current memory usage 186.4MB, wall time: 0.6s
Delta E = nan, Delta S = 1.0789e-02 (per sweep)
max trunc_err = 3.0124e-15, max E_trunc = 5.6843e-14
chi: [9, 9]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-1.9418043043913045, max S=0.1078900285324592, age=248, norm_err=1.6e-16
Current memory usage 186.4MB, wall time: 0.5s
Delta E = 2.1316e-15, Delta S = -1.1713e-15 (per sweep)
max trunc_err = 3.0124e-15, max E_trunc = 5.6843e-14
chi: [9, 9]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=9
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=1.9000000000000001
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-2.0340345587408066, max S=0.0975950958265987, age=128, norm_err=7.1e-16
Current memory usage 186.4MB, wall time: 0.4s
Delta E = nan, Delta S = 9.7595e-03 (per sweep)
max trunc_err = 9.6326e-16, max E_trunc = 5.6843e-14
chi: [9, 9]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-2.0340345587407498, max S=0.0975950958266001, age=248, norm_err=7.6e-16
Current memory usage 186.4MB, wall time: 0.4s
Delta E = 5.6843e-15, Delta S = 1.5682e-15 (per sweep)
max trunc_err = 9.6326e-16, max E_trunc = 2.2737e-13
chi: [9, 9]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=9
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
INFO : TFIChain: reading 'bc_MPS'='infinite'
INFO : TFIChain: reading 'L'=2
INFO : TFIChain: reading 'J'=1.0
INFO : TFIChain: reading 'g'=2.0
INFO : TwoSiteDMRGEngine: reading 'diag_method'='default'
INFO : TwoSiteDMRGEngine: subconfig 'trunc_params'=Config(<5 options>, 'trunc_params')
INFO : TwoSiteDMRGEngine: reading 'max_N_sites_per_ring'=18
INFO : TwoSiteDMRGEngine: reading 'combine'=False
INFO : TwoSiteDMRGEngine: subconfig 'lanczos_params'=Config(<9 options>, 'lanczos_params')
INFO : TwoSiteDMRGEngine: reading 'chi_list'=None
INFO : TwoSiteDMRGEngine: reading 'start_env'=1
INFO : start environment_sweep
INFO : TwoSiteDMRGEngine: reading 'N_sweeps_check'=10
INFO : TwoSiteDMRGEngine: subconfig 'mixer_params'=Config(<3 options>, 'mixer_params')
INFO : TwoSiteDMRGEngine: reading 'mixer'=False
INFO : TwoSiteDMRGEngine: reading 'max_sweeps'=40
INFO : TwoSiteDMRGEngine: reading 'max_hours'=8760
INFO : TwoSiteDMRGEngine: reading 'P_tol_to_trunc'=0.05
INFO : TwoSiteDMRGEngine: reading 'P_tol_min'=4.999999999999999e-16
INFO : TwoSiteDMRGEngine: reading 'P_tol_max'=0.0001
INFO : TwoSiteDMRGEngine: reading 'E_tol_to_trunc'=None
INFO : Running sweep with optimization
INFO : TwoSiteDMRGEngine: reading 'max_N_for_ED'=400
INFO : TwoSiteDMRGEngine: reading 'update_env'=5
INFO : start environment_sweep
INFO : checkpoint after sweep 10
energy=-2.1270888199467421, max S=0.0888429735319393, age=128, norm_err=7.0e-16
Current memory usage 186.4MB, wall time: 0.4s
Delta E = nan, Delta S = 8.8843e-03 (per sweep)
max trunc_err = 3.3343e-16, max E_trunc = 5.6843e-14
chi: [9, 9]
================================================================================
INFO : Running sweep with optimization
INFO : start environment_sweep
INFO : checkpoint after sweep 20
energy=-2.1270888199467208, max S=0.0888429735319404, age=248, norm_err=3.4e-16
Current memory usage 186.4MB, wall time: 0.4s
Delta E = 2.1316e-15, Delta S = -1.1033e-15 (per sweep)
max trunc_err = 3.3343e-16, max E_trunc = 5.1159e-13
chi: [9, 9]
================================================================================
INFO : TwoSiteDMRGEngine: reading 'max_E_err'=1e-08
INFO : TwoSiteDMRGEngine: reading 'max_S_err'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol'=1e-05
INFO : TwoSiteDMRGEngine: reading 'norm_tol_final'=1e-10
INFO : TwoSiteDMRGEngine: reading 'norm_tol_iter'=5
INFO : TwoSiteDMRGEngine finished after 20 sweeps, max chi=9
INFO : TwoSiteDMRGEngine: reading 'max_trunc_err'=0.0001
[12]:
plt.plot(gs, entropies, marker='o', label='max entropy $S$')
# plot expecation values of sigmax and sigmaz as well
plt.plot(gs, vals_X, marker='+', label=r'$<\sigma^x>$')
plt.plot(gs, vals_Z, marker='x', label=r'$<\sigma^z>$')
plt.plot(gs, corrs_XX, marker='x', label=r'$<\sigma^X_0 \sigma^X_{20}>$')
plt.xlabel('$g/J$')
plt.ylabel('expectation values')
plt.legend(loc='best')
[12]:
<matplotlib.legend.Legend at 0x7f89500a0560>
[ ]:
Advanced exercises - if you’re an expert and have time left ;-)
These examples only scratch on the surface of what you can do with TeNPy. - There are plenty of more examples in the documentation. Take a look at them! - Try to learn how to define your own model from the TeNPy documentation. Define a model for the XX Chain. - Look at the documentation how to run TEBD and TDVP and reproduce the time-evolution plot for S(t) from the toy code notebook. - Learn how to save and load data in TeNPy.
[ ]: