Skip to content

scale!!, add!! in VectorInterface.jl not implemented for InfinitePEPS #225

@Yue-Zhengyuan

Description

@Yue-Zhengyuan

I was trying the gradient optimization for t-J states with FermionParity ⊠ U1Irrep (spin) symmetry. I load iPEPS peps and CTMRGEnv env obtained from simple update and run the following:

peps, env, E, = fixedpoint(
    H,
    peps,
    env;
    optimizer_alg=(; tol=1e-4, maxiter=120),
    gradient_alg=(; iterscheme=:diffgauge),
)

Then I get some warning at the beginning of the optimization, about scale!! and add!! not implemented in VectorInterface.jl:

[ Info: LBFGS: initializing with f = -17.443556413922, ‖∇f‖ = 7.1036e-01
┌ Warning: The function `scale!!` is not implemented for (values of) type `Tuple{InfinitePEPS{TensorMap{Float64, GradedSpace{ProductSector{Tuple{FermionParity, U1Irrep}}, TensorKit.SortedVectorDict{ProductSector{Tuple{FermionParity, U1Irrep}}, Int64}}, 1, 4, Vector{Float64}}}, Float64}`;
│ this fallback will disappear in future versions of VectorInterface.jl
└ @ VectorInterface ~/.julia/packages/VectorInterface/J6qCR/src/fallbacks.jl:91
[ Info: LBFGS: iter    1, time  636.23 s: f = -17.450254372687, ‖∇f‖ = 6.3079e-01, α = 1.00e+00, m = 0, nfg = 1
┌ Warning: The function `add!!` is not implemented for (values of) type `Tuple{InfinitePEPS{TensorMap{Float64, GradedSpace{ProductSector{Tuple{FermionParity, U1Irrep}}, TensorKit.SortedVectorDict{ProductSector{Tuple{FermionParity, U1Irrep}}, Int64}}, 1, 4, Vector{Float64}}}, InfinitePEPS{TensorMap{Float64, GradedSpace{ProductSector{Tuple{FermionParity, U1Irrep}}, TensorKit.SortedVectorDict{ProductSector{Tuple{FermionParity, U1Irrep}}, Int64}}, 1, 4, Vector{Float64}}}, Int64, VectorInterface.One}`;
│ this fallback will disappear in future versions of VectorInterface.jl
└ @ VectorInterface ~/.julia/packages/VectorInterface/J6qCR/src/fallbacks.jl:163

But anyway the optimization can still finish.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions