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
Having a version of einsum working on Qobj's dimensions would be useful (qutip/qutip-qip#225).
A dense implementation should be easy enough to develop using qutip.core.dimension.to_tensor_rep.
Proposed Solution
Use to_tensor_rep, from_tensor_rep with np.einsum to create qutip version of einsum.
Alternate Solutions
If would be even better to develop it without conversion to numpy array to allow support for sparse, jax, cupy, etc. matrices.
However this would probably not be an easy task doable in the scope of good first issue.
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Problem Description
Having a version of
einsum
working onQobj
's dimensions would be useful (qutip/qutip-qip#225).A dense implementation should be easy enough to develop using
qutip.core.dimension.to_tensor_rep
.Proposed Solution
Use
to_tensor_rep
,from_tensor_rep
withnp.einsum
to create qutip version of einsum.Alternate Solutions
If would be even better to develop it without conversion to numpy array to allow support for sparse, jax, cupy, etc. matrices.
However this would probably not be an easy task doable in the scope of
good first issue
.Additional Context
No response
The text was updated successfully, but these errors were encountered: