scqubits.utils.spectrum_utils.get_matrixelement_table#
- scqubits.utils.spectrum_utils.get_matrixelement_table(operator, state_table)[source]#
Calculates a table of matrix elements.
- Parameters:
operator (
Union
[ndarray
,csc_matrix
,dia_matrix
,Qobj
]) – operator with respect to which matrix elements are to be calculatedstate_table (
Union
[ndarray
,Qobj
]) – list or array of numpy arrays representing the states |v0>, |v1>, … Note: state_table is expected to be in scipy’s eigsh transposed form.
- Return type:
ndarray
- Returns:
table of matrix elements