Eigenstates of ANY 1D Potential in PYTHON

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ส.ค. 2024

ความคิดเห็น • 64

  • @eduardoh.m2072
    @eduardoh.m2072 3 ปีที่แล้ว +6

    You sir, you are a freaking beast! Keep it up and I'll be here every single time!

  • @josephjones2211
    @josephjones2211 3 ปีที่แล้ว +20

    When done in discrete form like this it reminds me of solving a system of lots of masses connected by springs. You get an almost identical tradiagonal matrix

    • @MrPSolver
      @MrPSolver  3 ปีที่แล้ว +5

      Is the tridiagonal matrix for the system of masses symmetric?

    • @MrPSolver
      @MrPSolver  3 ปีที่แล้ว +10

      The system of masses would be a great idea for a future video!

    • @josephjones2211
      @josephjones2211 3 ปีที่แล้ว +4

      @@MrPSolver yes I did the problem just yesterday in my dynamical systems class

    • @MrPSolver
      @MrPSolver  3 ปีที่แล้ว +5

      @@josephjones2211 interesting. I'm fairly certain that a symmetric tridiagonal matrix corresponds to a differential equation in the limit N->infinity. In the case of infinitely many infinitely small masses, this probably corresponds to a particular differential equation, like the wave equation or something. Worth looking into in a future video

    • @josephjones2211
      @josephjones2211 3 ปีที่แล้ว +7

      @@MrPSolver It exactly does correspond to the wave equation as N->infinity. I have just coded it in to your notebook now. I am going to put it on my github jjones2000

  • @AJ-et3vf
    @AJ-et3vf 3 ปีที่แล้ว +5

    So awesome! Watching your Python videos is just so immensely intellectually satisfying, inspiring, and galvanizing. Love your videos. The value of your videos cannot be overstated.

  • @ch0ng061
    @ch0ng061 3 ปีที่แล้ว +5

    This is an absurdly cool video! I have two TH-cam accounts and went on both to like this video. Thanks for the great content. You're fantastic at explaining things.

  • @Piipolinoo
    @Piipolinoo 3 ปีที่แล้ว +5

    Dude, I saw your video about the skydiving differential equation on reddit and was like "meeeh, not again, we don't need this another time".
    But this, this was brilliant! Great video, nice explanation of a scary problem. Keep it up.
    Could you also share the jupyter notebooks in the end?
    Also, I miss the link to your blog in the video description ;) Keep promoting yourself.

    • @MrPSolver
      @MrPSolver  3 ปีที่แล้ว +4

      Thank you for your comment! :) I can certainly share the notebooks in the end: I'll make a git repository and upload the notebooks there. They should be easily accessible after that.

  • @lookaway8496
    @lookaway8496 2 ปีที่แล้ว +1

    This just became my favourite youtube channel!

  • @jessicalearnsthings9104
    @jessicalearnsthings9104 2 ปีที่แล้ว +2

    this video was really clear and fun, and i love how excited you get. thanks for this!

  • @leonackermann3098
    @leonackermann3098 ปีที่แล้ว

    Road to Reality in the Background. You know the good stuff ! !

  • @ewinsart9390
    @ewinsart9390 2 ปีที่แล้ว +1

    Hi Luke, Just a courtesy to let you know that I cited this video in a recent paper. Can't put any details because it gets deleted for containing a link but you can probably find them in your comments box. Great channel!

  • @Ash-oj5yv
    @Ash-oj5yv 3 ปีที่แล้ว +1

    This is ridiculously high-quality content

  • @aliexpress.official
    @aliexpress.official 3 ปีที่แล้ว +5

    that was so cool! saving this.
    can you show how to do that for the 3D equation?
    Also can you explain the way you wrote the d variable in your code?

    • @MrPSolver
      @MrPSolver  3 ปีที่แล้ว +2

      The d variable is just the main diagonal of the main matrix, which has length N-1. The vector mL2V(y) has length N+1 (it's got 2001 points here), and we can ignore the first and last point of a numpy array by taking mL2V(y)[1:-1] (this is just an indexing trick). Then we add a scalar constant to out numpy array: namely 1/dy**2

  • @stauffap
    @stauffap 2 ปีที่แล้ว

    Reminds me of the finite difference method that i used once to simulate a 2D Situation with the Navier Stokes Equations.

  • @Dark-tk9xu
    @Dark-tk9xu ปีที่แล้ว

    YOU are a great teacher (from a professor).

  • @rajkumarchakraborty3935
    @rajkumarchakraborty3935 7 หลายเดือนก่อน

    However you can't use this method for scattering states, as you can't set the boundary conditions as psi(0)=psi(L)=0.

  • @pro-bOi
    @pro-bOi 2 ปีที่แล้ว +1

    I was trying to solve woods-saxon potential. I was messed up myself by numerov's algorithm. Then I found your video. Finally I solved the problem using this tridiagonal eigenvalues. But I want to make a request. Can you make a video on how to find all the eigenvalues in a certain range, for any 1-d potential using numerov's algorithm and shooting method.

  • @moirangthemsanahal6695
    @moirangthemsanahal6695 4 หลายเดือนก่อน

    16:20 aren't energy levels in sho supposed to be equally spaced? In there m and L both are constants so your bar should be increasing linearly right? It seems a little off

  • @dwipesh
    @dwipesh ปีที่แล้ว

    very interesting. I have one simple doubt about the number of eigen states. The number of eigen states is equal to the dimension of the matrix, and the dimension of the matrix depends on the number of points we have chosen.
    So, the number of eigen states depends on the method of solutions!?

  • @s.v.8662
    @s.v.8662 ปีที่แล้ว

    Really Great Video! Maybe next time you could compare your results with the analytical ones so in this case the qm harmonic oscillator model. I did it and the results are really close! So again thanks for the video

  • @giovannisilvadesouza6968
    @giovannisilvadesouza6968 ปีที่แล้ว +2

    MAKE DIRAC EQUATION

  • @mathoph26
    @mathoph26 6 หลายเดือนก่อน

    Does it work for a non-linear potential that depends on Psi (my example is: Laplacian of V = - Psi^2) ?

  • @ParasProtimBoruah
    @ParasProtimBoruah 2 ปีที่แล้ว +2

    Can I get the link for the Wordpress paper ?

  • @descriptionsuchandsuch4709
    @descriptionsuchandsuch4709 3 ปีที่แล้ว

    very nice video! I have a lot of fun using python again!
    One little question, maybe it is a conventional thing. Then you divide by Δy^2, do you actually mean (Δy)^2 ? (since it is the 2nd (discrete) derivative?

    • @MrPSolver
      @MrPSolver  3 ปีที่แล้ว +1

      Yes (∆y)^2. Thank you for mentioning this: I will be more careful with my notation in the future :)

  • @jceradnac1894
    @jceradnac1894 3 ปีที่แล้ว +1

    how does this extend for the case of a 2 dimensional schrodinger equation?

  • @atuelvillegas2650
    @atuelvillegas2650 2 ปีที่แล้ว

    This is pure gold!

  • @prasadpawar7027
    @prasadpawar7027 3 ปีที่แล้ว +3

    How would one solve for energies if the wavefunction is leaking instead of being zero at 0 and L?

    • @MrPSolver
      @MrPSolver  3 ปีที่แล้ว +6

      If the wave function was unbounded, you'd have to make the grid very dense, say 100000 points between 0 and 1 and make the potential very localized (maybe between like 0.5 and 0.51). This would be an approximation of a particle that was unbounded, since the infinite boundaries would be very far from the localized potential. (Sort of like how an air molecule is approximately "unbounded" inside a giant warehouse, even though the warehouse has walls)

    • @prasadpawar7027
      @prasadpawar7027 3 ปีที่แล้ว

      @@MrPSolver Oh, makes sense. Thank you!

  • @tototricepsclips
    @tototricepsclips 3 ปีที่แล้ว +1

    Really enojoy this type of content, a good way in my optinion to learn Python if you know some physics

  • @user-jv1ne9od4b
    @user-jv1ne9od4b 2 ปีที่แล้ว

    素晴らしいビデオです!

  • @tayfun11100
    @tayfun11100 2 ปีที่แล้ว

    Great tutorial, thanks...

  • @soumadippakrashi5422
    @soumadippakrashi5422 2 ปีที่แล้ว +1

    Life saviour ❤️

  • @maurocruz1824
    @maurocruz1824 ปีที่แล้ว

    This is similar to the problem 2.61 of Griffiths 3rd Edition

  • @diegoquantico
    @diegoquantico ปีที่แล้ว +1

    Hello. I've got one doubt. The energy output is quadratic. I think that it would be linear, since E = (n + 1/2)hw? Am I wrong?

    • @TueteKaffee
      @TueteKaffee 8 หลายเดือนก่อน +1

      You are completely right with this. The difference betwen two eigenvalues of the harmonic oscillator has to be constant, so something is not right here. I'm not sure what it is though. Interestingly, the energy output isn't exactly quadratic, since np.sqrt(eigenvalues) also doesn't give a linear result.

    • @diegoquantico
      @diegoquantico 8 หลายเดือนก่อน +1

      @@TueteKaffee Man. I've got the answer. In Numerical Analysis, methods based in finite differences to solve Sturm-Loiuville equations (The Schroedinger equations is a Sturm-Liouville like problem) approximate well the first eigenvalues. For practical purposes, this is what we want: the first energy levels. So, higher energies will not be well approximated.

    • @TueteKaffee
      @TueteKaffee 8 หลายเดือนก่อน

      @@diegoquantico Thanks a lot :)

  • @nobody2937
    @nobody2937 2 ปีที่แล้ว

    Can you make your seriers of videos as in a particular playlist? Or anyway to group some of your videos, so that we can play all vidoes in a list ? ^_^

  • @narendrarathore1548
    @narendrarathore1548 11 หลายเดือนก่อน

    You are awesome too good

  • @shahidahmed2659
    @shahidahmed2659 ปีที่แล้ว

    What happened to reduced planck constant in the non dimensionalization step?

  • @gokuson5261
    @gokuson5261 2 ปีที่แล้ว

    omg this is awesome thanks a lot!

  • @shijianzhang9321
    @shijianzhang9321 ปีที่แล้ว

    Hi, it is interesting video. learn a lot from it. but there is a question about the demensionless step. in term of potenial, why directly become mL^2V(y)phi? why not mL^2V(Ly)phi?

    • @diegoquantico
      @diegoquantico ปีที่แล้ว

      I think that it's because V is linear. Then, we get one L from the Potential V and another L from the eigenfinction Psi

  • @ismailnurmaghribi1702
    @ismailnurmaghribi1702 ปีที่แล้ว

    Why V(x) = L^2V(y)? What if the V(x) = x^4 or something else...?

  • @myapproach7785
    @myapproach7785 2 ปีที่แล้ว

    Hi, amazing video.
    I wold like to ask I tried to model hydrogen atom with potential in a form of 1000/y, the problem of dividing by zero I solved by starting at y=0.0001 and since energy is not 0 at the right end- in infinity I extended the matrix by one element. The wavefunction looks quit similar to the hydrogen atom but I am not able to see the "infinity" in the graph even if I set N to 10000. Any suggestions will be highly appreciated, have a nice day.

  • @youngidealist
    @youngidealist 2 ปีที่แล้ว

    I have liked and subscribed. Please show me how to make a chemistry simulator. I want the orbitals to dance

  • @bigh8438
    @bigh8438 11 หลายเดือนก่อน

    damm looks similar to the euler lagrange equations we studied in aeroelasticity

  • @bekarysbereketov4515
    @bekarysbereketov4515 2 ปีที่แล้ว

    Wonderful content 🔥

  • @nna23101989
    @nna23101989 ปีที่แล้ว

    There is one thing that I do not understand. psi(x) is a complex number, but according to this video, it seems to be always real number?

    • @fluxionxyz
      @fluxionxyz ปีที่แล้ว +1

      I think psi(x) can be defined as real for the time-independent case.

  • @gorlekarthikgowtham3903
    @gorlekarthikgowtham3903 2 ปีที่แล้ว

    Sir,can you post the code here

  • @matthewkinahan3945
    @matthewkinahan3945 3 ปีที่แล้ว +3

    Literally smarter than that guy on your wall

    • @bingodeagle
      @bingodeagle 3 ปีที่แล้ว +7

      guy on the wall didn't need python

  • @Karatemastert
    @Karatemastert 3 ปีที่แล้ว +1

    137th like

  • @ankidokolo
    @ankidokolo 2 ปีที่แล้ว

    A very small tip.
    The topics you're representing are good and cool and all that. But I didn't learn them this way. Your videos aren't educational if that's what you want them to be. They are more like "look I can do cool stuff, and you know what, just take the code from the description, because I know that you can't do it yourself". Try to focus on the problem and discribe the code slowly. At the end we both KNOW, that these problems aren't a big deal. Peace.

    • @MrPSolver
      @MrPSolver  2 ปีที่แล้ว +4

      Thanks for the very small tip!

    • @mariomuysensual
      @mariomuysensual 2 ปีที่แล้ว +4

      Not true. This videos are top quality educational content, what are you talking about?
      You expect him to teach you QM from the ground or what?