Professional Documents
Culture Documents
Perturbation Theory in 1D
Perturbation Theory in 1D
1
INDEX
Sl. No. Contents Page No.
1 INTRODUCTION 3
2 AIM 3
3 APPARATUS 3
4 THEORY 3-4
5 ALGORITHM 4-5
6 CODE 5-7
7 RESULTS 8
8 CONCLUTION 8
2
INTRODUCTION
PerturbaBon theory within a 1-dimensional box deals with examining the impact of a
slight perturbing potenBal on the energy states and wave paSerns of a parBcle restricted to
the box. The perturbaBon is considered minor enough to be treated as a small adjustment to
the iniBal setup. This technique is commonly employed to esBmate alteraBons in quantum
systems and can offer understanding into how perturbaBons influence parBcle behavior inside
the box.
AIM
To find probability amplitude, probability densiBes, zeroth-order eigenfuncBon of POB
and zeroth-order probability density of POB.
APPARATUS
Computer, Jupyter Notebook, Spyder
THEORY
In quantum mechanics, the perturbaBon theory is used to find an approximate soluBon
for a quantum system that can be divided into an unperturbed part (which is relaBvely easy
to solve) and a perturbaBon (a smaller component that "perturbs" the system). The goal is to
find an approximaBon to the energy and wavefuncBon of the perturbed state by considering
how the perturbaBon affects the unperturbed state.
The general idea of perturbaBon theory involves expanding the Hamiltonian of the system
into a series of terms, usually in powers of a small parameter. The Hamiltonian of the full
system can be wriSen as:
H = H₀ + λV
Where :
The energy correcBon to the nth order of perturbaBon theory is given by:
Eₙ = ⟨ψ⁰ₙ|V|ψ⁰ₙ⟩
3
Where:
• Eₙ is the nth order energy correcBon.
• |ψ⁰ₙ⟩ is the nth order unperturbed wavefuncBon.
The total energy of the perturbed state up to nth order is then the sum of the unperturbed
energy and the energy correcBons:
E_total = E⁰ + E₁ + E₂ + ... + Eₙ
Similarly, the nth order corrected wavefuncBon can be found using the perturbaBon
operator V and the unperturbed wavefuncBon:
Where:
ALGORITHM
1. ImporBng Libraries:
• NumPy: A library for numerical computaBons in Python.
• Matplotlib: A plovng library for creaBng visualizaBons
5. PerturbaBon PotenBal:
• pert2(V0): Defines a perturbaBon potenBal that is proporBonal to x^2,
controlled by the parameter V0.
4
6. CalculaBng Energy CorrecBon:
• Chooses an nth zero-order wavefuncBon.
• Calculates the perturbaBon potenBal V(x) using pert2.
• Computes the 1st order energy correcBon.
• Prints the old energy, correcBon, and new energy.
CODE
import numpy as np
from numpy import linspace, sqrt, pi, sin, trapz, zeros, size
import matplotlib.pyplot as plt
from matplotlib.pyplot import plot, Btle, show, xlabel, ylabel, legend
hbar=1
m=1
L = 1.0
x = linspace(0,L,101)
5
kn = n*pi/L
E = (hbar*kn)**2/(2*m)
return E
# This inline funcBon defines a pertubraBon running from 0 to V0, proporBonal to x^2
def pert2(V0):
V = x**2*V0
return V
6
if k==n:
pass
else:
ck = trapz(psi0(n)*V*psi0(k))/(E0(n)-E0(k)) # Calculate the coefficient for the kth 0-order
eigenfuncBon
cklist[ik] = ck
psi_perturbed += ck*psi0(k) # Add that contribuBon to the corrected eigenfuncBon,
with appropriate coefficient
print (k, ck**2) # Print some results
ik += 1
# Normalize
norm1 = trapz(psi_perturbed**2,x) # Get <psi|psi> for the corrected eigenfuncBon
psi_perturbed = psi_perturbed/norm1**.5 # Normalize this |psi>
norm2 = trapz(psi_perturbed**2,x) # Just checking that the new <psi|psi> equals 1
print ("Old, new normalizaBon:", norm1, norm2)
show()
7
RESULTS
CONCLUTION
The presented code exemplifies the pracBcal implementaBon of perturbaBon theory in
quantum mechanics. It showcases how even small perturbaBons can lead to significant
changes in energy eigenvalues and wavefuncBons. Through a step-by-step approach, the
code computes energy correcBons, coefficients, and perturbed wavefuncBons. The results
are visualized using plots, highlighBng the differences between original and perturbed
states.