Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add einsum for Qobj. #2340

Open
Ericgig opened this issue Feb 28, 2024 · 0 comments
Open

Add einsum for Qobj. #2340

Ericgig opened this issue Feb 28, 2024 · 0 comments

Comments

@Ericgig
Copy link
Member

Ericgig commented Feb 28, 2024

Problem Description

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant