def get_probabilities(quantum_system):
    """Convert dict of states into histogram - list of tuples of states and corresponding probabilities.

    Args:
        quantum_system (dict): Dict of states and corresponding coefficients.

    Returns:
        list: list of tuples (state, probability).

    """
    res = [(state, abs(quantum_system[state]) ** 2) for state in quantum_system]  # State and corresponding probability.
    return res