Eigenvalues¶
- class Eigenvalues(eigenvalues: ndarray, probability: ndarray | None = None)¶
Hamiltonian eigenvalues with optional probability map
- Attributes:
- valuesnp.ndarray
- probabilitynp.ndarray
Attributes
callsig
indices
Methods
_decorate_plot
(mark_degenerate, number_states)Common elements for the two eigenvalue plots
plot
([mark_degenerate, show_indices, ax])Standard eigenvalues scatter plot
plot_heatmap
([size, mark_degenerate, ...])Eigenvalues scatter plot with a heatmap indicating probability density
- plot(mark_degenerate: bool = True, show_indices: bool = False, ax: Axes | None = None, **kwargs) PathCollection ¶
Standard eigenvalues scatter plot
- Parameters:
- mark_degeneratebool
Plot a line which connects degenerate states.
- show_indicesbool
Plot index number next to all states.
- axOptional[plt.Axes]
The axis to plot on.
- **kwargs
Forwarded to plt.scatter().
- plot_heatmap(size: Tuple[int, int] = (7, 77), mark_degenerate: bool = True, show_indices: bool = False, ax: Axes | None = None, **kwargs) float | None ¶
Eigenvalues scatter plot with a heatmap indicating probability density
- Parameters:
- sizeTuple[int, int]
Min and max scatter dot size.
- mark_degeneratebool
Plot a line which connects degenerate states.
- show_indicesbool
Plot index number next to all states.
- axOptional[plt.Axes]
The axis to plot on.
- **kwargs
Forwarded to plt.scatter().