qspec logo qspec logo

A physics toolbox for laser spectroscopy.

Static Badge Static Badge Static Badge

Static Badge Static Badge

© 2026 Patrick Müller. All rights reserved.

qspec. dict_to_list  (  a  )[source]

Split a dictionary into a list of its keys and a list of its values.

Parameters:
adict

A dictionary.

Returns:
(keys, vals)tuple[list, list]

Two lists with the keys and values of a, respectively. The lists are in the same order, however, they are not sorted.