scqubits.utils.misc

Functions

Qobj_to_scipy_csc_matrix(qobj_array)

about([print_info])

Prints or returns a string with basic information about scqubits as well as installed version of various packages that scqubits depends on.

check_lookup_exists(func)

check_sync_status(func)

check_sync_status_circuit(func)

cite([print_info])

Prints or returns a string with scqubits citation information.

drop_private_keys(full_dict)

Filter for entries in the full dictionary that have numerical values.

flatten_list(nested_list)

Flattens a list of lists once, not recursive.

flatten_list_recursive(some_list)

Flattens a list of lists recursively.

get_shape(lst[, shape])

Returns the shape of nested lists similarly to numpy's shape.

inspect_public_API(module[, public_names, ...])

Find all public names in a module.

is_string_float(the_string)

is_string_int(the_string)

list_intersection(list1, list2)

make_bare_labels(subsystem_count, *args)

For two given subsystem states, return the full-system bare state label obtained by placing all remaining subsys_list in their ground states.

number_of_lists_in_list(list_object)

Takes a list as an argument and returns the number of lists in that list.

process_which(which, max_index)

Processes different ways of specifying the selection of wanted eigenvalues/eigenstates.

qt_ket_to_ndarray(qobj_ket)

remove_nones(dict_data)

to_expression_or_string(string_expr)

to_list(obj)

Converts object to a list: if the input is already a list, it will return the same list.

tuple_to_short_str(the_tuple)

unique_elements_in_list(list_object)

Returns a list of all the unique elements in the list.

Classes

DeprecationMessage(warning_msg)

Decorator class, producing an adjustable warning and info upon usage of the decorated function.

InfoBar(desc, num_cpus)

Static "progress" bar used whenever multiprocessing is involved.

Required(**requirements)

Decorator class, ensuring that a given requirement or set of requirements is fulfilled.