WaveFunction¶
- class scqubits.core.storage.WaveFunction(basis_labels, amplitudes, energy=None)[source]¶
Container for wave function amplitudes defined for a specific basis. Optionally, a corresponding energy is saved as well.
- Parameters:
Methods
WaveFunction.__init__(basis_labels, amplitudes)Returnn scale factor that converts the dimensionless amplitude to a (pseudo-)energy that allows us to plot wavefunctions and potential energies in the same plot.
WaveFunction.rescale(scale_factor)Rescale the wavefunction amplitudes by a given factor.
WaveFunction.rescale_to_potential(potential_vals)Rescale the dimensionless amplitude to a (pseudo-)energy that allows us to plot wavefunctions and potential energies in the same plot.
- amplitude_scale_factor(potential_vals)[source]¶
Returnn scale factor that converts the dimensionless amplitude to a (pseudo-)energy that allows us to plot wavefunctions and potential energies in the same plot.