Skip to content

Conversation

@shinaoka
Copy link
Member

This PR improves the TensorTrain constructor to support arbitrary numbers of physical indices per site, with better documentation and validation.

Changes

  • Enhanced TensorTrain constructor to handle both MPS (single Index per site) and general cases (vector of Indices per site)
  • Added comprehensive documentation explaining the constructor behavior
  • Improved validation of physical indices at each site
  • Added tests for the new functionality

Files Changed

  • src/tensortrain.jl: Improved constructor implementation
  • test/tensortrain_tests.jl: Added tests for generalized site indices support

@shinaoka shinaoka merged commit b9765e0 into main Nov 11, 2025
2 checks passed
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