Skip to content

Conversation

@VictorVanthilt
Copy link
Member

@VictorVanthilt VictorVanthilt commented Jan 7, 2025

tol was a kwarg in remove_orphans! for InfiniteMPOs and a regular argument with a default value in remove_orphans! for FiniteMPOs. This PR unifies the calling signature of the two methods.

@VictorVanthilt VictorVanthilt changed the title make tol a kwarg in remove_orphans!(::InfiniteMPO) make tol a kwarg in remove_orphans!(::FiniteMPO) Jan 7, 2025
@codecov
Copy link

codecov bot commented Jan 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
src/operators/mpo.jl 94.58% <100.00%> (ø)

... and 5 files with indirect coverage changes

@lkdvos
Copy link
Member

lkdvos commented Jan 7, 2025

Any opinions on renaming everything to droptol!?

@VictorVanthilt
Copy link
Member Author

That would hide the fact that remove_orphans (which is a rather bad name indeed) actually does more than just droptol

@VictorVanthilt
Copy link
Member Author

Also, are you seeing all of these DiagonalTensorMap related failures?

@lkdvos
Copy link
Member

lkdvos commented Jan 7, 2025

I'll concede on the name, it's fair to say that droptol! typically does not change the spaces/sizes.

The failing tests are actually unrelated to this, we updated the compat on TensorKitManifolds, such that now the tests are actually using TensorKit v0.14 (which they previously weren't). I'll look into fixing that hopefully this afternoon

@lkdvos
Copy link
Member

lkdvos commented Jan 7, 2025

Can be merged as soon as #223 is merged.

@lkdvos lkdvos enabled auto-merge (squash) January 8, 2025 01:24
@lkdvos lkdvos merged commit 742ffff into QuantumKitHub:master Jan 8, 2025
28 checks passed
@lkdvos lkdvos deleted the removeorphans branch January 8, 2025 01:24
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

Successfully merging this pull request may close these issues.

2 participants