scqubits.core.oscillator

Functions

convert_to_E_osc(E_kin, E_pot)

Returns the oscillator energy given a harmonic Hamiltonian of the form \(H=\frac{1}{2}E_{\rm kin}p^2 + \frac{1}{2}E_{\rm pot}x^2\)

convert_to_l_osc(E_kin, E_pot)

Returns the oscillator length given a harmonic Hamiltonian of the form \(H=\frac{1}{2}E_{\rm kin}p^2 + \frac{1}{2}E_{\rm pot}x^2\)

harm_osc_wavefunction(n, x, l_osc)

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.

Classes

KerrOscillator(E_osc, K[, l_osc, ...])

Class representing a nonlinear Kerr oscillator/resonator governed by a Hamiltonian \(H_{\rm Kerr}=E_{\rm osc} a^\dagger a - K a^\dagger a^\dagger a a\), with \(a\) being the annihilation operator.

Oscillator(E_osc[, l_osc, truncated_dim, id_str])

Class representing a harmonic oscillator/resonator governed by a Hamiltonian \(H=E_{\rm osc} a^\dagger a\), with \(a\) being the annihilation operator.