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

LazyTensor abnormal allocs #331

Closed
Lightup1 opened this issue Apr 18, 2022 · 2 comments
Closed

LazyTensor abnormal allocs #331

Lightup1 opened this issue Apr 18, 2022 · 2 comments

Comments

@Lightup1
Copy link

When using LazyTensor, allocations of the time evolution solver is abnormal.
What cause this? And when should we use LazyTensor?
image

@ChristophHotter
Copy link
Member

I think using lazy operations doesn't make much sense here.

Usually they are used for the position and momentum basis, since the FFT is really fast to convert between these two and makes operators diagonal, which speeds up the calculation. See e.g. Particle in harmonic trap potential.

The LazyTensor is normally used if you have two position and momentum spaces.
This is described in the example Dynamics of a two-dimensional wavepacket hitting a Gaussian potential.

@Lightup1
Copy link
Author

OK, thanks for your help.

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