You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A recent change to NDTensors introduced a regression into ITensors' replacebond! function for mps, see here for diff and responsible call to factorize just underneath. Previously, users could set min_blockdim, use_absolute_cutoff, and use_relative_cutoff in the keyword args passed to replacebond!, and kwargs... would be passed correctly to factorize. This refactor away from kwargs is 100% welcomed as it makes the API more clear and readable, but it seems to have missed those fields, and possibly others or in other functions?
It also appears that factorize currently doesn't pass svd-related fields correctly into factorize_svd (see here, the svd fields don't seemed to be used anywhere in fact.
Happy to create a PR to add those fields if you agree, just let me know.
Minimal code demonstrating the bug or unexpected behavior
This succeeds in ITensors v0.3.48 & NDTensors v0.2.15
But fails in ITensors v0.3.52 & NDTensors v0.2.23:
using ITensors
mps=randomMPS(Float64, [Index(2) for _ in1:5])
replacebond!(mps, 2, mps[3]; which_decomp="svd", use_relative_cutoff=true, min_blockdim=1)
Description of bug
A recent change to NDTensors introduced a regression into ITensors'
replacebond!
function for mps, see here for diff and responsible call to factorize just underneath. Previously, users could setmin_blockdim
,use_absolute_cutoff
, anduse_relative_cutoff
in the keyword args passed toreplacebond!
, andkwargs...
would be passed correctly to factorize. This refactor away from kwargs is 100% welcomed as it makes the API more clear and readable, but it seems to have missed those fields, and possibly others or in other functions?It also appears that factorize currently doesn't pass svd-related fields correctly into
factorize_svd
(see here, the svd fields don't seemed to be used anywhere in fact.Happy to create a PR to add those fields if you agree, just let me know.
Minimal code demonstrating the bug or unexpected behavior
This succeeds in ITensors v0.3.48 & NDTensors v0.2.15
But fails in ITensors v0.3.52 & NDTensors v0.2.23:
Error in v0.3.52:
Version information
versioninfo()
:The text was updated successfully, but these errors were encountered: