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_{\text{kin}}p^2 + \frac{1}{2}E_{\text{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_{\text{kin}}p^2 + \frac{1}{2}E_{\text{pot}}x^2\)

harm_osc_wavefunction(n, x, l_osc)

For given quantum number n=0,1,2,.

Classes

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

Class representing a nonlinear Kerr oscillator/resonator governed by a Hamiltonian \(H_\text{Kerr}=E_\text{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_\text{osc} a^{\dagger} a\), with \(a\) being the annihilation operator.