Jump to content

File:Wigner quasiprobability distribution of superpositioned Fock states, grid.png

Page contents not supported in other languages.
This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file (1,515 × 1,466 pixels, file size: 800 KB, MIME type: image/png)

Summary

Description
English: Wigner quasiprobability distribution of superpositioned Fock states, for .

Matplotlib code

import matplotlib.pyplot as plt
import matplotlib as mpl
import numpy as np
import qutip
from qutip import (about, basis, coherent, coherent_dm, displace, fock, ket2dm,
                   plot_wigner, squeeze, thermal_dm, wigner_cmap, wigner)

N_basis = 30
NN = MM = 5

radius = 3
resolution = 600
xvec = np.linspace(-radius, radius, int(resolution))
yvec = np.linspace(-radius, radius, int(resolution))

fig, axes = plt.subplots(NN, MM, figsize=(18, 18),
                         sharex=True, sharey=True)
for n in range(NN):
    for m in range(MM):
        psi = (fock(N_basis, n) + fock(N_basis, m)).unit()
        qutip.plot_wigner(psi, xvec, yvec, fig=fig, ax=axes[n, m])
        if n < NN - 1:
            axes[n, m].set_xlabel("")
        if m > 0:
            axes[n, m].set_ylabel("")
fig.savefig("./wigner.png")
plt.close()

Date
Source Own work
Author Cosmia Nebula

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

30 August 2024

image/png

File history

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

Date/TimeThumbnailDimensionsUserComment
current04:05, 31 August 2024Thumbnail for version as of 04:05, 31 August 20241,515 × 1,466 (800 KB)Cosmia Nebulatrim
04:04, 31 August 2024Thumbnail for version as of 04:04, 31 August 20241,800 × 1,800 (557 KB)Cosmia NebulaUploaded while editing "Wigner quasiprobability distribution" on wiki.riteme.site

The following page uses this file:

Metadata