2DTISE
2DTISE
2DTISE
net/publication/356858518
CITATION READS
1 3,512
1 author:
5 PUBLICATIONS 1 CITATION
SEE PROFILE
All content following this page was uploaded by Wai Kui Wong on 08 December 2021.
I. INTRODUCTION
−2 1 0 ... ... 0
1D time independent Schrodinger equation is a well- .
−2 1 . . . . . . ..
1
known problem, which is an eigenvalue and eigenvector
.
problem. It can be solved analytical and numerically. In 1 −2 1 . . . ..
1 0
numerical method, one of the methods is using the finite − (4)
...
2∆y 2 .. .. . .
difference method.[1] . . . 0
. .. .. ..
..
. . . 1
0 . . . . . . 0 1 −2
ℏ2 ∂ 2 ψ
− + V (x) ψ = Eψ (1) And the potential energy operator is
2m ∂x2
For finite difference scheme, the approximation we used V1 0 0 ... ... 0
2
for the term ∂∂xψ2 is three-point stencil. It will turn the ..
0 V2 0 ... ... .
2
term ∂∂xψ2 form continuous wave function to discrete wave
..
2
0 0 V3 0 . . . .
function. L m
.
(5)
.. .. .. . .
. . . 0
. .. .. ..
..
. . . 0
∂2ψ ψi+1 − 2ψi + ψi−1
= (2) 0 . . . . . . 0 0 VN −1
∂x2 ∆x2
The problem now become a matrix problem, and it can
After that, the 1D time independent Schrodinger equa- be solved using computer.[2]
tion can be rewritten as
II. 2D TIME INDEPENDENT SCHRODINGER
EQUATION
1 1
∆y 2+ L2 mV1 − 2∆y 2 0 0...
1 1 1
− 2∆y 2 + L2 mV2 − 2∆y
∆y 2 2 0...
The 2D time independent Schrodinger equation can be
1
... ... ... − 2∆y
2 written as
1 1
...0 0 − 2∆y 2 ∆y 2 + L2 mVN −1
ℏ2 ∂ 2 ψ ∂ 2 ψ
ψ1 ψ1
− + + V (x, y) ψ = Eψ (6)
ψ2 2 ψ2 2m ∂x2 ∂y 2
. . . = L mE . . .
· · · ψ1N
∂2ψ
ψ11 ψ12 = DΨT (14)
ψ21 ψ22 · · · ψ2N ∂y 2
(8)
.. .. .. .. Since matrix D is symmetric,
. . . .
ψN 1 ψN 2 · · · ψN N
D = DT (15)
It is necessary for us to turn the N × N matrix into a
vector with length N 2 so that Scipy can read this. To do Therefore,
so, resharp() function is used.
T
DΨT = (ΨD) (16)
ψ11
. In the end,
..
ψ1N ∂2ψ ∂2ψ
+ = Dxx ⊕ Dyy (17)
ψ21
∂x2 ∂y 2
(9)
..
.
ψ2N
= Dxx ⊗ I + I ⊗ Dyy (18)
..
.
The term Dxx ⊗ I can be written as
ψN N
2 2 −2I I 0 ... ... 0
To Deal with the terms of ∂∂xψ2 and ∂∂yψ2 , one of the .
I −2I I . . . . . . ..
methods is to trade the problem as a discrete Laplacian
on a regular grid. ..
1 0 I −2I I . . . .
Let D is matrix where Dxx ⊗ I = (19)
2
∆x .
. .. .. . .
. . . . 0
. . . .
.. .. .. .. I
−2 1 0 ... ... 0
. 0 . . . . . . 0 I −2I
−2 1 . . . . . . ..
1
..
1 0 0
0 1 −2 1 . . . .
D= (10) Where I = 0 . . . 0. The term I ⊗ Dyy can be
. .. .. . .
..
. . . 0
. .. ..
0 0 1
.. ..
. . . 1 written as
0 . . . . . . 0 1 −2
D 0 0 ... ... 0
.
D 0 . . . . . . ..
0
L = Dxx ⊕ Dyy (11)
..
0 0 D 0 ... .
I ⊗ Dyy =
. .. .. . .
(20)
..
. . . 0
. .. .. ..
..
= Dxx ⊗ I + I ⊗ Dyy (12) . . . 0
0 ... ... 0 0 D
Where L is the Laplacian, I is the identity matrix. The
The potential energy is also a grid, we can write down
Laplacian is the Kronecker sum of two sparse matrices
the matrix form of this
Dxx and Dyy . The relation between equation 11 and
equation 12 can be shown.[3]
Assume that V11 0 0 ... ... 0
..
0 V12 0 ... ... .
..
∂2ψ
0 0 V13 0 ... .
(13)
DΨ = VI = (21)
∂x2 .
.. .. .. ..
. . . 0
2 . .. .. ..
To find the term ∂∂yψ2 , we can say x and y are swapped ..
. . . 0
that ΨT represent ψ. Therefore, 0 ... ... 0 0 VN N
3
0.75 0.00135
0.00270
0.50
0.00405
0.25
ℏ2 0.00540
− (D ⊕ D) + V I ψ = Eψ (22) 0.00 0.00675
2m
Y
0.25 0.00810
0.00945
0.50
0.01080
2 2 2 0.75
The dimension of the E is N × N and N for ψ. For 0.01215
ℏ=1, 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X
0.000072
0.25
A. 2D infinite square wall potential 0.000054
0.50
0.000036
0.75 0.000018
The 1st case I did is the 2D infinite square wall po-
tential. The wavefunction is confined in N × N 2D 1.00 0.000000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X
space.[4][5]
Plot of V 1e 15 2
1.00
0.25 14
E6 E7
12
0.00 0
Y
10 E4 E5
2
mE/
0.25
8 E3
0.50
6
E1 E2
0.75 4
2 E0
1.00 2
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X 0 2 4 6 8
(nx)2 + (ny)2
FIG. 1. Plot of the 2D infinite square wall potential. FIG. 4. Plot of the eigenvalues from ground state to 9th state.
4
Y
0.0027 0.000072
0.25 0.25
0.0054 0.000054
0.50 0.50
0.0081 0.000036
0.75 0.75 0.000018
0.0108
1.00 1.00 0.000000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 5. Plot of the eigenfunctions for 1st state. FIG. 8. Plot of the probability density for 2nd state.
0.000072 0.0027
0.25 0.25
0.000054 0.0054
0.50 0.50
0.000036 0.0081
0.75 0.000018 0.75
0.0108
1.00 0.000000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 6. Plot of the probability density for 1st state. FIG. 9. Plot of the eigenfunctions for 3rd state.
0.0027 0.000072
0.25 0.25
0.0054 0.000054
0.50 0.50
0.0081 0.000036
0.75 0.75 0.000018
0.0108
1.00 1.00 0.000000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 7. Plot of the eigenfunctions for 2nd state. FIG. 10. Plot of the probability density for 3rd state.
5
Y
0.0028
0.00008
0.25 0.25
0.0056
0.00006
0.50 0.0084 0.50
0.00004
0.75 0.0112 0.75 0.00002
0.0140
1.00 1.00 0.00000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 11. Plot of the eigenfunctions for 4th state. FIG. 14. Plot of the probability density for 5th state.
0.0000896 0.00345
0.25 0.25
0.0000672 0.00690
0.50 0.50
0.0000448 0.01035
0.75 0.0000224 0.75
0.01380
1.00 0.0000000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 12. Plot of the probability density for 4th state. FIG. 15. Plot of the eigenfunctions for 6th state.
0.0000
0.00012
0.25 0.0026 0.25
0.00009
0.50 0.0052 0.50
0.00006
0.75 0.0078 0.75 0.00003
0.0104
1.00 1.00 0.00000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 13. Plot of the eigenfunctions for 5th state. FIG. 16. Plot of the probability density for 6th state.
6
Y
0.00345 0.000104
0.25 0.25
0.00690 0.000078
0.50 0.50
0.01035 0.000052
0.75 0.75 0.000026
0.01380
1.00 1.00 0.000000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 17. Plot of the eigenfunctions for 7th state. FIG. 20. Plot of the probability density for 8th state.
0.00012 0.0033
0.25 0.25
0.00009 0.0066
0.50 0.50
0.00006 0.0099
0.75 0.00003 0.75
0.0132
1.00 0.00000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 18. Plot of the probability density for 7th state. FIG. 21. Plot of the eigenfunctions for 9th state.
0.0033 0.000104
0.25 0.25
0.0066 0.000078
0.50 0.50
0.0099 0.000052
0.75 0.75 0.000026
0.0132
1.00 1.00 0.000000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 19. Plot of the eigenfunctions for 8th state. FIG. 22. Plot of the probability density for 9th state.
7
0.00 0.002175
Y
0.001740
1 0.25
X2 + Y 2
V = (24) 0.001305
2 0.50
0.000870
0.75 0.000435
1.00 0.000000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X
0.75 0.88
0.77
0.50 Plot of eigenvalues
0.66 8 E6 E7 E8 E9
0.25
0.55
0.00
7
Y
0.44
0.25 6 E3 E4 E5
0.33
2
0.50 5
0.22
mE/
0.75 0.11 E1 E2
4
1.00 0.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 3
X
2 E0
FIG. 23. Plot of the 2D simple harmonic oscillator potential. 0 2 4 6 8
(nx)2 + (ny)2
0.00675 0.0464
0.75 0.75
0.01350 0.0348
0.50 0.50
0.02025 0.0232
0.25 0.25 0.0116
0.02700
0.00 0.03375 0.00 0.0000
Y
0.04725 0.0232
0.50 0.50
0.05400 0.0348
0.75 0.75
0.06075 0.0464
1.00 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 24. Plot of the eigenfunctions for ground state. FIG. 27. Plot of the eigenfunctions for 1st state.
8
Y
0.02
0.00132
0.25 0.25 0.03
0.00099
0.50 0.50 0.04
0.00066
0.05
0.75 0.00033 0.75
0.06
1.00 0.00000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 28. Plot of the probability density for 1st state. FIG. 31. Plot of the eigenfunctions for 3rd state.
0.0116 0.001740
0.25 0.25
0.0232 0.001305
0.50 0.50
0.0348 0.000870
0.75 0.75 0.000435
0.0464
1.00 1.00 0.000000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 29. Plot of the eigenfunctions for 2nd state. FIG. 32. Plot of the probability density for 3rd state.
0.00132
0.25 0.25 0.01
0.00099
0.02
0.50 0.50
0.00066
0.03
0.75 0.00033 0.75
0.04
1.00 0.00000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 30. Plot of the probability density for 2nd state. FIG. 33. Plot of the eigenfunctions for 4th state.
9
Y
0.00100 0.0104
0.25 0.25
0.00075 0.0208
0.50 0.50
0.00050 0.0312
0.75 0.00025 0.75
0.0416
1.00 0.00000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 34. Plot of the probability density for 4th state. FIG. 37. Plot of the eigenfunctions for 6th state.
0.01 0.00100
0.25 0.25
0.02 0.00075
0.50 0.50
0.03 0.00050
0.75 0.75 0.00025
0.04
1.00 1.00 0.00000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 35. Plot of the eigenfunctions for 5th state. FIG. 38. Plot of the probability density for 6th state.
0.00096 0.0104
0.25 0.25
0.00072 0.0208
0.50 0.50
0.00048 0.0312
0.75 0.00024 0.75
0.0416
1.00 0.00000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 36. Plot of the probability density for 5th state. FIG. 39. Plot of the eigenfunctions for 7th state.
10
Y
0.00100 0.0108
0.25 0.25
0.00075 0.0216
0.50 0.50
0.00050 0.0324
0.75 0.00025 0.75
0.0432
1.00 0.00000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 40. Plot of the probability density for 7th state. FIG. 43. Plot of the eigenfunctions for 9th state.
FIG. 41. Plot of the eigenfunctions for 8th state. FIG. 44. Plot of the probability density for 9th state.
0.00 0.00145
Y
0.00116
0.25
0.00087
0.50
0.00058
0.75 0.00029
1.00 0.00000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X
C. 2D circular well
Plot of Probability Density for 0 state
1.00
0.000216
The 3nd case is the 2D circular well potential. The 0.75
0.000192
wavefunction is confined in 0.50
0.000168
0.25 0.000144
0.00 0.000120
Y
s 0.000096
2 2 0.25
X Y 0.000072
V = 1 − 2.1 × π × + (25)
L L 0.50
0.000048
0.75 0.000024
1.00 0.000000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X
0.75 352
176 12
0.25 E5
132 10
2
E3 E4
mE/
0.50
88 8
0.75 44 6
E1 E2
1.00 0
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 4
X
2 E0
0 2 4 6 8
FIG. 45. Plot of the 2D circular well. (nx)2 + (ny)2
0.00624 0.0033
0.25 0.25
0.00468 0.0066
0.50 0.50
0.00312 0.0099
0.75 0.00156 0.75
0.0132
1.00 0.00000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 46. Plot of the eigenfunctions for ground state. FIG. 49. Plot of the eigenfunctions for 1st state.
12
Y
0.000108 0.0033
0.25 0.25
0.000081 0.0066
0.50 0.50
0.000054 0.0099
0.75 0.000027 0.75
0.0132
1.00 0.000000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 50. Plot of the probability density for 1st state. FIG. 53. Plot of the eigenfunctions for 3rd state.
0.0033 0.000104
0.25 0.25
0.0066 0.000078
0.50 0.50
0.0099 0.000052
0.75 0.75 0.000026
0.0132
1.00 1.00 0.000000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 51. Plot of the eigenfunctions for 2nd state. FIG. 54. Plot of the probability density for 3rd state.
0.000108 0.0033
0.25 0.25
0.000081 0.0066
0.50 0.50
0.000054 0.0099
0.75 0.000027 0.75
0.0132
1.00 0.000000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 52. Plot of the probability density for 2nd state. FIG. 55. Plot of the eigenfunctions for 4th state.
13
Y
0.000104 0.0033
0.25 0.25
0.000078 0.0066
0.50 0.50
0.000052 0.0099
0.75 0.000026 0.75
0.0132
1.00 0.000000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 56. Plot of the probability density for 4th state. FIG. 59. Plot of the eigenfunctions for 6th state.
0.0099 0.000108
0.25 0.25
0.0132 0.000081
0.50 0.50
0.0165 0.000054
0.75 0.0198 0.75 0.000027
FIG. 57. Plot of the eigenfunctions for 5th state. FIG. 60. Plot of the probability density for 6th state.
0.000224 0.0033
0.25 0.25
0.000168 0.0066
0.50 0.50
0.000112 0.0099
0.75 0.000056 0.75
0.0132
1.00 0.000000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 58. Plot of the probability density for 5th state. FIG. 61. Plot of the eigenfunctions for 7th state.
14
Y
0.000108 0.0045
0.25 0.25
0.000081 0.0090
0.50 0.50
0.000054 0.0135
0.75 0.000027 0.75
0.0180
1.00 0.000000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 62. Plot of the probability density for 7th state. FIG. 65. Plot of the eigenfunctions for 9th state.
FIG. 63. Plot of the eigenfunctions for 8th state. FIG. 66. Plot of the probability density for 9th state.
0.00 0.000240
Y
0.000192
0.25
0.000144
0.50
0.000096
0.75 0.000048
1.00 0.000000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X
0.25 0.00522
0.00 0.00435
Y
0.00348
0.25
2 2
1
2 ( XL ) +( YL )
(26) 0.00261
V = 1 − e− 42
0.50
0.00174
0.75 0.00087
1.00 0.00000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X
0.4 6 E3 E4 E5
0.25
0.3
2
0.50 5
mE/
0.2
0.75 0.1 4 E1 E2
1.00 0.0
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 3
X
2 E0
FIG. 67. Plot of the 2D inverted Gaussian well potential. 0 2 4 6 8
(nx)2 + (ny)2
0.0092 0.0648
0.75 0.75
0.0184 0.0486
0.50 0.50
0.0276 0.0324
0.25 0.25 0.0162
0.0368
0.0644 0.0324
0.50 0.50
0.0736 0.0486
0.75 0.75
0.0828 0.0648
1.00 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 68. Plot of the eigenfunctions for ground state. FIG. 71. Plot of the eigenfunctions for 1st state.
16
Y
0.002500 0.0135
0.25 0.25
0.001875 0.0000
0.50 0.50
0.001250 0.0135
0.75 0.000625 0.75 0.0270
FIG. 72. Plot of the probability density for 1st state. FIG. 75. Plot of the eigenfunctions for 3rd state.
0.0162 0.00324
0.25 0.25
0.0324 0.00243
0.50 0.50
0.0486 0.00162
0.75 0.75
0.0648 0.00081
FIG. 73. Plot of the eigenfunctions for 2nd state. FIG. 76. Plot of the probability density for 3rd state.
0.002500 0.0135
0.25 0.25
0.001875 0.0270
0.50 0.50
0.001250 0.0405
0.75 0.000625 0.75
0.0540
1.00 0.000000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 74. Plot of the probability density for 2nd state. FIG. 77. Plot of the eigenfunctions for 4th state.
17
Y
0.00180 0.0145
0.25 0.25
0.00135 0.0290
0.50 0.50
0.00090 0.0435
0.75 0.00045 0.75
0.0580
1.00 0.00000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 78. Plot of the probability density for 4th state. FIG. 81. Plot of the eigenfunctions for 6th state.
0.0135 0.00208
0.25 0.25
0.0270 0.00156
0.50 0.50
0.0405 0.00104
0.75 0.75 0.00052
0.0540
1.00 1.00 0.00000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 79. Plot of the eigenfunctions for 5th state. FIG. 82. Plot of the probability density for 6th state.
0.00180 0.0145
0.25 0.25
0.00135 0.0290
0.50 0.50
0.00090 0.0435
0.75 0.00045 0.75
0.0580
1.00 0.00000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 80. Plot of the probability density for 5th state. FIG. 83. Plot of the eigenfunctions for 7th state.
18
Y
0.00208 0.013
0.25 0.25
0.00156 0.026
0.50 0.50
0.00104 0.039
0.75 0.00052 0.75
0.052
1.00 0.00000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 84. Plot of the probability density for 7th state. FIG. 87. Plot of the eigenfunctions for 9th state.
FIG. 85. Plot of the eigenfunctions for 8th state. FIG. 88. Plot of the probability density for 9th state.
0.00 0.00210
Y
0.00168
0.25
0.00126
0.50
0.00084
0.75 0.00042
1.00 0.00000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X
0.25 0.00522
Y
0.00870
However, this potential is very hard to be calculated 0.25
due to the divergent problem. One of the method is by 0.01044
adding a small ϵ which can shift the function so that the 0.50 0.01218
function can be convergent. 0.75 0.01392
1.00 0.01566
Plot of 1/x 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X
0
4000
f(x)
x
0.000104
0.25
0.000078
FIG. 89. Plot of f (x) = − x1 . 0.50
0.000052
0.75 0.000026
Another method is adding a convergence factor e−αr ,
1.00 0.000000
which is the same trick as Yukawa potential.[6] 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X
e−αr
V (r) = − (28) FIG. 92. Plot of the probability density for ground state.
r
1.00
Plot of V
0
Plot of eigenvalues
12 E8 E9
0.75 60
120 10
0.50
E6 E7
180
E5
0.25 8
240
E4
2
mE/
0.00 300
Y
6 E3
0.25 360
0.50 420 4 E1 E2
480
0.75 E0
2
540
1.00 0 2 4 6 8
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 (nx)2 + (ny)2
X
Y
0.00435 0.000192
0.25 0.25
0.00870 0.000144
0.50 0.50
0.01305 0.000096
0.75 0.75 0.000048
0.01740
1.00 1.00 0.000000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 94. Plot of the eigenfunctions for 1st state. FIG. 97. Plot of the probability density for 2nd state.
0.000192 0.00405
0.25 0.25
0.000144 0.00810
0.50 0.50
0.000096 0.01215
0.75 0.000048 0.75
0.01620
1.00 0.000000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 95. Plot of the probability density for 1st state. FIG. 98. Plot of the eigenfunctions for 3rd state.
0.00435 0.0001620
0.25 0.25
0.00870 0.0001215
0.50 0.50
0.01305 0.0000810
0.75 0.75 0.0000405
0.01740
1.00 1.00 0.0000000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 96. Plot of the eigenfunctions for 2nd state. FIG. 99. Plot of the probability density for 3rd state.
21
Y
0.00435 0.000156
0.25 0.25
0.00870 0.000117
0.50 0.50
0.01305 0.000078
0.75 0.75 0.000039
0.01740
1.00 1.00 0.000000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 100. Plot of the eigenfunctions for 4th state. FIG. 103. Plot of the probability density for 5th state.
0.000192 0.0052
0.25 0.25
0.000144 0.0104
0.50 0.50
0.000096 0.0156
0.75 0.000048 0.75
0.0208
1.00 0.000000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 101. Plot of the probability density for 4th state. FIG. 104. Plot of the eigenfunctions for 6th state.
0.000260
0.25 0.0039 0.25
0.000195
0.50 0.0078 0.50
0.000130
0.0117
0.75 0.75 0.000065
0.0156
1.00 1.00 0.000000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 102. Plot of the eigenfunctions for 5th state. FIG. 105. Plot of the probability density for 6th state.
22
Y
0.0052 0.0002700
0.25 0.25
0.0104 0.0002025
0.50 0.50
0.0156 0.0001350
0.75 0.75 0.0000675
0.0208
1.00 1.00 0.0000000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 106. Plot of the eigenfunctions for 7th state. FIG. 109. Plot of the probability density for 8th state.
0.000260 0.0052
0.25 0.25
0.000195 0.0104
0.50 0.50
0.000130 0.0156
0.75 0.000065 0.75
0.0208
1.00 0.000000 1.00
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 107. Plot of the probability density for 7th state. FIG. 110. Plot of the eigenfunctions for 9th state.
0.0052 0.0002700
0.25 0.25
0.0104 0.0002025
0.50 0.50
0.0156 0.0001350
0.75 0.75 0.0000675
0.0208
1.00 1.00 0.0000000
1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00 1.00 0.75 0.50 0.25 0.00 0.25 0.50 0.75 1.00
X X
FIG. 108. Plot of the eigenfunctions for 8th state. FIG. 111. Plot of the probability density for 9th state.
23
plt.title("Plot of V")
import numpy as np plt.xlabel(r’$X$’)
from scipy.sparse.linalg import eigsh plt.ylabel(r’$Y$’)
from scipy.sparse.linalg import eigs plt.savefig(os.path.join(my_path,
import matplotlib.pyplot as plt ’Figure_{}.{}.0.pdf’.format(p,n)))
from scipy import sparse ##plot eigenvector
from numba import jit plot1 = plt.figure(1,figsize=(8,6))
import os cs = plt.contourf(X,Y, get_e(n),300)
my_path = os.path.abspath(r"#your path") plt.colorbar()
for c in cs.collections:
##Create meshgrid for x and y c.set_rasterized(True)
N = 100
L = 2 plt.title("Plot of Eigenfunction for {}
X,Y = np.meshgrid(np.linspace(-L/2,L/2,N, state".format(n))
dtype=float),np.linspace(-L/2,L/2,N, plt.xlabel(r’$X$’)
dtype=float)) plt.ylabel(r’$Y$’)
##potential m\deltax^2 unit plt.savefig(os.path.join(my_path,
p = ’2DHA’ ’Figure_{}.{}.1.pdf’.format(p,n)))
##plot probability density
#V = 0*X plot2 = plt.figure(2, figsize=(8,6))
cs = plt.contourf(X,Y, get_e(n)**2,300)
# SHO plt.colorbar()
#V = ((X)**2 + (Y)**2)/2 for c in cs.collections:
c.set_rasterized(True)
# Circular Well
#from scipy.signal import square plt.title("Plot of Probability Density for {}
#V = 200.0*(1.0 - state".format(n))
square(2.1*np.pi*np.sqrt((X/L)**2 + plt.xlabel(r’$X$’)
(Y/L)**2))) plt.ylabel(r’$Y$’)
plt.savefig(os.path.join(my_path,
# Inverted Gaussian Well ’Figure_{}.{}.2.pdf’.format(p,n)))
#V = (1.0 - np.exp(-0.5*((X/L)**2 + ##plot eigenvalues
(Y/L)**2)/0.25**2)) plot3 = plt.figure(3)
alpha = eigenvalues[0]/2
# 2d hydengen atom with convergence E_a = eigenvalues/alpha
factor(yukawa potential) b = np.arange(0, len(eigenvalues),1)
esp = 150 plt.scatter(b, E_a, s=1444, marker="_",
V = -(np.exp(-esp*np.sqrt((X)**2 + linewidth=2, zorder=3)
(Y)**2)))/((X)**2 + (Y)**2) plt.title("Plot of eigenvalues")
plt.xlabel(’$(n_{x})^2+(n_{y})^2$’)
##create matrix plt.ylabel(r’$mE/\hbar^2$’)
diag = np.ones([N])
24
plt.plot(x,f(x))
Appendix B: Code for 2D Hydrogen atom like plt.plot(x,f1(x))
potential
legend1=plt.legend([’without eps’,’with eps’],
loc =4)
ax = plt.gca().add_artist(legend1)
import numpy as np
plt.tight_layout()
import matplotlib.pyplot as plt
plt.show()
def f(x):
[1] D. Griffiths, Introduction of Quantum Mechanics (Pren- [5] P. Virtanen, R. Gommers, T. E. Oliphant, M. Haber-
tice Hall, Inc., 1995). land, T. Reddy, D. Cournapeau, E. Burovski, P. Peterson,
[2] A. Doss, Solving toeplitz systems of equations and matrix W. Weckesser, J. Bright, S. J. van der Walt, M. Brett,
conditioning. J. Wilson, K. J. Millman, N. Mayorov, A. R. J. Nel-
[3] R. A. Horn and C. R. Johnson, Topics in Matrix Analysis son, E. Jones, R. Kern, E. Larson, C. J. Carey, İ. Polat,
(Cambridge University Press, 1991). Y. Feng, E. W. Moore, J. VanderPlas, D. Laxalde, J. Perk-
[4] C. R. Harris, K. J. Millman, S. J. van der Walt, R. Gom- told, R. Cimrman, I. Henriksen, E. A. Quintero, C. R. Har-
mers, P. Virtanen, D. Cournapeau, E. Wieser, J. Tay- ris, A. M. Archibald, A. H. Ribeiro, F. Pedregosa, P. van
lor, S. Berg, N. J. Smith, R. Kern, M. Picus, S. Hoyer, Mulbregt, and SciPy 1.0 Contributors, SciPy 1.0: Fun-
M. H. van Kerkwijk, M. Brett, A. Haldane, J. F. del Rı́o, damental Algorithms for Scientific Computing in Python,
M. Wiebe, P. Peterson, P. Gérard-Marchant, K. Sheppard, Nature Methods 17, 261 (2020).
T. Reddy, W. Weckesser, H. Abbasi, C. Gohlke, and T. E. [6] H. YUKAWA, On the interaction of elementary parti-
Oliphant, Array programming with NumPy, Nature 585, cles. i, Proceedings of the Physico-Mathematical Society
357 (2020). of Japan. 3rd Series 17, 48 (1935).