1818 calc_bottom_projectors ,
1919)
2020from varipeps .expectation .one_site import calc_one_site_single_gate_obj
21- from varipeps .config import PEPS_AD_Config
22- from varipeps .global_state import PEPS_AD_Global_State
21+ from varipeps .config import VariPEPS_Config
22+ from varipeps .global_state import VariPEPS_Global_State
2323
2424
2525from typing import Sequence , Tuple , List , Dict , Literal
@@ -61,7 +61,7 @@ def _get_ctmrg_2x2_structure(
6161 return view_tensors , view_tensor_objs
6262
6363
64- def _post_process_CTM_tensors (a : jnp .ndarray , config : PEPS_AD_Config ) -> jnp .ndarray :
64+ def _post_process_CTM_tensors (a : jnp .ndarray , config : VariPEPS_Config ) -> jnp .ndarray :
6565 a = a / jnp .linalg .norm (a )
6666 a_abs = jnp .abs (a )
6767 a_abs_max = jnp .max (a_abs )
@@ -98,8 +98,8 @@ def new_phase(ph, curr_x, curr_x_abs):
9898def do_left_absorption (
9999 peps_tensors : Sequence [jnp .ndarray ],
100100 unitcell : PEPS_Unit_Cell ,
101- config : PEPS_AD_Config ,
102- state : PEPS_AD_Global_State ,
101+ config : VariPEPS_Config ,
102+ state : VariPEPS_Global_State ,
103103) -> PEPS_Unit_Cell :
104104 """
105105 Calculate the left CTMRG tensors after one absorption step and returns
@@ -110,10 +110,10 @@ def do_left_absorption(
110110 The sequence of unique PEPS tensors the unitcell consists of.
111111 unitcell (:obj:`~varipeps.peps.PEPS_Unit_Cell`):
112112 The unitcell to work on.
113- config (:obj:`~varipeps.config.PEPS_AD_Config `):
113+ config (:obj:`~varipeps.config.VariPEPS_Config `):
114114 Global configuration object of the variPEPS library. Please see its
115115 class definition for details.
116- state (:obj:`~varipeps.global_state.PEPS_AD_Global_State `):
116+ state (:obj:`~varipeps.global_state.VariPEPS_Global_State `):
117117 Global state object of the variPEPS library. It is used to transport
118118 a common state across different parts of the framework. Please see its
119119 class definition for details.
@@ -197,8 +197,8 @@ class definition for details.
197197def do_right_absorption (
198198 peps_tensors : Sequence [jnp .ndarray ],
199199 unitcell : PEPS_Unit_Cell ,
200- config : PEPS_AD_Config ,
201- state : PEPS_AD_Global_State ,
200+ config : VariPEPS_Config ,
201+ state : VariPEPS_Global_State ,
202202) -> PEPS_Unit_Cell :
203203 """
204204 Calculate the right CTMRG tensors after one absorption step and returns
@@ -209,10 +209,10 @@ def do_right_absorption(
209209 The sequence of unique PEPS tensors the unitcell consists of.
210210 unitcell (:obj:`~varipeps.peps.PEPS_Unit_Cell`):
211211 The unitcell to work on.
212- config (:obj:`~varipeps.config.PEPS_AD_Config `):
212+ config (:obj:`~varipeps.config.VariPEPS_Config `):
213213 Global configuration object of the variPEPS library. Please see its
214214 class definition for details.
215- state (:obj:`~varipeps.global_state.PEPS_AD_Global_State `):
215+ state (:obj:`~varipeps.global_state.VariPEPS_Global_State `):
216216 Global state object of the variPEPS library. It is used to transport
217217 a common state across different parts of the framework. Please see its
218218 class definition for details.
@@ -300,8 +300,8 @@ class definition for details.
300300def do_top_absorption (
301301 peps_tensors : Sequence [jnp .ndarray ],
302302 unitcell : PEPS_Unit_Cell ,
303- config : PEPS_AD_Config ,
304- state : PEPS_AD_Global_State ,
303+ config : VariPEPS_Config ,
304+ state : VariPEPS_Global_State ,
305305) -> PEPS_Unit_Cell :
306306 """
307307 Calculate the top CTMRG tensors after one absorption step and returns
@@ -312,10 +312,10 @@ def do_top_absorption(
312312 The sequence of unique PEPS tensors the unitcell consists of.
313313 unitcell (:obj:`~varipeps.peps.PEPS_Unit_Cell`):
314314 The unitcell to work on.
315- config (:obj:`~varipeps.config.PEPS_AD_Config `):
315+ config (:obj:`~varipeps.config.VariPEPS_Config `):
316316 Global configuration object of the variPEPS library. Please see its
317317 class definition for details.
318- state (:obj:`~varipeps.global_state.PEPS_AD_Global_State `):
318+ state (:obj:`~varipeps.global_state.VariPEPS_Global_State `):
319319 Global state object of the variPEPS library. It is used to transport
320320 a common state across different parts of the framework. Please see its
321321 class definition for details.
@@ -399,8 +399,8 @@ class definition for details.
399399def do_bottom_absorption (
400400 peps_tensors : Sequence [jnp .ndarray ],
401401 unitcell : PEPS_Unit_Cell ,
402- config : PEPS_AD_Config ,
403- state : PEPS_AD_Global_State ,
402+ config : VariPEPS_Config ,
403+ state : VariPEPS_Global_State ,
404404) -> PEPS_Unit_Cell :
405405 """
406406 Calculate the bottom CTMRG tensors after one absorption step and returns
@@ -411,10 +411,10 @@ def do_bottom_absorption(
411411 The sequence of unique PEPS tensors the unitcell consists of.
412412 unitcell (:obj:`~varipeps.peps.PEPS_Unit_Cell`):
413413 The unitcell to work on.
414- config (:obj:`~varipeps.config.PEPS_AD_Config `):
414+ config (:obj:`~varipeps.config.VariPEPS_Config `):
415415 Global configuration object of the variPEPS library. Please see its
416416 class definition for details.
417- state (:obj:`~varipeps.global_state.PEPS_AD_Global_State `):
417+ state (:obj:`~varipeps.global_state.VariPEPS_Global_State `):
418418 Global state object of the variPEPS library. It is used to transport
419419 a common state across different parts of the framework. Please see its
420420 class definition for details.
@@ -599,8 +599,8 @@ def gauge_fix_ctmrg_tensors(
599599def do_absorption_step (
600600 peps_tensors : Sequence [jnp .ndarray ],
601601 unitcell : PEPS_Unit_Cell ,
602- config : PEPS_AD_Config ,
603- state : PEPS_AD_Global_State ,
602+ config : VariPEPS_Config ,
603+ state : VariPEPS_Global_State ,
604604) -> PEPS_Unit_Cell :
605605 """
606606 Calculate the all CTMRG tensors after one absorption step and returns
@@ -611,10 +611,10 @@ def do_absorption_step(
611611 The sequence of unique PEPS tensors the unitcell consists of.
612612 unitcell (:obj:`~varipeps.peps.PEPS_Unit_Cell`):
613613 The unitcell to work on.
614- config (:obj:`~varipeps.config.PEPS_AD_Config `):
614+ config (:obj:`~varipeps.config.VariPEPS_Config `):
615615 Global configuration object of the variPEPS library. Please see its
616616 class definition for details.
617- state (:obj:`~varipeps.global_state.PEPS_AD_Global_State `):
617+ state (:obj:`~varipeps.global_state.VariPEPS_Global_State `):
618618 Global state object of the variPEPS library. It is used to transport
619619 a common state across different parts of the framework. Please see its
620620 class definition for details.
0 commit comments