scqubits.core.namedslots_array#

Functions

convert_to_std_npindex(index_tuple, parameters)

converts name-based and value-based indexing to standard numpy indexing

idx_for_value(value, param_vals)

rtype:

int

process_ellipsis(array, multi_idx)

Removes ... from the multi-index by explicit slicing.

Classes

ExtIndexObject(idx_entry, parameters[, slot])

Object used for enabling enhanced indexing in NamedSlotsNdarray.

ExtIndexTupleObject(extindex_tuple)

NamedSlotsNdarray(input_array, values_by_name)

This class implements multi-dimensional arrays, for which the leading M dimensions are each associated with a slot name and a corresponding array of slot values (float or complex or str). All standard slicing of the multi-dimensional array with integer-valued indices is supported as usual, e.g.::.

Parameters(paramvals_by_name[, paramnames_list])

Convenience class for maintaining multiple parameter sets: names and values of each parameter set, along with an ordering among sets.