קובץ:QHO-catstate-odd3-animation.gif
QHO-catstate-odd3-animation.gif (300 × 200 פיקסלים, גודל הקובץ: 231 ק"ב, סוג MIME: image/gif, בלולאה, 150 תמונות, 7.5 שניות)
זהו קובץ שמקורו במיזם ויקישיתוף. תיאורו בדף תיאור הקובץ המקורי (בעברית) מוצג למטה. |
תקציר
תיאורQHO-catstate-odd3-animation.gif |
English: Animation of the quantum wave function of an odd Schrödinger cat state of α=3 in a Quantum harmonic oscillator. The probability distribution is drawn along the ordinate, while the phase is encoded by color. The two coherent contributions interfere in the center which is characteristic for a cat-state. |
תאריך יצירה | |
מקור |
נוצר על־ידי מעלה היצירה . Matplotlib עם נוצרה ה GIF תמונת מפת סיביות |
יוצר | Geek3 |
גרסאות אחרות | QHO-catstate-odd1-animation.gif |
Source Code
The plot was generated with Matplotlib.
Python Matplotlib source code |
---|
#!/usr/bin/python
# -*- coding: utf8 -*-
from math import *
import matplotlib.pyplot as plt
from matplotlib import animation
import numpy as np
plt.rc('path', snap=False)
plt.rc('mathtext', default='regular')
# image settings
fname = 'QHO-catstate-odd3-animation'
width, height = 300, 200
ml, mr, mt, mb = 35, 8, 22, 45
x0, x1 = -6.5, 6.5
y0, y1 = 0, 1.2
nframes = 150
fps = 20
# physics settings
alpha0 = 3.0
omega = 2*pi
def coherent(alpha, x, omega, t, l=1.0):
# Definition of coherent states
# https://en.wikipedia.org/wiki/Coherent_states
psi = (pi*l**2)**-0.25 * np.exp(
-0.5/l**2 * (x - sqrt(2)*l * alpha.real)**2
+ 1j*sqrt(2)/l * alpha.imag * x
+ 0.5j * (alpha0**2*sin(2*omega*t) - omega*t))
return psi
def animate(nframe):
print str(nframe) + ' ',
t = float(nframe) / nframes * 0.5 # animation repeats after t=0.5
alpha = e ** (-1j * omega * t) * alpha0
ax.cla()
ax.axis((x0, x1, y0, y1))
ax.grid(True)
x = np.linspace(x0, x1, 2 * width)
# Definition of cat states in terms of coherent states:
# https://en.wikipedia.org/wiki/Cat_state
psi = coherent(alpha, x, omega, t) - coherent(-alpha, x, omega, t)
psi /= sqrt(2 * (1 - exp(-2*alpha0**2)))
y = np.abs(psi)**2
plt.plot(x, y, lw=2, color='#0000cc')
ax.set_yticks(ax.get_yticks()[:-1])
# create figure and axes
plt.close('all')
fig, ax = plt.subplots(1, figsize=(width/100., height/100.))
bounds = [float(ml)/width, float(mb)/height,
1.0 - float(mr)/width, 1.0 - float(mt)/height]
fig.subplots_adjust(left=bounds[0], bottom=bounds[1],
right=bounds[2], top=bounds[3], hspace=0)
# axes labels
fig.text(0.5 + 0.5 * float(ml-mr)/width, 4./height,
r'$x\ \ [(\hbar/(m\omega))^{1/2}]$', ha='center')
fig.text(5./width, 1.0, '$|\psi|^2$', va='top')
anim = animation.FuncAnimation(fig, animate, frames=nframes)
anim.save(fname + '_.gif', writer='imagemagick', fps=fps)
import os
# compress with gifsicle
commons = 'https://commons.wikimedia.org/wiki/File:'
cmd = 'gifsicle -O3 -k64 --careful --comment="' + commons + fname + '.gif"'
cmd += ' < ' + fname + '_.gif > ' + fname + '.gif'
if os.system(cmd) == 0:
os.remove(fname + '_.gif')
else:
print 'warning: gifsicle not found!'
os.remove(fname + '.gif')
os.rename(fname + '_.gif', fname + '.gif')
|
רישיון
אני, בעל זכויות היוצרים על היצירה הזאת, מפרסם אותה בזאת תחת הרישיונות הבאים:
מוענקת בכך הרשות להעתיק, להפיץ או לשנות את המסמך הזה, לפי תנאי הרישיון לשימוש חופשי במסמכים של גנו, גרסה 1.2 או כל גרסה מאוחרת יותר שתפורסם על־ידי המוסד לתוכנה חופשית; ללא פרקים קבועים, ללא טקסט עטיפה קדמית וללא טקסט עטיפה אחורית. עותק של הרישיון כלול בפרק שכותרתו הרישיון לשימוש חופשי במסמכים של גנו.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
הקובץ הזה מתפרסם לפי תנאי רישיון קריאייטיב קומונז ייחוס 3.0 לא מותאם.
- הנכם רשאים:
- לשתף – להעתיק, להפיץ ולהעביר את העבודה
- לערבב בין עבודות – להתאים את העבודה
- תחת התנאים הבאים:
- ייחוס – יש לתת ייחוס הולם, לתת קישור לרישיון, ולציין אם נעשו שינויים. אפשר לעשות את זה בכל צורה סבירה, אבל לא בשום צורה שמשתמע ממנה שמעניק הרישיון תומך בך או בשימוש שלך.
הנכם מוזמנים לבחור את הרישיון הרצוי בעיניכם.
פריטים שמוצגים בקובץ הזה
מוצג
ערך כלשהו ללא פריט ויקינתונים
20 בספטמבר 2015
image/gif
היסטוריית הקובץ
ניתן ללחוץ על תאריך/שעה כדי לראות את הקובץ כפי שנראה באותו זמן.
תאריך/שעה | תמונה ממוזערת | ממדים | משתמש | הערה | |
---|---|---|---|---|---|
נוכחית | 16:19, 4 באוקטובר 2015 | 200 × 300 (231 ק"ב) | Geek3 | legend added | |
00:46, 21 בספטמבר 2015 | 200 × 300 (250 ק"ב) | Geek3 | {{Information |Description ={{en|1=Animation of the quantum wave function of an odd Schrödinger cat state of α=3 in a Quantum harmonic oscillator. The [[:en:Probability di... |
שימוש בקובץ
אין בוויקיפדיה דפים המשתמשים בקובץ זה.
מטא־נתונים
קובץ זה מכיל מידע נוסף, שכנראה הגיע ממצלמה דיגיטלית או מסורק שבהם הקובץ נוצר או עבר דיגיטציה.
אם הקובץ שונה ממצבו הראשוני, כמה מהנתונים להלן עלולים שלא לשקף באופן מלא את הקובץ הנוכחי.
הערה בקובץ GIF | https://commons.wikimedia.org/wiki/File:QHO-catstate-odd3-animation.gif |
---|