qojulia / QuantumOptics.jl

Library for the numerical simulation of closed as well as open quantum systems.
http://qojulia.org
Other
518 stars 101 forks source link

Possible hard wall boundary condition for particle? #380

Open Ionizing opened 4 months ago

Ionizing commented 4 months ago

This package is pretty nice for the demonstration of time of particle evolution in the model potential. Would it be possible to remove the periodic boundary condition? I mean, use the "hard wall" boundary condition during the calculation?

david-pl commented 4 months ago

There's no out-of-the-box way to do this right now, but you can always define your own potential using e.g. the potentialoperator function. Essentially, you could create a symmetric version of the potential used in this example https://docs.qojulia.org/examples/particle-into-barrier/ and make the potential high enough so it acts as a wall.

Ionizing commented 4 months ago

Thanks for the advice. I'll try it later.