Skip to content

Chunking for mixed states #1249

Answered by PhilipVinc
joshuazlin asked this question in Q&A
Discussion options

You must be logged in to vote

It's indeed not implemented yet, but simply because nobody needed it yet.
It should be relatively straightforward to get it done. You need to re-implement this function, that computes the gradient of LdagL to use chunked primitives.

The forward pass is already chunked, so you only need to chunk the backward. Though it might not be trivial to do it.

You can find inspiration by looking at how the standard expect_and_grad for hermitian operators is implemented without chunking and with chunking

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joshuazlin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants