Skip to content

QS-03 · Virtual laboratory

Quantum Lab

All simulations use ħ = m = 1 natural units unless SI units are shown. Methods, grids and boundary conditions are listed with each result.

units atomic units (ħ = mₑ = 1), lengths in a₀methods 3refs 2Methods & citations ↓

AI Setup Advisor

Describe your quantum system and goal in plain words. The AI suggests a potential, starting state and solver settings.

AI suggestion

Potential

ω1

Initial state

Center x₀-2
Momentum k₀0

Minimum-uncertainty packet with σ₀ = 1/√(2ω) (ω = 1 outside the harmonic potential).

Solver

Δt0.01
Grid points:
Boundary:

iℏ ∂tψ=[−ℏ22m∂x2+V(x)]ψi\hbar\,\partial_t\psi = \left[-\tfrac{\hbar^2}{2m}\partial_x^2 + V(x)\right]\psi

numerical
-30-20-100102030-1-0.500.51xscaled amplitudeV(x) (scaled)Re ψ|ψ|²

Drag to pan · Shift + scroll to zoom · hover for coordinates

t
0.000
steps
0
state
Coherent in Harmonic
overlap
select a level
method Crank–Nicolson (unitary), N=600, dx=0.1002, Δt=0.01precision float64BC ψ(±30)=0

3D |ψ(x,t)|² Surface

numerical

Each strip is the exact simulated |ψ(x,t)|² at one recorded time (no smoothing or fitting); height is normalised to the largest value shown.

Expectation values

live
⟨x⟩——
⟨p⟩——
⟨E⟩——
⟨E⟩ / ħω
—

Uncertainty principle

live
Δx
—
Δp
—
Δx·Δp
—
ħ/2
0.5000

bar: Δx·Δp (0–3) · marker: ħ/2

⚠ Numerical precision / discretization issue detected

Δp from ⟨p²⟩ = ∫|∂ₓψ|²dx (finite differences). Not forced — raw numerical value.

Solver diagnostics

live
‖ψ‖²
0.000000
Norm error
1.0000
Energy drift
—
t
0.000

⚠ Norm drift detected (1.0000)

Energy spectrum

Compare with Eₙ = (n + ½)ħω

numerical
12 bound states shown
Levels12
En = 0, E = 0.49969 ħωn=0 E0=0.500 ħωn = 1, E = 1.49843 ħωn=1 E1=1.498 ħωn = 2, E = 2.49592 ħωn=2 E2=2.496 ħωn = 3, E = 3.49214 ħωn=3 E3=3.492 ħωn = 4, E = 4.48711 ħωn=4 E4=4.487 ħωn = 5, E = 5.48081 ħωn=5 E5=5.481 ħωn = 6, E = 6.47324 ħωn=6 E6=6.473 ħωn = 7, E = 7.46440 ħωn=7 E7=7.464 ħωn = 8, E = 8.45429 ħωn=8 E8=8.454 ħωn = 9, E = 9.44290 ħωn=9 E9=9.443 ħωn = 10, E = 10.43024 ħωn=10 E10=10.430 ħωn = 11, E = 11.41630 ħωn=11 E11=11.416 ħω⟨E⟩ = NaN ħω

⟨E⟩ lies below E₀. For a superposition, ⟨E⟩ is a weighted average and need not equal any single eigenvalue.

ΔE 0→1
0.9987 ħω
ΔE 1→2
0.9975 ħω
ΔE 2→3
0.9962 ħω
ΔE 3→4
0.9950 ħω
ΔE 4→5
0.9937 ħω
ΔE 5→6
0.9924 ħω

Physics insight

context

Schrödinger equation

iℏ∂ψ∂t=[−ℏ22md2dx2+12mω2x2]ψi\hbar\frac{\partial\psi}{\partial t} = \left[-\frac{\hbar^2}{2m}\frac{d^2}{dx^2} + \tfrac12 m\omega^2 x^2\right]\psi

Hamiltonian

H^=T^+V^=−ℏ22md2dx2+V(x)\hat H = \hat T + \hat V = -\frac{\hbar^2}{2m}\frac{d^2}{dx^2} + V(x)

Boundary

Dirichlet boundary — ψ = 0 at x = ±30

Energy levels are equally spaced, Eₙ = (n + ½)ħω. Coherent states keep their shape and ⟨x⟩, ⟨p⟩ oscillate like a classical particle while retaining minimum uncertainty.
ħω = 1.000 · numerical E₀ = 0.49969 (exact 0.50000)

Measurement history

sampled from |ψ|²

No measurements yet. Click "Measure x" or "Measure p".

Ensemble averaging

Repeated measurements on identically prepared copies of the current state (no collapse).

Monte Carlo
Measurements per run1000

Measurements: 0 — press Run ensemble.

QS-03 · Methods

Methods, units & citations

units
atomic units (ħ = mₑ = 1), lengths in a₀
  • ▸Crank–Nicolson time propagation (unitary, 2nd order)
  • ▸Finite-difference Hamiltonian diagonalisation
  • ▸Born-rule sampling for measurement

References

  1. [1]Crank J., Nicolson P. A practical method for numerical evaluation of solutions of PDEs of the heat-conduction type. Proc. Camb. Phil. Soc. 43, 50 (1947).
  2. [2]Goldberg A., Schey H. M., Schwartz J. L. Computer-generated motion pictures of 1D quantum-mechanical transmission and reflection. Am. J. Phys. 35, 177 (1967).

How to cite

Quantiphy Studio — Quantum Lab module (2026). https://pixel-perfect-view-1726.lovable.app/quantum-lab