File:Coherent state gif.gif

From testwiki
Jump to navigation Jump to search
    Original file (1,080 × 540 pixels, file size: 1.42 MB, MIME type: image/gif, looped, 160 frames, 7.3 s)
    Note: Due to technical limitations, thumbnails of high resolution GIF images such as this one will not be animated.

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: Coherent state dynamics for \alpha = \sqrt{10}, in units of x_0=\sqrt{\hbar/m\omega}.
    Date
    Source Own work
    Author Ashton Bradley Aspir8 (talk)

    Julia 10.0.4 code

    using GLMakie
    set_theme!(theme_black())
    
    # grids
    xmax = 10
    Nx = 500
    x = range(-xmax,xmax,Nx)
    
    ## coherent state
    ω = 1
    α₀ = sqrt(10)
    α(t) = α₀*exp(-im*ω*t)
    θ(t) = -ω*t/2 + 0.5*abs2(α₀)*sin(2*ω*t-2σ)
    ψ(x,t) = π^(-0.25)*exp(-0.5*(x-√2*real(α(t)))^2+im*x*√2*imag(α(t))-im*real(α(t))*imag(α(t)) )
    phasemap(x,t) = angle(ψ(x,t))/(2π)+0.5
    cmap = cgrad(:cyclic_mygbm_30_95_c78_n256_s25);
    
    # time for animation
    time = Observable(0.0)
    y = @lift(abs2.(ψ.(x,$time)))
    colors = @lift(cmap[phasemap.(x,$time)])
    
    f = Figure(size=(540,270),fontsize=20,linewidth=2.5)
    ax = Axis(f[1,1],
    xlabel=L"x/x_0",ylabel=L"|\psi|^2x_0",ylabelrotation=0,
    ylabelpadding=-5,xticks=[-5,0,5],yticks=[0,0.5],)
    band!(ax,x,zero.(x),y;color=colors,colormap = cmap)
    hidedecorations!(ax,ticks=false,ticklabels=false,label=false)
    
    lines!(ax,x,y,color=:white)
    xlims!(-8,8)
    ylims!(0,0.7)
    cb = GridLayout(f[1, 2], tellheight = false)
        Label(cb[1, 1], L"\textrm{arg}(\psi)")
        Colorbar(cb[2, 1], colormap=cmap,vertical = true, height=Relative(.8),width=15, halign=:center, valign=:center,labelpadding=10,
        ticks=([0, 0.5, 1],[L"0", L"\pi", L"2\pi"]),)
        rowgap!(cb, 0)
        resize_to_layout!(f)
    
    # animation
    framerate = 22
    t_iterator = range(0,2π,160)
    record(f, "coherent_state.gif", t_iterator;
            framerate = framerate) do t
        time[]=t
    end
    

    Licensing

    I, the copyright holder of this work, hereby publish it under the following license:
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
    You are free:
    • to share – to copy, distribute and transmit the work
    • to remix – to adapt the work
    Under the following conditions:
    • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

    Captions

    Coherent state dynamics for <math>\alpha = \sqrt{10}</math>, in units of <math>x_0=\sqrt{\hbar/m\omega}</math>, showing the probability density <math>|\psi(x,t)|^2</math> and the quantum phase (color).

    Items portrayed in this file

    depicts

    24 June 2024

    image/gif

    1,492,536 byte

    540 pixel

    1,080 pixel

    b95a65391dec9f802015f8a52401fc1a1e43ea75

    File history

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

    Date/TimeThumbnailDimensionsUserComment
    current22:52, 24 June 2024Thumbnail for version as of 22:52, 24 June 20241,080 × 540 (1.42 MB)wikimediacommons>Aspir8slightly higher frame rate

    There are no pages that use this file.