File:Wignerfunction squeezed 0.50.png

From testwiki
Jump to navigation Jump to search
Original file (2,000 × 1,175 pixels, file size: 557 KB, MIME type: image/png)

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: Wigner function of a squeezed coherent (Gaussian) state with squeezing parameter ζ=0.5.
Date
Source Own work
Author Geek3
PNG development
InfoField
 This diagram was created with Mathematica.

Source code

squeezed[\[Alpha]_, z_, q_, p_] := 
  1/Pi Exp[-(1/
      2) ((q*Sqrt[2]*Exp[-z] - 
          2*Re[\[Alpha]]) ^2 + (p*Sqrt[2]*Exp[z] - 
          2*Im[\[Alpha]])^2)] ;
rq = 5; rp = 3; t = 0.003; FontS = 20;
For[z = 0, z <= 1.0, z += 0.25, 
 plot = Show[Plot3D[squeezed[0, z, q, p],
    {q, -rq, rq}, {p, -rp, rp}, ImageSize -> 800,
    Mesh -> {Range[-Floor[rq], Floor[rq] ], 
      Range[-Floor[rp], Floor[rp] ], Range[-1, 1, 1/4]/Pi},
    MeshFunctions -> {#1 &, #2 &, #3 &},
    MeshStyle -> {Directive[Black, Thickness[t] ], 
      Directive[Black, Thickness[t] ], 
      Directive[White, Thickness[t] ]},
    PlotRange -> {-1/Pi, 1/Pi}, PlotPoints -> 81, MaxRecursion -> 4, 
    Method -> {Refinement -> {ControlValue -> 0.02} },
    PerformanceGoal -> "Quality",
    PlotStyle -> Opacity[0.85], Lighting -> "Classic",
    ColorFunction -> ({RGBColor[1, 1, 0.75], Glow[GrayLevel[0.06] ], 
        Specularity[0.5, 60]} &),
    Axes -> False, Boxed -> False,
    ViewPoint -> 
     FromSphericalCoordinates[{Sqrt[229/20], Pi/3, -0.64 Pi}] ],
   Graphics3D[{Thickness -> t, Black, 
     Line[{ {-rq, rp, 0}, {-rq, -rp, 0}, {rq, -rp, 0} }]}],
   Graphics3D[{Thickness -> t, Black, 
     Line[{ {-rq, rp, -1/Pi}, {-rq, rp, 1/Pi} }]}],
   (* q ticks *)
   Sequence @@ 
    Table[Graphics3D[{Thickness -> t, Black, 
       Line[{ {x, -rp, 0}, {x, -0.2 - rp, 0} }]}], {x, -Floor[rq], 
      Floor[rq]}],
   (* p ticks *)
   Sequence @@ 
    Table[Graphics3D[{Thickness -> t, Black, 
       Line[{ {-rq, y, 0}, {-rq - 0.2, y, 0} }]}], {y, -Floor[rp], 
      Floor[rp - 1/2]}],
   (*W ticks *)
   Sequence @@ 
    Table[Graphics3D[{Thickness -> t, Black, 
       Line[{ {-rq, rp, z/(2 Pi)}, {-rq - 0.2, rp, 
          z/(2 Pi)} }]}], {z, -2, 2}],
   (* axes labels *)
   Graphics3D[Text[Style["q", FontS, Black], {0, -rp*1.15, -0.07}] ],
   Graphics3D[Text[Style["p", FontS, Black], {-rq*1.13, 0, -0.07}] ],
   Graphics3D[
    Text[Style["W", FontS, Black], {-rq*0.93, rp*0.93, 0.8/Pi}] ],
   Sequence @@ 
    Table[Graphics3D[{Text[
        Style[TextString[x], FontS, 
         Black], {x, -rp - 0.09 Max[rq, rp], 0}, {0, 
         1}]}], {x, -Floor[rq], Floor[rq]}],
   Sequence @@ 
    Table[Graphics3D[{Text[
        Style[TextString[y], FontS, Black], {-rq - 0.09 Max[rq, rp], 
         y, 0}, {0, 1}]}], {y, -Floor[rp], Floor[rp - 1/2]}],
   Sequence @@ 
    Table[Graphics3D[{Text[
        Style[If[z == 0, "0", ToString[z/(2 Pi), TraditionalForm] ], 
         FontS, Black], {-rq - 0.3, rp, z/2/Pi}, {1, 0}]}], {z, -2, 
      2}],
   BoxRatios -> {Automatic, Automatic, 8}, PlotRange -> All
   ];
 trim = { {0.01, .27}, {.97, .89} };
 imgname = "Wignerfunction_squeezed_" <> TextString[z] <> ".png";
 Export[imgname, 
  ImageResize[
   ImageTrim[Image[plot, ImageResolution -> 400], trim, 
    DataRange -> { {0, 1}, {0, 1} }], 2000, Resampling -> "Linear"] ];
 ]

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

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

20 May 2019

image/png

569,857 byte

1,175 pixel

2,000 pixel

b6da67808b2a434304f08433f84a5bd4ad64d138

File history

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

Date/TimeThumbnailDimensionsUserComment
current17:45, 20 May 2019Thumbnail for version as of 17:45, 20 May 20192,000 × 1,175 (557 KB)wikimediacommons>Geek3User created page with UploadWizard

The following page uses this file: