Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BoundsError #122

Closed
Confusio opened this issue Mar 5, 2025 · 2 comments
Closed

BoundsError #122

Confusio opened this issue Mar 5, 2025 · 2 comments

Comments

@Confusio
Copy link

Confusio commented Mar 5, 2025

https://github.com/Jutho/KrylovKit.jl/blob/a39cc4f88f5f7a0935aae52a60372b1d0825773b/ext/KrylovKitChainRulesCoreExt/svdsolve.jl#L238C1-L239C24

When running PEPSKit.jl, an bound error occurs here

nested task error: BoundsError: attempt to access 15-element Vector{Tuple{Vector{ComplexF64}, Vector{ComplexF64}, Vector{ComplexF64}}} at index [16]

Does Ws here always have length of n? If I change for i in 1:n to for i in 1:length(Ws), is there any consequence?

@lkdvos
Copy link
Collaborator

lkdvos commented Mar 5, 2025

Probably a duplicate of #110

@Confusio
Copy link
Author

Confusio commented Mar 5, 2025

Yes, it is a duplicate one. It occurs quite often with iterscheme=:fixed, not for iterscheme=:diffgauge. Does the later (iterscheme=:diffgauge) implement the linsolve for AD?
With the default settings of PEPSKit, the test for tf_ising.jl passes, but failed when I renormalize the tensors before ctmrg svd for projectors. I am confused as I think the normalization improves the stability.

@Confusio Confusio closed this as completed Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants