scqubits.utils.misc.get_shape#

scqubits.utils.misc.get_shape(lst, shape=())[source]#

returns the shape of nested lists similarly to numpy’s shape.

Parameters:
  • lst – the nested list

  • shape – the shape up to the current recursion depth

Returns:

the shape including the current depth (finally this will be the full depth)