This is a follow-up to #199 and #212 .
With #212 , correlation_length(ψ, env; sector=sector) now returns a correct value. By default, sector is the trivial sector.
As discussed, I find it slightly misleading that by default the returned correlation length may not be the largest one (see AKLT test). Especially that it depends on which symmetry is implemented: in the AKLT example, correlation_length(ψ, env) returns 2 different results depending whether ψ makes use of U(1) or SU(2). As a user, I would expect that it returns the largest one by default, then sector is an advanced mode with finer control.
I would expect that if no sector is specifically required, PEPSKit computes eigenvalues in all sectors and returns the larger correlation length.
This is a follow-up to #199 and #212 .
With #212 ,
correlation_length(ψ, env; sector=sector)now returns a correct value. By default,sectoris the trivial sector.As discussed, I find it slightly misleading that by default the returned correlation length may not be the largest one (see AKLT test). Especially that it depends on which symmetry is implemented: in the AKLT example,
correlation_length(ψ, env)returns 2 different results depending whether ψ makes use of U(1) or SU(2). As a user, I would expect that it returns the largest one by default, then sector is an advanced mode with finer control.I would expect that if no sector is specifically required, PEPSKit computes eigenvalues in all sectors and returns the larger correlation length.