Skip to content

Changes for non-CPU array support#375

Open
kshyatt wants to merge 2 commits intomainfrom
ksh/cu
Open

Changes for non-CPU array support#375
kshyatt wants to merge 2 commits intomainfrom
ksh/cu

Conversation

@kshyatt
Copy link
Member

@kshyatt kshyatt commented Feb 6, 2026

Mostly allowing passing an array type instead of just an element type to allow GPU arrays to back MPS tensors

@kshyatt kshyatt requested a review from lkdvos February 6, 2026 10:32
@codecov
Copy link

codecov bot commented Feb 11, 2026

Codecov Report

❌ Patch coverage is 64.00000% with 9 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/states/ortho.jl 0.00% 6 Missing ⚠️
src/states/abstractmps.jl 50.00% 2 Missing ⚠️
src/states/infinitemps.jl 88.88% 1 Missing ⚠️
Files with missing lines Coverage Δ
src/algorithms/toolbox.jl 96.46% <100.00%> (-0.05%) ⬇️
src/operators/mpohamiltonian.jl 92.00% <100.00%> (+0.02%) ⬆️
src/states/quasiparticle_state.jl 81.50% <100.00%> (+0.44%) ⬆️
src/utility/multiline.jl 63.63% <100.00%> (+0.67%) ⬆️
src/states/infinitemps.jl 80.14% <88.88%> (+1.88%) ⬆️
src/states/abstractmps.jl 52.27% <50.00%> (-2.28%) ⬇️
src/states/ortho.jl 80.39% <0.00%> (-3.29%) ⬇️

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 11, 2026

Your PR no longer requires formatting changes. Thank you for your contribution!

@kshyatt kshyatt force-pushed the ksh/cu branch 4 times, most recently from 046f4d0 to 44d6fe6 Compare February 11, 2026 13:57
@kshyatt kshyatt force-pushed the ksh/cu branch 2 times, most recently from 11674d6 to d4e1a03 Compare February 18, 2026 12:47
@kshyatt
Copy link
Member Author

kshyatt commented Feb 18, 2026

Had to rebase on top of main which introduced many conflicts, most of the examples but for 2 are now working. The problem with examples cu_quantum1d/ no.s 2 & 3 is some very annoying conversion from BlockTensorMap slamming into TensorKit's conversion rules.

@lkdvos lkdvos marked this pull request as draft February 26, 2026 18:15
@lkdvos
Copy link
Member

lkdvos commented Feb 26, 2026

(just converted to draft to avoid rerunning all the tests for the various rebases)

@kshyatt
Copy link
Member Author

kshyatt commented Feb 26, 2026

(just converted to draft to avoid rerunning all the tests for the various rebases)

Oh good call, thank you!

@kshyatt
Copy link
Member Author

kshyatt commented Mar 2, 2026

FWIW all this is why I normally don't cherry-pick off other branches 😇

Copy link
Member

@lkdvos lkdvos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since I stole the commits from here, I thought I'd might as well also go through and indicate some merge changes that were probably no longer needed, and meanwhile left some more comments

@lkdvos
Copy link
Member

lkdvos commented Mar 2, 2026

FWIW all this is why I normally don't cherry-pick off other branches 😇

I know, since this is my bad I thought I would try and help fix it 😨

@kshyatt
Copy link
Member Author

kshyatt commented Mar 2, 2026

It might take me a few days to get back to all this as I have a few other things in flight

@kshyatt kshyatt force-pushed the ksh/cu branch 2 times, most recently from de21294 to 0a2c75e Compare March 4, 2026 09:04
Fix sources

Don't use a storagetype as input for MPS's

Remove duplicates in extension

more comments

Apply suggestions from code review

Co-authored-by: Lukas Devos <ldevos98@gmail.com>

Fix sources

Remove some extra storagetypes
@kshyatt
Copy link
Member Author

kshyatt commented Mar 12, 2026

OK, I think everything here got addressed, should I put this on R4R and run the full tests?

@kshyatt kshyatt marked this pull request as ready for review March 13, 2026 13:01
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