scqubits.utils.misc.to_list¶
- scqubits.utils.misc.to_list(obj)[source]¶
Converts object to a list: if the input is already a list, it will return the same list. If the input is a numpy array, it will convert to a python list. Otherwise, it will return the original object in a single-elemented python list.
- Parameters:
obj (
Any) – Specify the type of object that is being passed into the function- Return type:
List[Any]- Returns:
a list of the object passed in