scqubits.Cos2PhiQubit.plot_wavefunction#
- Cos2PhiQubit.plot_wavefunction(esys=None, which=0, phi_grid=None, theta_grid=None, mode='abs', zero_calibrate=True, **kwargs)[source]#
Plots a 2D wave function in \(\theta, \phi\) basis, at \(\zeta = 0\)
- Parameters:
esys (ndarray, ndarray) – eigenvalues, eigenvectors as obtained from .eigensystem()
which (int, optional) – index of wave function to be plotted (default value = (0)
phi_grid (Grid1d, option) – used for setting a custom grid for phi; if None use self._default_phi_grid
theta_grid (Grid1d, option) – used for setting a custom grid for theta; if None use self._default_theta_grid
mode (str, optional) – choices as specified in constants.MODE_FUNC_DICT (default value = ‘abs_sqr’)
zero_calibrate (bool, optional) – if True, colors are adjusted to use zero wavefunction amplitude as the neutral color in the palette
**kwargs – plot options
- Return type:
Tuple
[Figure
,Axes
]