scqubits.core.sweeps.bare_matrixelement#

scqubits.core.sweeps.bare_matrixelement(sweep, paramindex_tuple, paramvals_tuple, operator_name, subsystem)[source]#

Given parameter sweep data, compute and return a matrix element table using the bare states of the specified subsystem.

Parameters:
  • sweep (ParameterSweep) – ParameterSweep object to be used for the computation

  • paramindex_tuple (Tuple[int, ...]) – a complete set of parameter indices (i.e. a single point in the multi-dim parameter space)

  • paramvals_tuple (Tuple[float, ...]) – [not used, but required by generator interface]

  • operator_name (str) – operator for which matrix elements are requested, given in string form

  • subsystem (QubitBaseClass) – subsystem belonging to the underlying Hilbert space and compatible with the specified operator name

Return type:

ndarray

Returns:

ndarray of matrix elements, in general complex-valued; shape: square array of size set by the truncated_dim of the subsystem