common
Common module.
harm_osc_wavefunction(n, x, l_osc)
For given quantum number n=0,1,2,... return the value of the harmonic
oscillator wave function :math:\psi_n(x) = N H_n(x/l_{osc}) \exp(-x^2/2l_\text{
osc}), N being the proper normalization factor.
Parameters
n: index of wave function, n=0 is ground state x: coordinate(s) where wave function is evaluated l_osc: oscillator length, defined via <0|x^2|0> = l_osc^2/2
Returns
value of harmonic oscillator wave function
Source code in jaxquantum/devices/common/utils.py
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |
harm_osc_wavefunctions(num_levels, x, l_osc)
Evaluate the first num_levels normalized oscillator wavefunctions.
Source code in jaxquantum/devices/common/utils.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | |