scqubits.core.oscillator.convert_to_E_osc

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

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

Return type:

float

Parameters:
  • E_kin (float)

  • E_pot (float)