Skip to content

Make ITensorMPS a weak dependency#35

Merged
mtfishman merged 2 commits into
mainfrom
mf/itensormps-weakdep
May 14, 2026
Merged

Make ITensorMPS a weak dependency#35
mtfishman merged 2 commits into
mainfrom
mf/itensormps-weakdep

Conversation

@mtfishman
Copy link
Copy Markdown
Member

Summary

  • Move ITensorMPS from [deps] to [weakdeps] so users who don't need MPS-aware visualization don't pay the cost of loading ITensorMPS.
  • Add a package extension ITensorVisualizationBaseITensorMPSExt (the first extension in this package) that defines the two MPS-specialized visualize / visualize! methods. The extension loads only when ITensorMPS is present.
  • Bump version to 0.1.19.

mtfishman and others added 2 commits May 14, 2026 11:19
## Summary

- Move `ITensorMPS` from `[deps]` to `[weakdeps]` so users who don't need
  MPS-aware visualization don't pay the cost of loading `ITensorMPS`.
- Add a package extension `ITensorVisualizationBaseITensorMPSExt` (the
  first extension in this package) that defines the two `MPS`-specialized
  `visualize` / `visualize!` methods, loaded only when `ITensorMPS` is
  present.
- Bump version to 0.1.19.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The only use of `data` was in the MPS visualize methods, which moved to
the package extension in the previous commit. The extension imports it
directly from ITensors.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@mtfishman mtfishman merged commit 5ade5c6 into main May 14, 2026
15 checks passed
@mtfishman mtfishman deleted the mf/itensormps-weakdep branch May 14, 2026 15:35
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.

1 participant