Closed max-radin closed 3 weeks ago
It looks like the issue is just that
num_ops
does not get initialized if none of the eigenvalues are thrown out.
Looks like you're right. I'll push the fix with the next release, thanks for pointing it out.
Fixed in 1.3.0
I'm seeing the error below when initializing
DoubleFactorized
objects withsf_error_threshold
set to zero. (Context: I'm setting this to zero to make the truncation consistent with OpenFermion's logic for estimating truncation error.) It looks like the issue is just thatnum_ops
does not get initialized if none of the eigenvalues are thrown out.I think this is not a big blocker for our work though because it seems like we can work around it by just setting
sf_error_threshold
to some very small value.