-
Notifications
You must be signed in to change notification settings - Fork 110
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
Speed Problem of Many Body Operator #424
Comments
Could you give a bit more details, e.g. a minimum working example for each approach (your hand-rolled one and the one where you use |
Here is an example
Note that two operator |
Update: Now, I use the following methode that is faster than the other methods.
|
Many body operator in the module
manybodyoperator(basis::ManyBodyBasis, op)
works slowly. My method is faster than module's method such asfor i in 1:N for j in 1:N mb_op += op.data[i,j] * transition(ManyBodyBasis, i, j) end end
As you can see even having nested loop (dimension is N^2), my method still faster than original one. What is the fastest way to construct many body operator? Note that my problem dimension generally is from N=50 up to N=100.
The text was updated successfully, but these errors were encountered: