You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in #1548 there are various occasions where an einsum may be better for some backends (most likely highly parallelized ones as GPU ones) instead of the current reduce approach. I report here those alternative implementations that should be checked.
Just to link the outcome of an investigation: #1548 (comment).
In this specific case, maybe an einsum is not cleaner, nor necessarily faster.
But this is specifically happening just because the operation in the for loop is increasing exponentially in complexity (including memory), to the point that the last iteration dominates the whole process (or, at most, the last few ones). So, exploring einsum (and its optimization) may be still perfectly worth for all or most of the others.
As discussed in #1548 there are various occasions where an
einsum
may be better for some backends (most likely highly parallelized ones as GPU ones) instead of the currentreduce
approach. I report here those alternative implementations that should be checked.multikron
qibo/src/qibo/hamiltonians/models.py
Line 345 in 09cba74
build spin model
qibo/src/qibo/hamiltonians/models.py
Line 357 in 09cba74
SymbolicTerm.matrix
qibo/src/qibo/hamiltonians/terms.py
Line 203 in 09cba74
The text was updated successfully, but these errors were encountered: