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

PlusEq and other operations between QDenseReal and QDiagReal #297

Open
mingruyang opened this issue Nov 22, 2019 · 1 comment
Open

PlusEq and other operations between QDenseReal and QDiagReal #297

mingruyang opened this issue Nov 22, 2019 · 1 comment

Comments

@mingruyang
Copy link
Contributor

Now if I use "delta(i, prime(i)) - T" where T is a dense ITensor(i, prime(i)), I will get "terminate called after throwing an instance of 'itensor::ITError'
what(): doTask not defined for task PlusEQ and storage types QDenseReal QDiagReal". I think it would be useful to add this function. Or we can add a function "eye" to construct a dense identity ITensor similar to that for the Matrix.

@mtfishman
Copy link
Member

mtfishman commented Nov 22, 2019

Yes we should definitely have that operation, it just has not been very high up on the priority list.

One thing you could do right now is toDense(delta(i,prime(i))) - T.

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

No branches or pull requests

2 participants