18
18
calc_bottom_projectors ,
19
19
)
20
20
from 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
23
23
24
24
25
25
from typing import Sequence , Tuple , List , Dict , Literal
@@ -61,7 +61,7 @@ def _get_ctmrg_2x2_structure(
61
61
return view_tensors , view_tensor_objs
62
62
63
63
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 :
65
65
a = a / jnp .linalg .norm (a )
66
66
a_abs = jnp .abs (a )
67
67
a_abs_max = jnp .max (a_abs )
@@ -98,8 +98,8 @@ def new_phase(ph, curr_x, curr_x_abs):
98
98
def do_left_absorption (
99
99
peps_tensors : Sequence [jnp .ndarray ],
100
100
unitcell : PEPS_Unit_Cell ,
101
- config : PEPS_AD_Config ,
102
- state : PEPS_AD_Global_State ,
101
+ config : VariPEPS_Config ,
102
+ state : VariPEPS_Global_State ,
103
103
) -> PEPS_Unit_Cell :
104
104
"""
105
105
Calculate the left CTMRG tensors after one absorption step and returns
@@ -110,10 +110,10 @@ def do_left_absorption(
110
110
The sequence of unique PEPS tensors the unitcell consists of.
111
111
unitcell (:obj:`~varipeps.peps.PEPS_Unit_Cell`):
112
112
The unitcell to work on.
113
- config (:obj:`~varipeps.config.PEPS_AD_Config `):
113
+ config (:obj:`~varipeps.config.VariPEPS_Config `):
114
114
Global configuration object of the variPEPS library. Please see its
115
115
class definition for details.
116
- state (:obj:`~varipeps.global_state.PEPS_AD_Global_State `):
116
+ state (:obj:`~varipeps.global_state.VariPEPS_Global_State `):
117
117
Global state object of the variPEPS library. It is used to transport
118
118
a common state across different parts of the framework. Please see its
119
119
class definition for details.
@@ -197,8 +197,8 @@ class definition for details.
197
197
def do_right_absorption (
198
198
peps_tensors : Sequence [jnp .ndarray ],
199
199
unitcell : PEPS_Unit_Cell ,
200
- config : PEPS_AD_Config ,
201
- state : PEPS_AD_Global_State ,
200
+ config : VariPEPS_Config ,
201
+ state : VariPEPS_Global_State ,
202
202
) -> PEPS_Unit_Cell :
203
203
"""
204
204
Calculate the right CTMRG tensors after one absorption step and returns
@@ -209,10 +209,10 @@ def do_right_absorption(
209
209
The sequence of unique PEPS tensors the unitcell consists of.
210
210
unitcell (:obj:`~varipeps.peps.PEPS_Unit_Cell`):
211
211
The unitcell to work on.
212
- config (:obj:`~varipeps.config.PEPS_AD_Config `):
212
+ config (:obj:`~varipeps.config.VariPEPS_Config `):
213
213
Global configuration object of the variPEPS library. Please see its
214
214
class definition for details.
215
- state (:obj:`~varipeps.global_state.PEPS_AD_Global_State `):
215
+ state (:obj:`~varipeps.global_state.VariPEPS_Global_State `):
216
216
Global state object of the variPEPS library. It is used to transport
217
217
a common state across different parts of the framework. Please see its
218
218
class definition for details.
@@ -300,8 +300,8 @@ class definition for details.
300
300
def do_top_absorption (
301
301
peps_tensors : Sequence [jnp .ndarray ],
302
302
unitcell : PEPS_Unit_Cell ,
303
- config : PEPS_AD_Config ,
304
- state : PEPS_AD_Global_State ,
303
+ config : VariPEPS_Config ,
304
+ state : VariPEPS_Global_State ,
305
305
) -> PEPS_Unit_Cell :
306
306
"""
307
307
Calculate the top CTMRG tensors after one absorption step and returns
@@ -312,10 +312,10 @@ def do_top_absorption(
312
312
The sequence of unique PEPS tensors the unitcell consists of.
313
313
unitcell (:obj:`~varipeps.peps.PEPS_Unit_Cell`):
314
314
The unitcell to work on.
315
- config (:obj:`~varipeps.config.PEPS_AD_Config `):
315
+ config (:obj:`~varipeps.config.VariPEPS_Config `):
316
316
Global configuration object of the variPEPS library. Please see its
317
317
class definition for details.
318
- state (:obj:`~varipeps.global_state.PEPS_AD_Global_State `):
318
+ state (:obj:`~varipeps.global_state.VariPEPS_Global_State `):
319
319
Global state object of the variPEPS library. It is used to transport
320
320
a common state across different parts of the framework. Please see its
321
321
class definition for details.
@@ -399,8 +399,8 @@ class definition for details.
399
399
def do_bottom_absorption (
400
400
peps_tensors : Sequence [jnp .ndarray ],
401
401
unitcell : PEPS_Unit_Cell ,
402
- config : PEPS_AD_Config ,
403
- state : PEPS_AD_Global_State ,
402
+ config : VariPEPS_Config ,
403
+ state : VariPEPS_Global_State ,
404
404
) -> PEPS_Unit_Cell :
405
405
"""
406
406
Calculate the bottom CTMRG tensors after one absorption step and returns
@@ -411,10 +411,10 @@ def do_bottom_absorption(
411
411
The sequence of unique PEPS tensors the unitcell consists of.
412
412
unitcell (:obj:`~varipeps.peps.PEPS_Unit_Cell`):
413
413
The unitcell to work on.
414
- config (:obj:`~varipeps.config.PEPS_AD_Config `):
414
+ config (:obj:`~varipeps.config.VariPEPS_Config `):
415
415
Global configuration object of the variPEPS library. Please see its
416
416
class definition for details.
417
- state (:obj:`~varipeps.global_state.PEPS_AD_Global_State `):
417
+ state (:obj:`~varipeps.global_state.VariPEPS_Global_State `):
418
418
Global state object of the variPEPS library. It is used to transport
419
419
a common state across different parts of the framework. Please see its
420
420
class definition for details.
@@ -599,8 +599,8 @@ def gauge_fix_ctmrg_tensors(
599
599
def do_absorption_step (
600
600
peps_tensors : Sequence [jnp .ndarray ],
601
601
unitcell : PEPS_Unit_Cell ,
602
- config : PEPS_AD_Config ,
603
- state : PEPS_AD_Global_State ,
602
+ config : VariPEPS_Config ,
603
+ state : VariPEPS_Global_State ,
604
604
) -> PEPS_Unit_Cell :
605
605
"""
606
606
Calculate the all CTMRG tensors after one absorption step and returns
@@ -611,10 +611,10 @@ def do_absorption_step(
611
611
The sequence of unique PEPS tensors the unitcell consists of.
612
612
unitcell (:obj:`~varipeps.peps.PEPS_Unit_Cell`):
613
613
The unitcell to work on.
614
- config (:obj:`~varipeps.config.PEPS_AD_Config `):
614
+ config (:obj:`~varipeps.config.VariPEPS_Config `):
615
615
Global configuration object of the variPEPS library. Please see its
616
616
class definition for details.
617
- state (:obj:`~varipeps.global_state.PEPS_AD_Global_State `):
617
+ state (:obj:`~varipeps.global_state.VariPEPS_Global_State `):
618
618
Global state object of the variPEPS library. It is used to transport
619
619
a common state across different parts of the framework. Please see its
620
620
class definition for details.
0 commit comments