Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imaginary part of the wave function #27

Open
RandomUsernameToSave opened this issue Nov 16, 2023 · 3 comments
Open

Imaginary part of the wave function #27

RandomUsernameToSave opened this issue Nov 16, 2023 · 3 comments

Comments

@RandomUsernameToSave
Copy link

In the time independent harmonic oscillator from example, the eigen states doesn't have any imaginary part contrary to what could be expected by the analytical resolution of the harmonic oscillator. (exp(imphi))

Do you have any idea why, and how I could fix it ?

@rafael-fuente
Copy link
Member

rafael-fuente commented Nov 17, 2023

Hi,

The harmonic oscillator and any other system subjected to a real value potential V(x) only have real-valued eigenstates up to an arbitrary complex constant with a module equal to 1.

Eigenstates of the 1D harmonic oscillator are:

Screenshot 2023-11-17 173148

Which they are normalized in such a way that they only have a real part.

@RandomUsernameToSave
Copy link
Author

Yes but the 3D harmonic oscillator has the spherical harmonics function :
image
image

@rafael-fuente
Copy link
Member

The complex spherical harmonic basis is not the unique basis of the 3D harmonic oscillator due to energy degeneracy. This solver will normally converge separately to the real $\frac{Y^{m}_l + Y^{-m}_l}{2}$ and imaginary part $\frac{Y^{m}_l - Y^{-m}_l}{2i}$ of the wavefunction you cite, which form a basis with the same span as the m = +-1 spherical harmonics $Y^{m}_l$ and $Y^{-m}_l$

For the hydrogen atom, it will happen exactly the same: instead of converging to the complex spherical harmonics, it will converge to the basis it's usually used in chemistry books to represent p orbitals. However, if you turn on a magnetic field, as illustrated in the Zeeman effect example, the degeneracy breaks and the eigenstates will converge to wavefunctions with the angular part approaching the complex spherical harmonics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants