File:Qm doublewell timedomain.gif

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Qm_doublewell_timedomain.gif(360 × 223 pixels, file size: 5.7 MB, MIME type: image/gif, looped, 1,000 frames)

Captions

Captions

Dynamics of a gaussian wavepacket in a double well potential.

Summary[edit]

Description
English: Dynamics of a gaussian wavepacket in a double well potential. At large times (larger than the ones shown) the probability to find the particle on the left or on the right are equal. Plotting |ψ| instead of |ψ|² because the plot was more legible this way.
Date
Source https://twitter.com/j_bertolotti/status/1102924695962296320
Author Jacopo Bertolotti
Permission
(Reusing this file)
https://twitter.com/j_bertolotti/status/1030470604418428929

Mathematica 11.0 code[edit]

L = 100; (*System size*)
dx = 0.1; (*Space step*)
dt = 0.005; (*time step*)
k0 = 4; (*Momentum of the incident packet*)
V1 = Table[Piecewise[{{100, x < L/10}, {0, L/10 < x < L/2 - L/100}, {20, L/2 - L/100 < x < L/2 + L/100}, {0, L/2 + L/100 < x < L - L/10}, {100, x > L - L/10}}], {x, 0, L, dx}]; (*Potential*)
dim = Dimensions[V1][[1]]
(*For a undergraduate level explanation of why this works, see physik.uni-graz.at/~pep/Theses/BachelorThesis_Wachter_2017.pdf *)

\[Alpha] = (I dt)/(2 dx^2);
\[Xi]1 = Table[1 + (I dt)/2 (2/dx^2 + V1[[j]]), {j, 1, dim}];
\[Gamma]1 = Table[1 - (I dt)/2 (2/dx^2 + V1[[j]]), {j, 1, dim}];
U1 = SparseArray[{Band[{1, 1}] -> \[Xi]1, Band[{2, 1}] -> -\[Alpha], 
    Band[{1, 2}] -> -\[Alpha]}, {dim, dim}];
U2 = SparseArray[{Band[{1, 1}] -> \[Gamma]1, Band[{2, 1}] -> \[Alpha],
     Band[{1, 2}] -> \[Alpha]}, {dim, dim}];
\[Psi]0 = Table[E^(-((x - L/4)^2/(2 2^2))) E^(I k0 x), {x, 0, L, dx}]; (*Initial condition*)

nsteps = 10000; (*Number of time steps*)
U = Inverse[U1].U2; (*Evolution operator*)
evo1 = NestList[Dot[U, #] &, \[Psi]0, nsteps]; (*Apply the evolution operator repeatedly to obtain the soltion at each time step*)

p1 = Table[ListPlot[{Abs[evo1[[j]]], V1/50}, Joined -> True, PlotRange -> {-0.1, 2}, Axes -> False, PlotStyle -> {Directive[Black, Thick], Directive[Red, Thick, Dashed]}], {j, 1, nsteps, 10}];
ListAnimate[p1]

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
Creative Commons CC-Zero This file is made available under the Creative Commons CC0 1.0 Universal Public Domain Dedication.
The person who associated a work with this deed has dedicated the work to the public domain by waiving all of their rights to the work worldwide under copyright law, including all related and neighboring rights, to the extent allowed by law. You can copy, modify, distribute and perform the work, even for commercial purposes, all without asking permission.

This file, which was originally posted to https://twitter.com/j_bertolotti/status/1030470604418428929, was reviewed on 7 March 2019 by reviewer Ronhjones, who confirmed that it was available there under the stated license on that date.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current10:45, 6 March 2019Thumbnail for version as of 10:45, 6 March 2019360 × 223 (5.7 MB)Berto (talk | contribs)User created page with UploadWizard

There are no pages that use this file.

Metadata