Replies: 2 comments
-
This is working as expected: each time you change Since all the dimensions are the same, you might be able to reduce the required compilations by using the |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot for the very fast answer! This would explain the behavior I saw in qujax, where I constantly received cache misses I think due to this function, which is executed very often https://github.com/CQCL/qujax/blob/develop/qujax/statetensor.py#L18 I'll have a look at the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
So, I have this small test script:
When I profile it (for example with
python -m pyinstrument -r html -o res.html test.py
) I see that most of the computation time is lost to cache misses. It kind of makes sense, because I give three differentqubit_inds
, but given that all dimensions are always the same, is there a possibility to speed this up?Beta Was this translation helpful? Give feedback.
All reactions