scqubits.core.oscillator.convert_to_l_osc#

scqubits.core.oscillator.convert_to_l_osc(E_kin, E_pot)[source]#

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\)

Return type:

float

Parameters:
  • E_kin (float) –

  • E_pot (float) –