Skip to content

Commit 066c37c

Browse files
committed
Use partial SVD functions for triangular CTMRG, too
1 parent 6dac8e4 commit 066c37c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

varipeps/ctmrg/triangular_projectors.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,15 @@ def _corner_workhorse(
7777
left_matrix = left_matrix_2
7878

7979
if fishman:
80-
_, left_S, left_Vh = gauge_fixed_svd(left_matrix)
80+
left_S, left_Vh = gauge_fixed_svd(left_matrix, only_u_or_vh="Vh")
8181
left_S = jnp.where(
8282
left_S / left_S[0] < truncation_eps,
8383
0,
8484
jnp.sqrt(jnp.where(left_S / left_S[0] < truncation_eps, 1, left_S)),
8585
)
8686
left_matrix = left_S[:, jnp.newaxis] * left_Vh
8787

88-
right_U, right_S, _ = gauge_fixed_svd(right_matrix)
88+
right_U, right_S = gauge_fixed_svd(right_matrix, only_u_or_vh="U")
8989
right_S = jnp.where(
9090
right_S / right_S[0] < truncation_eps,
9191
0,
@@ -337,15 +337,15 @@ def _T_workhorse(
337337
)
338338

339339
if fishman:
340-
_, left_S, left_Vh = gauge_fixed_svd(left_matrix)
340+
left_S, left_Vh = gauge_fixed_svd(left_matrix, only_u_or_vh="Vh")
341341
left_S = jnp.where(
342342
left_S / left_S[0] < truncation_eps,
343343
0,
344344
jnp.sqrt(jnp.where(left_S / left_S[0] < truncation_eps, 1, left_S)),
345345
)
346346
left_matrix = left_S[:, jnp.newaxis] * left_Vh
347347

348-
right_U, right_S, _ = gauge_fixed_svd(right_matrix)
348+
right_U, right_S = gauge_fixed_svd(right_matrix, only_u_or_vh="U")
349349
right_S = jnp.where(
350350
right_S / right_S[0] < truncation_eps,
351351
0,

0 commit comments

Comments
 (0)