scqubits.core.oscillator.harm_osc_wavefunction¶
- scqubits.core.oscillator.harm_osc_wavefunction(n, x, l_osc)[source]¶
For given quantum number \(n=0,1,2,\ldots\) return the value of the harmonic oscillator wave function \(\psi_n(x) = N H_n(x/l_{\rm osc}) \exp(-x^2/2 l_{\rm osc})\), N being the proper normalization factor.
Directly uses scipy.special.pbdv (implementation of the parabolic cylinder function) to mitigate numerical stability issues with the more commonly used expression in terms of a Gaussian and a Hermite polynomial factor.