Skip to content

np.einsum_path vs TensorOperations #156

@ejmeitz

Description

@ejmeitz

Hello,

I was wondering if there is much difference in the contraction order given by numpy.einsum_path vs. what is being done inside of TensorOperations? I've looked at the output of @macroexpand and its not super clear to me what is being done. The specific contraction I'm looking at is:
@macroexpand @tensor K_true[n,m,l] := psi[i,j,k]*P[i,n]*P[j,m]*P[k,l]
and I'm just trying to understand how things are being multiplied under the hood so I can re-make this on GPU in a way that takes advantage of sparsity. I've coded what the numpy command outputs and TensorOperations is still much faster. I believe they have same computational complexity (4) and have similar memory footprints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions