qojulia/QuantumOptics.jl

LazyTensor abnormal allocs

Lightup1 opened this issue · 2 comments

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

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.

OK, thanks for your help.