QuantumOptics.jl icon indicating copy to clipboard operation
QuantumOptics.jl copied to clipboard

Possible hard wall boundary condition for particle?

Open Ionizing opened this issue 2 years ago • 3 comments

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?

Ionizing avatar Feb 08 '24 15:02 Ionizing

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.

david-pl avatar Feb 09 '24 19:02 david-pl

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

Ionizing avatar Feb 11 '24 11:02 Ionizing

If you have had success implementing it, do not hesitate to submit it as a pull request -- libraries like this really improve when users contribute back and we would be happy to help along the way.

Krastanov avatar Aug 10 '24 18:08 Krastanov